| 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 "core/layout/LayoutTestHelper.h" | 5 #include "core/layout/LayoutTestHelper.h" |
| 6 #include "core/layout/LayoutTreeAsText.h" | 6 #include "core/layout/LayoutTreeAsText.h" |
| 7 #include "core/layout/api/LayoutViewItem.h" | 7 #include "core/layout/api/LayoutViewItem.h" |
| 8 #include "core/paint/ObjectPaintProperties.h" | 8 #include "core/paint/ObjectPaintProperties.h" |
| 9 #include "core/paint/PaintLayer.h" | 9 #include "core/paint/PaintLayer.h" |
| 10 #include "core/paint/PaintPropertyTreePrinter.h" | 10 #include "core/paint/PaintPropertyTreePrinter.h" |
| 11 #include "platform/graphics/paint/GeometryMapper.h" | 11 #include "platform/graphics/paint/GeometryMapper.h" |
| 12 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" | 12 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" |
| 13 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 13 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| 14 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 14 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
| 15 #include "platform/testing/UnitTestHelpers.h" | 15 #include "platform/testing/UnitTestHelpers.h" |
| 16 #include "platform/text/TextStream.h" | 16 #include "platform/text/TextStream.h" |
| 17 #include "platform/wtf/HashMap.h" |
| 18 #include "platform/wtf/Vector.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "wtf/HashMap.h" | |
| 19 #include "wtf/Vector.h" | |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 typedef bool TestParamRootLayerScrolling; | 23 typedef bool TestParamRootLayerScrolling; |
| 24 class PrePaintTreeWalkTest | 24 class PrePaintTreeWalkTest |
| 25 : public ::testing::WithParamInterface<TestParamRootLayerScrolling>, | 25 : public ::testing::WithParamInterface<TestParamRootLayerScrolling>, |
| 26 private ScopedSlimmingPaintV2ForTest, | 26 private ScopedSlimmingPaintV2ForTest, |
| 27 private ScopedRootLayerScrollingForTest, | 27 private ScopedRootLayerScrollingForTest, |
| 28 public RenderingTest { | 28 public RenderingTest { |
| 29 public: | 29 public: |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 // This changes clips for absolute-positioned descendants of "child" but not | 256 // This changes clips for absolute-positioned descendants of "child" but not |
| 257 // normal-position ones, which are already clipped to 50x50. | 257 // normal-position ones, which are already clipped to 50x50. |
| 258 parent->setAttribute(HTMLNames::classAttr, "clip"); | 258 parent->setAttribute(HTMLNames::classAttr, "clip"); |
| 259 GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); | 259 GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); |
| 260 | 260 |
| 261 EXPECT_TRUE(child_paint_layer->NeedsRepaint()); | 261 EXPECT_TRUE(child_paint_layer->NeedsRepaint()); |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace blink | 264 } // namespace blink |
| OLD | NEW |