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

Side by Side Diff: third_party/WebKit/Source/web/ResizeViewportAnchor.cpp

Issue 2774823002: Remove FrameHost class (Closed)
Patch Set: Rebase Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698