OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "core/paint/LayerClipRecorder.h" | 5 #include "core/paint/LayerClipRecorder.h" |
6 | 6 |
7 #include "core/layout/LayoutTestHelper.h" | 7 #include "core/layout/LayoutTestHelper.h" |
8 #include "core/layout/LayoutView.h" | 8 #include "core/layout/LayoutView.h" |
9 #include "core/layout/api/LayoutAPIShim.h" | 9 #include "core/layout/api/LayoutAPIShim.h" |
| 10 #include "core/layout/api/LayoutViewItem.h" |
10 #include "core/layout/compositing/PaintLayerCompositor.h" | 11 #include "core/layout/compositing/PaintLayerCompositor.h" |
11 #include "core/paint/LayoutObjectDrawingRecorder.h" | 12 #include "core/paint/LayoutObjectDrawingRecorder.h" |
12 #include "core/paint/PaintLayer.h" | 13 #include "core/paint/PaintLayer.h" |
13 #include "platform/graphics/GraphicsContext.h" | 14 #include "platform/graphics/GraphicsContext.h" |
14 #include "platform/graphics/GraphicsLayer.h" | 15 #include "platform/graphics/GraphicsLayer.h" |
15 #include "platform/graphics/paint/PaintController.h" | 16 #include "platform/graphics/paint/PaintController.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 | 18 |
18 namespace blink { | 19 namespace blink { |
19 namespace { | 20 namespace { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 GraphicsContext context(rootPaintController()); | 80 GraphicsContext context(rootPaintController()); |
80 EXPECT_EQ((size_t)0, rootPaintController().getDisplayItemList().size()); | 81 EXPECT_EQ((size_t)0, rootPaintController().getDisplayItemList().size()); |
81 | 82 |
82 drawEmptyClip(context, layoutView(), PaintPhaseForeground); | 83 drawEmptyClip(context, layoutView(), PaintPhaseForeground); |
83 rootPaintController().commitNewDisplayItems(); | 84 rootPaintController().commitNewDisplayItems(); |
84 EXPECT_EQ((size_t)0, rootPaintController().getDisplayItemList().size()); | 85 EXPECT_EQ((size_t)0, rootPaintController().getDisplayItemList().size()); |
85 } | 86 } |
86 | 87 |
87 } // namespace | 88 } // namespace |
88 } // namespace blink | 89 } // namespace blink |
OLD | NEW |