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

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

Issue 2431613002: Initial viewport is not the same as FrameView rect. (Closed)
Patch Set: DCHECK that initial viewport size is read from main frame only. Created 4 years, 2 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: third_party/WebKit/Source/core/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index d8f183533b304cbc72c827789d3e7ae11255013c..67e1f37b9b9702cf5165e94f375f149b6e1f836b 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -165,6 +165,10 @@ class CORE_EXPORT FrameView final
}
bool layoutSizeFixedToFrameSize() { return m_layoutSizeFixedToFrameSize; }
+ void setInitialViewportSize(const IntSize&);
+ int initialViewportWidth() const;
+ int initialViewportHeight() const;
+
void updateAcceleratedCompositingSettings();
void recalcOverflowAfterStyleChange();
@@ -977,6 +981,7 @@ class CORE_EXPORT FrameView final
float m_inputEventsScaleFactorForEmulation;
IntSize m_layoutSize;
+ IntSize m_initialViewportSize;
bool m_layoutSizeFixedToFrameSize;
Timer<FrameView> m_didScrollTimer;

Powered by Google App Engine
This is Rietveld 408576698