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

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

Issue 2721503002: Rename all uses of EmptyFrameLoaderClient with EmptyLocalFrameClient. (Closed)
Patch Set: Change V8 headers to user includes and introduce a space between system and user headers. Headers w… Created 3 years, 9 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 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/paint/PaintLayerClipper.h" 5 #include "core/paint/PaintLayerClipper.h"
6 6
7 #include "core/layout/LayoutBoxModelObject.h" 7 #include "core/layout/LayoutBoxModelObject.h"
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/PaintLayer.h" 10 #include "core/paint/PaintLayer.h"
11 #include "platform/LayoutTestSupport.h" 11 #include "platform/LayoutTestSupport.h"
12 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" 12 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
13 #include "platform/testing/UnitTestHelpers.h" 13 #include "platform/testing/UnitTestHelpers.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class PaintLayerClipperTest : public ::testing::WithParamInterface<bool>, 17 class PaintLayerClipperTest : public ::testing::WithParamInterface<bool>,
18 private ScopedSlimmingPaintV2ForTest, 18 private ScopedSlimmingPaintV2ForTest,
19 public RenderingTest { 19 public RenderingTest {
20 public: 20 public:
21 PaintLayerClipperTest() 21 PaintLayerClipperTest()
22 : ScopedSlimmingPaintV2ForTest(GetParam()), 22 : ScopedSlimmingPaintV2ForTest(GetParam()),
23 RenderingTest(EmptyFrameLoaderClient::create()) {} 23 RenderingTest(EmptyLocalFrameClient::create()) {}
24 24
25 void SetUp() override { 25 void SetUp() override {
26 LayoutTestSupport::setMockThemeEnabledForTest(true); 26 LayoutTestSupport::setMockThemeEnabledForTest(true);
27 RenderingTest::SetUp(); 27 RenderingTest::SetUp();
28 } 28 }
29 29
30 void TearDown() override { 30 void TearDown() override {
31 LayoutTestSupport::setMockThemeEnabledForTest(false); 31 LayoutTestSupport::setMockThemeEnabledForTest(false);
32 RenderingTest::TearDown(); 32 RenderingTest::TearDown();
33 } 33 }
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 option = PaintLayer::UseGeometryMapper; 446 option = PaintLayer::UseGeometryMapper;
447 parent->clipper(option).clearClipRectsIncludingDescendants(AbsoluteClipRects); 447 parent->clipper(option).clearClipRectsIncludingDescendants(AbsoluteClipRects);
448 448
449 EXPECT_TRUE(parent->clipRectsCache()); 449 EXPECT_TRUE(parent->clipRectsCache());
450 EXPECT_TRUE(child->clipRectsCache()); 450 EXPECT_TRUE(child->clipRectsCache());
451 EXPECT_FALSE(parent->clipRectsCache()->get(AbsoluteClipRects).root); 451 EXPECT_FALSE(parent->clipRectsCache()->get(AbsoluteClipRects).root);
452 EXPECT_FALSE(parent->clipRectsCache()->get(AbsoluteClipRects).root); 452 EXPECT_FALSE(parent->clipRectsCache()->get(AbsoluteClipRects).root);
453 } 453 }
454 454
455 } // namespace blink 455 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698