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

Side by Side Diff: third_party/WebKit/Source/core/paint/LayerClipRecorderTest.cpp

Issue 2316533004: Don't include headers from the layout API from other headers needlessly. (Closed)
Patch Set: The runway sure is slippery today. Created 4 years, 3 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698