diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-31 22:44:14 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-31 22:44:14 +0000 |
commit | 807265ab278b1952745ef567b2aeecc122ce053d (patch) | |
tree | 195ead2fcf94ac8cb04313d56836cade61725a21 /ui | |
parent | 79676e94caf234231f67018a1bafe5faebd75737 (diff) | |
download | chromium_src-807265ab278b1952745ef567b2aeecc122ce053d.zip chromium_src-807265ab278b1952745ef567b2aeecc122ce053d.tar.gz chromium_src-807265ab278b1952745ef567b2aeecc122ce053d.tar.bz2 |
Gets Bubble to work on aura.
BUG=none
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/8416053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gfx/compositor/layer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gfx/compositor/layer.cc b/ui/gfx/compositor/layer.cc index 7c818da..f2bf14d 100644 --- a/ui/gfx/compositor/layer.cc +++ b/ui/gfx/compositor/layer.cc @@ -611,12 +611,15 @@ void Layer::SetTransformImmediately(const ui::Transform& transform) { } void Layer::SetOpacityImmediately(float opacity) { + bool schedule_draw = (opacity != opacity_ && IsDrawn()); opacity_ = opacity; SetNeedsToRecomputeHole(); #if defined(USE_WEBKIT_COMPOSITOR) if (visible_) web_layer_.setOpacity(opacity); #endif + if (schedule_draw) + ScheduleDraw(); } void Layer::SetBoundsFromAnimation(const gfx::Rect& bounds) { |