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

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

Issue 129633003: Add a first pass of a class descendant invalidator, and a containing RuleSetAnalyzer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Implement tree walk for descendant class invalidation. Created 6 years, 11 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index d2ad8caf1afb56e95a2bf702f5fe8e90dfe055ef..a8f761fd078d877cf073625f5f2be7823a5d7c9f 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -309,6 +309,8 @@ public:
void setAnimationStyleChange(bool);
void setNeedsAnimationStyleRecalc();
+ bool needsInvalidation() const;
+
bool supportsStyleSharing() const;
ElementShadow* shadow() const;
@@ -546,6 +548,13 @@ protected:
RELEASE_ASSERT(document);
}
+ template<typename Checker>
+ bool checkSelectorForClassChange(const SpaceSplitString& changedClasses, const Checker&);
+
+ template<typename Checker>
+ bool checkSelectorForClassChange(const SpaceSplitString& oldClasses, const SpaceSplitString& newClasses, const Checker&);
+
+
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, CSSValueID identifier);
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, double value, CSSPrimitiveValue::UnitTypes);
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, const String& value);
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698