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

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

Issue 23819019: Refactor fixed layout mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 8423c863c341abd24b72821c293d83e7179cc9a9..7d1b2c90b11ef6d7a3534cf2484df5f21537408e 100644
--- a/Source/core/page/FrameView.h
+++ b/Source/core/page/FrameView.h
@@ -109,6 +109,10 @@ public:
void setNeedsLayout();
void setViewportConstrainedObjectsNeedLayout();
+ // Methods for getting/setting the size Blink should use to layout the contents.
+ IntSize layoutSize(VisibleContentRectIncludesScrollbars = ExcludeScrollbars) const;
kenneth.r.christiansen 2013/09/05 08:03:07 Seems like the enum could be renamed now you also
bokan 2013/09/05 20:03:36 Done. Renamed to IncludeScrollbarsInRect
+ void setLayoutSize(const IntSize&);
+
bool needsFullRepaint() const { return m_doFullRepaint; }
void serviceScriptedAnimations(double monotonicAnimationStartTime);
@@ -347,6 +351,7 @@ private:
void reset();
void init();
+ virtual void frameRectsChanged();
virtual bool isFrameView() const OVERRIDE { return true; }
friend class RenderWidget;
@@ -370,6 +375,8 @@ private:
void scheduleOrPerformPostLayoutTasks();
void performPostLayoutTasks();
+ bool isMainFrame() const;
+
virtual void repaintContentRectangle(const IntRect&);
virtual void contentsResized() OVERRIDE;
virtual void visibleContentsResized();
@@ -531,6 +538,7 @@ private:
bool m_hasSoftwareFilters;
float m_visibleContentScaleFactor;
+ IntSize m_layoutSize;
};
inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)

Powered by Google App Engine
This is Rietveld 408576698