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

Unified Diff: third_party/WebKit/Source/core/dom/Element.h

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: Added useful sizeof check comment 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/dom/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 1f21fcaf2f4483149f863d350b5fef51daa3857b..2c4aaf3d9e6c1e204c3085b5e6f04784d8564fc4 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -649,6 +649,11 @@ private:
PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
void setInlineStyleFromString(const AtomicString&);
+ // Returns whether the only inherited changes in the parent element are
+ // independent, and hence these changes can be directly propagated to this
+ // element (the child).
+ bool canPropagateInheritedProperties(StyleRecalcChange);
+
StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
// TODO(nainar): Make this const ComputedStyle&.
StyleRecalcChange buildOwnLayout(ComputedStyle&);

Powered by Google App Engine
This is Rietveld 408576698