Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3812)

Unified Diff: Source/core/rendering/RenderWidget.cpp

Issue 24921002: Make compositingState explicit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ready for review Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderWidget.cpp
diff --git a/Source/core/rendering/RenderWidget.cpp b/Source/core/rendering/RenderWidget.cpp
index 8a076db39f8e8849cfdada12220465f886c31c71..c351e53f66d8894a8ba4d559f43456710edc6f9c 100644
--- a/Source/core/rendering/RenderWidget.cpp
+++ b/Source/core/rendering/RenderWidget.cpp
@@ -150,7 +150,7 @@ bool RenderWidget::setWidgetGeometry(const LayoutRect& frame)
if (clipChanged && !boundsChanged)
m_widget->clipRectChanged();
- if (hasLayer() && layer()->isComposited())
+ if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking)
layer()->backing()->updateAfterWidgetResize();
return boundsChanged;

Powered by Google App Engine
This is Rietveld 408576698