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

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

Issue 330043002: Simplified code for styleResolverChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/ShadowTreeStyleSheetCollection.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 95b6c2eed8635db802867268a81d23392e853db8..9d940e0a65636c641aecbf62d9fbe7013938e19d 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -56,23 +56,6 @@ class StyleSheetCollection;
class StyleSheetContents;
class StyleSheetList;
-class StyleResolverChange {
-public:
- StyleResolverChange()
- : m_needsRepaint(false)
- , m_needsStyleRecalc(false)
- { }
-
- bool needsRepaint() const { return m_needsRepaint; }
- bool needsStyleRecalc() const { return m_needsStyleRecalc; }
- void setNeedsRepaint() { m_needsRepaint = true; }
- void setNeedsStyleRecalc() { m_needsStyleRecalc = true; }
-
-private:
- bool m_needsRepaint;
- bool m_needsStyleRecalc;
-};
-
class StyleEngine FINAL : public CSSFontSelectorClient {
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
@@ -119,7 +102,7 @@ public:
void clearMediaQueryRuleSetStyleSheets();
void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector);
- bool updateActiveStyleSheets(StyleResolverUpdateMode);
+ void updateActiveStyleSheets(StyleResolverUpdateMode);
String preferredStylesheetSetName() const { return m_preferredStylesheetSetName; }
String selectedStylesheetSetName() const { return m_selectedStylesheetSetName; }
@@ -182,7 +165,7 @@ public:
void didDetach();
bool shouldClearResolver() const;
- StyleResolverChange resolverChanged(StyleResolverUpdateMode);
+ void resolverChanged(StyleResolverUpdateMode);
unsigned resolverAccessCount() const;
void markDocumentDirty();
@@ -201,7 +184,8 @@ private:
TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
- bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode);
+ bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const;
+ bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) const;
bool shouldApplyXSLTransform() const;
void markTreeScopeDirty(TreeScope&);
« no previous file with comments | « Source/core/dom/ShadowTreeStyleSheetCollection.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698