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

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

Issue 296743003: Removed RecalcStyleTime. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 7 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/css/CSSStyleSheet.cpp ('k') | 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 7eda7d3115f9574cafdc53244899e6f9957ff8e0..487230a43da74d09c86b4c90c1d6a32c43c56c99 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -175,11 +175,6 @@ struct AnnotatedRegionValue;
typedef int ExceptionCode;
-enum RecalcStyleTime {
- RecalcStyleImmediately, // synchronous
- RecalcStyleDeferred // asynchronous
-};
-
enum StyleResolverUpdateMode {
// Discards the StyleResolver and rebuilds it.
FullStyleUpdate,
@@ -441,15 +436,15 @@ 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(RecalcStyleTime, StyleResolverUpdateMode = FullStyleUpdate);
+ void styleResolverChanged(StyleResolverUpdateMode = FullStyleUpdate);
void styleResolverMayHaveChanged();
// FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them
// do something smarter.
- void removedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred, StyleResolverUpdateMode = FullStyleUpdate);
- void addedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred) { styleResolverChanged(when); }
- void modifiedStyleSheet(StyleSheet*, RecalcStyleTime when = RecalcStyleDeferred, StyleResolverUpdateMode = FullStyleUpdate);
- void changedSelectorWatch() { styleResolverChanged(RecalcStyleDeferred); }
+ void removedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdate);
+ void addedStyleSheet(StyleSheet*) { styleResolverChanged(); }
+ void modifiedStyleSheet(StyleSheet*, StyleResolverUpdateMode = FullStyleUpdate);
+ void changedSelectorWatch() { styleResolverChanged(); }
void scheduleUseShadowTreeUpdate(SVGUseElement&);
void unscheduleUseShadowTreeUpdate(SVGUseElement&);
« no previous file with comments | « Source/core/css/CSSStyleSheet.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698