| 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();
|
|
|