| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "web/ResizeViewportAnchor.h" | 5 #include "web/ResizeViewportAnchor.h" |
| 6 | 6 |
| 7 #include "core/frame/FrameHost.h" | |
| 8 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 9 #include "core/frame/RootFrameViewport.h" | 8 #include "core/frame/RootFrameViewport.h" |
| 10 #include "core/frame/VisualViewport.h" | 9 #include "core/frame/VisualViewport.h" |
| 11 #include "core/page/Page.h" | 10 #include "core/page/Page.h" |
| 12 #include "platform/geometry/DoubleRect.h" | 11 #include "platform/geometry/DoubleRect.h" |
| 13 #include "platform/geometry/FloatSize.h" | 12 #include "platform/geometry/FloatSize.h" |
| 14 | 13 |
| 15 namespace blink { | 14 namespace blink { |
| 16 | 15 |
| 17 void ResizeViewportAnchor::resizeFrameView(IntSize size) { | 16 void ResizeViewportAnchor::resizeFrameView(IntSize size) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 50 |
| 52 FrameView* ResizeViewportAnchor::rootFrameView() { | 51 FrameView* ResizeViewportAnchor::rootFrameView() { |
| 53 if (Frame* frame = m_page->mainFrame()) { | 52 if (Frame* frame = m_page->mainFrame()) { |
| 54 if (frame->isLocalFrame()) | 53 if (frame->isLocalFrame()) |
| 55 return toLocalFrame(frame)->view(); | 54 return toLocalFrame(frame)->view(); |
| 56 } | 55 } |
| 57 return nullptr; | 56 return nullptr; |
| 58 } | 57 } |
| 59 | 58 |
| 60 } // namespace blink | 59 } // namespace blink |
| OLD | NEW |