Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index 2b9bd5f6f648136d2724469e17352e5caf6e15d1..5c0ad92fac8cd241831285e0d890104db54bb5c7 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -474,8 +474,8 @@ public: |
void setupFontBuilder(RenderStyle* documentStyle); |
- void updateStyleIfNeeded(); |
- void updateStyleForNodeIfNeeded(Node*); |
+ void updateRenderTreeIfNeeded() { updateRenderTree(NoChange); } |
+ void updateRenderTreeForNodeIfNeeded(Node*); |
void updateLayout(); |
enum RunPostLayoutTasks { |
RunPostLayoutTasksAsyhnchronously, |
@@ -605,7 +605,7 @@ public: |
void setHistoryItemDocumentStateDirty(bool dirty) { m_historyItemDocumentStateDirty = dirty; } |
bool historyItemDocumentStateDirty() const { return m_historyItemDocumentStateDirty; } |
- bool shouldScheduleLayout(); |
+ bool shouldScheduleLayout() const; |
bool shouldParserYieldAgressivelyBeforeScriptExecution(); |
int elapsedTime() const; |
@@ -646,7 +646,7 @@ public: |
void setCSSTarget(Element*); |
Element* cssTarget() const { return m_cssTarget; } |
- void scheduleStyleRecalc(); |
+ void scheduleRenderTreeUpdate(); |
bool hasPendingForcedStyleRecalc() const; |
void registerNodeList(LiveNodeListBase*); |
@@ -1085,7 +1085,9 @@ private: |
bool dirtyElementsForLayerUpdate(); |
void updateDistributionIfNeeded(); |
void updateUseShadowTreesIfNeeded(); |
+ void evaluateMediaQueryListIfNeeded(); |
+ void updateRenderTree(StyleRecalcChange); |
void updateStyle(StyleRecalcChange); |
void detachParser(); |
@@ -1150,9 +1152,8 @@ private: |
void didRemoveTouchEventHandler(Node*, bool clearAll); |
- // Returns true if Document::recalcStyle() needs to be run. |
- bool shouldCallRecalcStyleForDocument(); |
- bool shouldScheduleStyleRecalc(); |
+ bool needsRenderTreeUpdate() const; |
+ bool shouldScheduleRenderTreeUpdate() const; |
DocumentLifecycle m_lifecycle; |