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

Side by Side Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.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/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"
(...skipping 12 matching lines...) Expand all
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:
30 PrePaintTreeWalkTest() 30 PrePaintTreeWalkTest()
31 : ScopedSlimmingPaintV2ForTest(true), 31 : ScopedSlimmingPaintV2ForTest(true),
32 ScopedRootLayerScrollingForTest(GetParam()), 32 ScopedRootLayerScrollingForTest(GetParam()),
33 RenderingTest(EmptyFrameLoaderClient::create()) {} 33 RenderingTest(EmptyLocalFrameClient::create()) {}
34 34
35 const TransformPaintPropertyNode* framePreTranslation() { 35 const TransformPaintPropertyNode* framePreTranslation() {
36 FrameView* frameView = document().view(); 36 FrameView* frameView = document().view();
37 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { 37 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) {
38 return frameView->layoutView() 38 return frameView->layoutView()
39 ->paintProperties() 39 ->paintProperties()
40 ->paintOffsetTranslation(); 40 ->paintOffsetTranslation();
41 } 41 }
42 return frameView->preTranslation(); 42 return frameView->preTranslation();
43 } 43 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 // This changes clips for absolute-positioned descendants of "child" but not 254 // This changes clips for absolute-positioned descendants of "child" but not
255 // normal-position ones, which are already clipped to 50x50. 255 // normal-position ones, which are already clipped to 50x50.
256 parent->setAttribute(HTMLNames::classAttr, "clip"); 256 parent->setAttribute(HTMLNames::classAttr, "clip");
257 document().view()->updateAllLifecyclePhasesExceptPaint(); 257 document().view()->updateAllLifecyclePhasesExceptPaint();
258 258
259 EXPECT_TRUE(childPaintLayer->needsRepaint()); 259 EXPECT_TRUE(childPaintLayer->needsRepaint());
260 } 260 }
261 261
262 } // namespace blink 262 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698