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

Unified Diff: Source/core/rendering/RenderView.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/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index 474aff60ac86d42698d581938b1dadec7dea9da3..4669d8a60aa1d628ec51a50b9e4adb1dc9a025c0 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -431,11 +431,6 @@ void RenderView::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
paintObject(paintInfo, paintOffset);
}
-static inline bool isComposited(RenderObject* object)
-{
- return object->hasLayer() && toRenderLayerModelObject(object)->layer()->isComposited();
-}
-
static inline bool rendererObscuresBackground(RenderObject* rootObject)
{
if (!rootObject)
@@ -447,7 +442,7 @@ static inline bool rendererObscuresBackground(RenderObject* rootObject)
|| style->hasTransform())
return false;
- if (isComposited(rootObject))
+ if (rootObject->compositingState() == PaintsIntoOwnBacking)
return false;
const RenderObject* rootRenderer = rootObject->rendererForRootBackground();

Powered by Google App Engine
This is Rietveld 408576698