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

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

Issue 24921002: Make compositingState explicit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: path for re-landing try #2 with removed unnecessary comment 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
« no previous file with comments | « Source/core/rendering/RenderTreeAsText.cpp ('k') | Source/core/rendering/RenderWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index 72057fc3523b302d8ba2d296df4c04547e4ae295..8a2a23ec69c99e4cae2a672a07babfa2ec434a6f 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();
« no previous file with comments | « Source/core/rendering/RenderTreeAsText.cpp ('k') | Source/core/rendering/RenderWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698