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

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

Issue 2220873002: Add a fast-path for independent inherited properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added 2 more tests Created 4 years, 4 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 8f42158bc1139a8b9935e301bc204068b0a93381..ba817d44c0dc7afd96da502f0259b986f09530e4 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -666,6 +666,12 @@ private:
PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
void setInlineStyleFromString(const AtomicString&);
+ // If the only inherited changes in the parent element are independent,
+ // these changes can be directly propagated to this element (the child).
+ // If these conditions are met, propagates the changes to the current style
+ // and returns the new style. Otherwise, returns null.
+ PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange);
+
StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
// TODO(nainar): Make this const ComputedStyle&.
StyleRecalcChange buildLayoutTree(ComputedStyle&);
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698