| 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&);
|
|
|