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

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

Issue 1111643003: Move StyleInvalidator to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Avoid calling ensureUpdatedRuleFeatureSet multiple times Created 5 years, 8 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/Node.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.h
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h
index 101a107624e0c24ed995b370c4c22d5ec7c3dc7f..7c61b602ef8ef79b9d7fcf06848e53c89929ea32 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -30,6 +30,7 @@
#include "core/CoreExport.h"
#include "core/css/CSSFontSelectorClient.h"
+#include "core/css/invalidation/StyleInvalidator.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentOrderedList.h"
@@ -149,6 +150,8 @@ public:
void clearResolver();
void clearMasterResolver();
+ StyleInvalidator& styleInvalidator() { return m_styleInvalidator; }
+
CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
void setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector>);
@@ -171,6 +174,12 @@ public:
void platformColorsChanged();
+ void classChangedForElement(const SpaceSplitString& changedClasses, Element&);
+ void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceSplitString& newClasses, Element&);
+ void attributeChangedForElement(const QualifiedName& attributeName, Element&);
+ void idChangedForElement(const AtomicString& oldId, const AtomicString& newId, Element&);
+ void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&);
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -191,6 +200,8 @@ private:
Document* master();
Document& document() const { return *m_document; }
+ void scheduleInvalidationSetsForElement(const InvalidationSetVector&, Element&);
+
typedef WillBeHeapHashSet<RawPtrWillBeMember<TreeScope>> UnorderedTreeScopeSet;
// A class which holds document-ordered treescopes which have stylesheets.
@@ -286,6 +297,7 @@ private:
bool m_ignorePendingStylesheets;
bool m_didCalculateResolver;
OwnPtrWillBeMember<StyleResolver> m_resolver;
+ StyleInvalidator m_styleInvalidator;
RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698