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

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

Issue 1866303002: Rename Document::hasPendingStyleRecalc to hasPendingVisualUpdate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revise description of commit message Created 4 years, 8 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 | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 00a9dc07d8a59d8d225370a019303113d465ff17..bddd60c2483a6a1293788d3f9bc3edda409389f6 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -1092,8 +1092,7 @@ private:
SecurityContext& securityContext() final { return *this; }
EventQueue* getEventQueue() const final;
- // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate.
- bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle::VisualUpdatePending; }
+ bool hasPendingVisualUpdate() const { return m_lifecycle.state() == DocumentLifecycle::VisualUpdatePending; }
bool shouldScheduleLayoutTreeUpdate() const;
void scheduleLayoutTreeUpdate();
@@ -1417,7 +1416,7 @@ inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
inline void Document::scheduleLayoutTreeUpdateIfNeeded()
{
// Inline early out to avoid the function calls below.
- if (hasPendingStyleRecalc())
+ if (hasPendingVisualUpdate())
return;
if (shouldScheduleLayoutTreeUpdate() && needsLayoutTreeUpdate())
scheduleLayoutTreeUpdate();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698