| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/paint/LayoutObjectDrawingRecorder.h" | 6 #include "core/paint/LayoutObjectDrawingRecorder.h" |
| 7 | 7 |
| 8 #include "core/layout/LayoutTestHelper.h" | 8 #include "core/layout/LayoutTestHelper.h" |
| 9 #include "core/layout/LayoutView.h" | 9 #include "core/layout/LayoutView.h" |
| 10 #include "core/paint/DeprecatedPaintLayer.h" | 10 #include "core/paint/DeprecatedPaintLayer.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 RenderingTest::SetUp(); | 33 RenderingTest::SetUp(); |
| 34 enableCompositing(); | 34 enableCompositing(); |
| 35 | 35 |
| 36 m_layoutView = document().view()->layoutView(); | 36 m_layoutView = document().view()->layoutView(); |
| 37 ASSERT_TRUE(m_layoutView); | 37 ASSERT_TRUE(m_layoutView); |
| 38 } | 38 } |
| 39 | 39 |
| 40 virtual void TearDown() override | 40 virtual void TearDown() override |
| 41 { | 41 { |
| 42 RuntimeEnabledFeatures::setSlimmingPaintEnabled(false); | 42 // RuntimeEnabledFeatures::setSlimmingPaintEnabled(false); |
| 43 } | 43 } |
| 44 | 44 |
| 45 LayoutView* m_layoutView; | 45 LayoutView* m_layoutView; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 namespace { | 48 namespace { |
| 49 | 49 |
| 50 void drawNothing(GraphicsContext& context, const LayoutView& layoutView, PaintPh
ase phase, const FloatRect& bound) | 50 void drawNothing(GraphicsContext& context, const LayoutView& layoutView, PaintPh
ase phase, const FloatRect& bound) |
| 51 { | 51 { |
| 52 LayoutObjectDrawingRecorder drawingRecorder(context, layoutView, phase, boun
d); | 52 LayoutObjectDrawingRecorder drawingRecorder(context, layoutView, phase, boun
d); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 EXPECT_TRUE(isCached(newDisplayItemsBeforeUpdate()[0])); | 116 EXPECT_TRUE(isCached(newDisplayItemsBeforeUpdate()[0])); |
| 117 EXPECT_TRUE(isCached(newDisplayItemsBeforeUpdate()[1])); | 117 EXPECT_TRUE(isCached(newDisplayItemsBeforeUpdate()[1])); |
| 118 rootDisplayItemList().commitNewDisplayItems(); | 118 rootDisplayItemList().commitNewDisplayItems(); |
| 119 EXPECT_EQ((size_t)2, rootDisplayItemList().displayItems().size()); | 119 EXPECT_EQ((size_t)2, rootDisplayItemList().displayItems().size()); |
| 120 EXPECT_TRUE(isDrawing(rootDisplayItemList().displayItems()[0])); | 120 EXPECT_TRUE(isDrawing(rootDisplayItemList().displayItems()[0])); |
| 121 EXPECT_TRUE(isDrawing(rootDisplayItemList().displayItems()[1])); | 121 EXPECT_TRUE(isDrawing(rootDisplayItemList().displayItems()[1])); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace | 124 } // namespace |
| 125 } // namespace blink | 125 } // namespace blink |
| OLD | NEW |