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

Unified Diff: Source/core/frame/FrameView.h

Issue 146023008: Add layout states to DocumentLifecycle state machine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whitelist one more transition' Created 6 years, 10 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/frame/DeprecatedScheduleStyleRecalcDuringLayout.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index c1dd4aac3a1e441b23c6e669b550031bf798d545..14159d96ede00c6ae8d10f232ffae8a897e07042 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -88,7 +88,7 @@ public:
void scheduleRelayout();
void scheduleRelayoutOfSubtree(RenderObject*);
bool layoutPending() const;
- bool isInPerformLayout() const { return m_inPerformLayout; }
+ bool isInPerformLayout() const;
void setCanRepaintDuringPerformLayout(bool b) { m_canRepaintDuringPerformLayout = b; }
bool canRepaintDuringPerformLayout() const { return m_canRepaintDuringPerformLayout; }
@@ -355,6 +355,8 @@ private:
void gatherDebugLayoutRects(RenderObject* layoutRoot);
+ DocumentLifecycle& lifecycle() const;
+
virtual void repaintContentRectangle(const IntRect&) OVERRIDE;
virtual void contentsResized() OVERRIDE;
virtual void scrollbarExistenceDidChange() OVERRIDE;
@@ -412,7 +414,7 @@ private:
if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
return true;
- return !m_inPerformLayout || canRepaintDuringPerformLayout();
+ return !isInPerformLayout() || canRepaintDuringPerformLayout();
}
static double s_currentFrameTimeStamp; // used for detecting decoded resource thrash in the cache
« no previous file with comments | « Source/core/frame/DeprecatedScheduleStyleRecalcDuringLayout.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698