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

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

Issue 24921002: Make compositingState explicit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed first round of reviewer comments Created 7 years, 2 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 1f427eacf263053278246ab6960bcd80c7260154..984af4719ea496aeb897199ad0f5d346e8c7caf2 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -438,11 +438,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)
@@ -454,7 +449,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