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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 2581843002: Implement merging non-composited paint property nodes in the PACompositor. (Closed)
Patch Set: none Created 4 years 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: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index f329b31ef3fa39b8bf27b9fa01deec779e2860b8..6baebf02bfb5a7794626ffa4a5af5af5d5137593 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -319,6 +319,18 @@ static CompositingReasons compositingReasonsForTransform(
!object.styleRef().subtreeWillChangeContents())
compositingReasons |= CompositingReasonWillChangeCompositingHint;
+ if (object.isBoxModelObject()) {
+ const LayoutBoxModelObject* box = toLayoutBoxModelObject(&object);
+ if (box->hasLayer()) {
+ // TODO(chrishtr): move this to the descendant-dependent flags recursion
+ // PaintLayer::updateDescendantDependentFlags.
+ box->layer()->update3DTransformedDescendantStatus();
+
+ if (box->layer()->has3DTransformedDescendant())
+ compositingReasons |= CompositingReason3DTransform;
+ }
+ }
+
return compositingReasons;
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerClipper.h ('k') | third_party/WebKit/Source/core/paint/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698