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