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

Unified Diff: third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.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/PageScaleConstraintsSet.h
diff --git a/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h b/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
index 9754bf8117702d7ffc23417b7ea42cc397a6fc18..d2f852273303b68981ebc666a16b8a9e0bc2f440 100644
--- a/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
+++ b/third_party/WebKit/Source/core/frame/PageScaleConstraintsSet.h
@@ -107,6 +107,7 @@ class CORE_EXPORT PageScaleConstraintsSet {
void didChangeInitialContainingBlockSize(const IntSize&);
IntSize layoutSize() const;
+ IntSize initialViewportSize() const { return m_icbSize; }
private:
PageScaleConstraintsSet();
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698