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

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

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: If text autosizing is enabled, only partial layout for the second of two layouts Created 7 years, 4 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
Index: Source/core/page/FrameView.h
diff --git a/Source/core/page/FrameView.h b/Source/core/page/FrameView.h
index 017a1e0aa33d6f4e897ea1394f5fd069803d157d..ae636a64ac2f90c88cf3443058bb6dbd1220e2e4 100644
--- a/Source/core/page/FrameView.h
+++ b/Source/core/page/FrameView.h
@@ -335,6 +335,11 @@ public:
// DEPRECATED: Use viewportConstrainedVisibleContentRect() instead.
IntSize scrollOffsetForFixedPosition() const;
+ bool shouldStopPartialLayout() const { return m_shouldStopPartialLayout; }
+ void checkPartialLayoutComplete(RenderObject*);
+ void setStopLayoutAtRenderer(RenderObject* renderer) { m_stopLayoutAtRenderer = renderer; }
+ void resetPartialLayoutState() { m_stopLayoutAtRenderer = 0; m_shouldStopPartialLayout = false; }
esprehn 2013/08/18 03:43:15 Isn't shouldStopPartialLayout the same as checking
pdr. 2013/08/20 06:19:10 We need the boolean to track that we're exiting in
+
protected:
virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect);
virtual void scrollContentsSlowPath(const IntRect& updateRect);
@@ -526,6 +531,9 @@ private:
bool m_hasSoftwareFilters;
float m_visibleContentScaleFactor;
+
+ bool m_shouldStopPartialLayout;
+ RenderObject* m_stopLayoutAtRenderer;
};
inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)

Powered by Google App Engine
This is Rietveld 408576698