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

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 202683005: optimizing layout performance when only transform3d matrix changed by Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 6 years, 9 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/style/RenderStyle.cpp
===================================================================
--- Source/core/rendering/style/RenderStyle.cpp (revision 169401)
+++ Source/core/rendering/style/RenderStyle.cpp (working copy)
@@ -458,6 +458,11 @@
// Don't return early here; instead take note of the type of
// change, and deal with it when looking at compositing.
changedContextSensitiveProperties |= ContextSensitivePropertyTransform;
+ // if only diff with transform3d parameters changed
+ if (transform().has3DOperation() && other->transform().has3DOperation()) {
+ changedContextSensitiveProperties |= ContextSensitivePropertyTransform3D;
+ }
+
}
// If the counter directives change, trigger a relayout to re-calculate counter values and rebuild the counter node tree.

Powered by Google App Engine
This is Rietveld 408576698