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

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

Issue 26155004: Rename WebCore::StyleResolverUpdateType to RecalcStyleTime (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index ab46d367807f87c83f6ef9d84a9eda3873c6ae2a..b966b5f0d8077660797abea2e7a98adcca354aa6 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -172,7 +172,10 @@ enum PageshowEventPersistence {
PageshowEventPersisted = 1
};
-enum StyleResolverUpdateType { RecalcStyleImmediately, RecalcStyleDeferred };
+enum RecalcStyleTime {
+ RecalcStyleImmediately, // synchronous
+ RecalcStyleDeferred // asynchronous
+};
enum StyleResolverUpdateMode {
// Discards the StyleResolver and rebuilds it.
@@ -450,13 +453,13 @@ public:
void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAfterStylesheetsLoad = b; }
// Called when one or more stylesheets in the document may have been added, removed, or changed.
- void styleResolverChanged(StyleResolverUpdateType, StyleResolverUpdateMode = FullStyleUpdate);
+ void styleResolverChanged(RecalcStyleTime, StyleResolverUpdateMode = FullStyleUpdate);
// FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them
// do something smarter.
- void removedStyleSheet(StyleSheet*, StyleResolverUpdateType type = RecalcStyleDeferred) { styleResolverChanged(type); }
- void addedStyleSheet(StyleSheet*, StyleResolverUpdateType type = RecalcStyleDeferred) { styleResolverChanged(type); }
- void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateType type = RecalcStyleDeferred) { styleResolverChanged(type); }
+ void removedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred) { styleResolverChanged(when); }
+ void addedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred) { styleResolverChanged(when); }
+ void modifiedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred) { styleResolverChanged(when); }
void changedSelectorWatch() { styleResolverChanged(RecalcStyleDeferred); }
void didAccessStyleResolver() { ++m_styleResolverAccessCount; }
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698