Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index 14d4b4b88397d4e77bf647dbb0148a96e9d3aef3..8976bc8ae4b410e7dacf39b0a5b0700872e32421 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -174,7 +174,8 @@ enum PageshowEventPersistence { |
PageshowEventPersisted = 1 |
}; |
-enum StyleResolverUpdateFlag { RecalcStyleImmediately, DeferRecalcStyle, RecalcStyleIfNeeded }; |
+enum StyleResolverUpdateType { RecalcStyleImmediately, DeferRecalcStyle }; |
+enum StyleResolverUpdateMode { FullStyleUpdate, OptimizedStyleUpdate }; |
enum NodeListInvalidationType { |
DoNotInvalidateOnAttributeChanges = 0, |
@@ -445,16 +446,8 @@ public: |
bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfterStylesheetsLoad; } |
void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAfterStylesheetsLoad = b; } |
- /** |
- * Called when one or more stylesheets in the document may have been added, removed or changed. |
- * |
- * Creates a new style resolver and assign it to this document. This is done by iterating through all nodes in |
- * document (or those before <BODY> in a HTML document), searching for stylesheets. Stylesheets can be contained in |
- * <LINK>, <STYLE> or <BODY> elements, as well as processing instructions (XML documents only). A list is |
- * constructed from these which is used to create the a new style selector which collates all of the stylesheets |
- * found and is used to calculate the derived styles for all rendering objects. |
- */ |
- void styleResolverChanged(StyleResolverUpdateFlag); |
+ // Called when one or more stylesheets in the document may have been added, removed or changed. |
+ void styleResolverChanged(StyleResolverUpdateType, StyleResolverUpdateMode = FullStyleUpdate); |
void didAccessStyleResolver(); |