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

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

Issue 211773002: Rename updateStyle to updateRenderTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tracing test Created 6 years, 9 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/CSSComputedStyleDeclaration.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 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;
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698