OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "bindings/core/v8/NodeOrString.h" | 5 #include "bindings/core/v8/NodeOrString.h" |
6 #include "core/dom/ClientRect.h" | 6 #include "core/dom/ClientRect.h" |
7 #include "core/frame/BrowserControls.h" | 7 #include "core/frame/BrowserControls.h" |
8 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
9 #include "core/frame/RootFrameViewport.h" | 9 #include "core/frame/RootFrameViewport.h" |
10 #include "core/frame/VisualViewport.h" | 10 #include "core/frame/VisualViewport.h" |
11 #include "core/html/HTMLFrameOwnerElement.h" | 11 #include "core/html/HTMLFrameOwnerElement.h" |
12 #include "core/layout/LayoutBox.h" | 12 #include "core/layout/LayoutBox.h" |
13 #include "core/layout/api/LayoutViewItem.h" | 13 #include "core/layout/api/LayoutViewItem.h" |
14 #include "core/layout/compositing/CompositedLayerMapping.h" | 14 #include "core/layout/compositing/CompositedLayerMapping.h" |
15 #include "core/layout/compositing/PaintLayerCompositor.h" | 15 #include "core/layout/compositing/PaintLayerCompositor.h" |
16 #include "core/page/Page.h" | 16 #include "core/page/Page.h" |
17 #include "core/page/scrolling/RootScrollerController.h" | 17 #include "core/page/scrolling/RootScrollerController.h" |
18 #include "core/page/scrolling/TopDocumentRootScrollerController.h" | 18 #include "core/page/scrolling/TopDocumentRootScrollerController.h" |
19 #include "core/paint/PaintLayer.h" | 19 #include "core/paint/PaintLayer.h" |
20 #include "core/paint/PaintLayerScrollableArea.h" | 20 #include "core/paint/PaintLayerScrollableArea.h" |
21 #include "platform/testing/URLTestHelpers.h" | 21 #include "platform/testing/URLTestHelpers.h" |
22 #include "platform/testing/UnitTestHelpers.h" | 22 #include "platform/testing/UnitTestHelpers.h" |
| 23 #include "platform/wtf/Vector.h" |
23 #include "public/platform/Platform.h" | 24 #include "public/platform/Platform.h" |
24 #include "public/platform/WebURLLoaderMockFactory.h" | 25 #include "public/platform/WebURLLoaderMockFactory.h" |
25 #include "public/web/WebConsoleMessage.h" | 26 #include "public/web/WebConsoleMessage.h" |
26 #include "public/web/WebRemoteFrame.h" | 27 #include "public/web/WebRemoteFrame.h" |
27 #include "public/web/WebScriptSource.h" | 28 #include "public/web/WebScriptSource.h" |
28 #include "public/web/WebSettings.h" | 29 #include "public/web/WebSettings.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
30 #include "web/WebLocalFrameImpl.h" | 31 #include "web/WebLocalFrameImpl.h" |
31 #include "web/WebRemoteFrameImpl.h" | 32 #include "web/WebRemoteFrameImpl.h" |
32 #include "web/tests/FrameTestHelpers.h" | 33 #include "web/tests/FrameTestHelpers.h" |
33 #include "wtf/Vector.h" | |
34 | 34 |
35 using blink::testing::runPendingTasks; | 35 using blink::testing::runPendingTasks; |
36 using testing::Mock; | 36 using testing::Mock; |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 class RootScrollerTest : public ::testing::Test { | 42 class RootScrollerTest : public ::testing::Test { |
43 public: | 43 public: |
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 // FrameView without a layout. | 985 // FrameView without a layout. |
986 iframe->remove(); | 986 iframe->remove(); |
987 | 987 |
988 EXPECT_EQ(mainFrameView()->layoutViewportScrollableArea(), | 988 EXPECT_EQ(mainFrameView()->layoutViewportScrollableArea(), |
989 &mainFrameView()->getRootFrameViewport()->layoutViewport()); | 989 &mainFrameView()->getRootFrameViewport()->layoutViewport()); |
990 } | 990 } |
991 | 991 |
992 } // namespace | 992 } // namespace |
993 | 993 |
994 } // namespace blink | 994 } // namespace blink |
OLD | NEW |