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

Unified Diff: third_party/WebKit/Source/core/css/CSSProperties.in

Issue 2117143003: Add a fast-path for independent inherited properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@computedstyle_cleanup_rename_final_member_fields
Patch Set: Review feedback Created 4 years, 5 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: third_party/WebKit/Source/core/css/CSSProperties.in
diff --git a/third_party/WebKit/Source/core/css/CSSProperties.in b/third_party/WebKit/Source/core/css/CSSProperties.in
index 6dc3b0d7b0b6b43561def83d8d0d8071dd585bd5..8ef3ba899b8cfe13b5566e2a9317243c16a2a9f6 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.in
+++ b/third_party/WebKit/Source/core/css/CSSProperties.in
@@ -45,6 +45,12 @@
// The property will inherit by default if no value is specified, typically
// mentioned in specifications as "Inherited: yes"
+// - independent
+// This property affects only one field on ComputedStyle, and can be set
+// directly during inheritance instead of forcing a recalc.
+// StyleResolver and StyleAdjuster are not invoked when these properties
+// are changed on a parent. Recalcs only happen if at least one
+// non-independent inherited property is changed in the parent.
// The remaining arguments are used for the StyleBuilder and allow us to
// succinctly describe how to apply properties. When default handlers are not
@@ -272,7 +278,7 @@ padding-top interpolable, initial=initialPadding, converter=convertLength
paint-order inherited, svg, converter=convertPaintOrder
perspective interpolable, converter=convertPerspective
perspective-origin interpolable, converter=convertPosition
-pointer-events inherited
+pointer-events inherited, independent
position custom_inherit
quotes inherited, converter=convertQuotes
resize custom_value
@@ -336,7 +342,7 @@ transition-timing-function custom_all
unicode-bidi
vector-effect svg
vertical-align interpolable, custom_inherit, custom_value
-visibility interpolable, inherited
+visibility interpolable, inherited, independent
x interpolable, svg, converter=convertLength
y interpolable, svg, converter=convertLength
-webkit-appearance type_name=ControlPart

Powered by Google App Engine
This is Rietveld 408576698