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

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

Issue 951303003: Added basic client hints support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed expected files Created 5 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/FrameView.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index ded0aeb445ae18aa2f7519288f99d2d434a80fec..750c9f28120a50115618f1d7468ed7f1e2d8c504 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -4050,6 +4050,12 @@ void FrameView::setScrollOrigin(const IntPoint& origin, bool updatePositionAtAll
updateScrollbars(scrollOffsetDouble());
}
+int FrameView::viewportWidth() const
+{
+ int viewportWidth = layoutSize(IncludeScrollbars).width();
+ return adjustForAbsoluteZoom(viewportWidth, renderView());
+}
+
ScrollableArea* FrameView::scrollableArea()
{
Settings* settings = frame().settings();
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/frame/LocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698