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 "bindings/core/v8/ScriptController.h" | 5 #include "bindings/core/v8/ScriptController.h" |
6 #include "bindings/core/v8/ScriptSourceCode.h" | 6 #include "bindings/core/v8/ScriptSourceCode.h" |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
10 #include "core/frame/LocalFrameView.h" | 10 #include "core/frame/LocalFrameView.h" |
| 11 #include "core/frame/WebLocalFrameBase.h" |
11 #include "core/html/HTMLIFrameElement.h" | 12 #include "core/html/HTMLIFrameElement.h" |
12 #include "core/layout/api/LayoutViewItem.h" | 13 #include "core/layout/api/LayoutViewItem.h" |
13 #include "core/layout/compositing/CompositedLayerMapping.h" | 14 #include "core/layout/compositing/CompositedLayerMapping.h" |
14 #include "core/page/FocusController.h" | 15 #include "core/page/FocusController.h" |
15 #include "core/page/Page.h" | 16 #include "core/page/Page.h" |
16 #include "core/paint/PaintLayer.h" | 17 #include "core/paint/PaintLayer.h" |
17 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 18 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
18 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 19 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
19 #include "platform/testing/URLTestHelpers.h" | 20 #include "platform/testing/URLTestHelpers.h" |
20 #include "platform/testing/UnitTestHelpers.h" | 21 #include "platform/testing/UnitTestHelpers.h" |
21 #include "public/platform/WebDisplayItemList.h" | 22 #include "public/platform/WebDisplayItemList.h" |
22 #include "public/platform/WebLayer.h" | 23 #include "public/platform/WebLayer.h" |
23 #include "public/web/WebFrameContentDumper.h" | 24 #include "public/web/WebFrameContentDumper.h" |
24 #include "public/web/WebHitTestResult.h" | 25 #include "public/web/WebHitTestResult.h" |
25 #include "public/web/WebSettings.h" | 26 #include "public/web/WebSettings.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
27 #include "web/WebLocalFrameImpl.h" | |
28 #include "web/WebRemoteFrameImpl.h" | 28 #include "web/WebRemoteFrameImpl.h" |
29 #include "web/tests/sim/SimCompositor.h" | 29 #include "web/tests/sim/SimCompositor.h" |
30 #include "web/tests/sim/SimDisplayItemList.h" | 30 #include "web/tests/sim/SimDisplayItemList.h" |
31 #include "web/tests/sim/SimRequest.h" | 31 #include "web/tests/sim/SimRequest.h" |
32 #include "web/tests/sim/SimTest.h" | 32 #include "web/tests/sim/SimTest.h" |
33 | 33 |
34 using testing::_; | 34 using testing::_; |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 // the child. This behavior matches Safari. | 1225 // the child. This behavior matches Safari. |
1226 frame_element->setAttribute(styleAttr, "display: none"); | 1226 frame_element->setAttribute(styleAttr, "display: none"); |
1227 CompositeFrame(); | 1227 CompositeFrame(); |
1228 EXPECT_FALSE( | 1228 EXPECT_FALSE( |
1229 frame_element->contentDocument()->View()->CanThrottleRendering()); | 1229 frame_element->contentDocument()->View()->CanThrottleRendering()); |
1230 EXPECT_TRUE( | 1230 EXPECT_TRUE( |
1231 child_frame_element->contentDocument()->View()->CanThrottleRendering()); | 1231 child_frame_element->contentDocument()->View()->CanThrottleRendering()); |
1232 } | 1232 } |
1233 | 1233 |
1234 } // namespace blink | 1234 } // namespace blink |
OLD | NEW |