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

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

Issue 2348993002: Don't include LayoutObject.h from FrameView.h (Closed)
Patch Set: 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 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/ObjectPaintInvalidator.h" 5 #include "core/paint/ObjectPaintInvalidator.h"
6 6
7 #include "core/layout/LayoutObject.h"
7 #include "core/layout/LayoutTestHelper.h" 8 #include "core/layout/LayoutTestHelper.h"
8 #include "platform/json/JSONValues.h" 9 #include "platform/json/JSONValues.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 using ObjectPaintInvalidatorTest = RenderingTest; 14 using ObjectPaintInvalidatorTest = RenderingTest;
14 15
15 TEST_F(ObjectPaintInvalidatorTest, TraverseNonCompositingDescendantsInPaintOrder ) 16 TEST_F(ObjectPaintInvalidatorTest, TraverseNonCompositingDescendantsInPaintOrder )
16 { 17 {
(...skipping 28 matching lines...) Expand all
45 EXPECT_EQ(getLayoutObjectByElementId("container")->debugName(), s); 46 EXPECT_EQ(getLayoutObjectByElementId("container")->debugName(), s);
46 JSONObject::cast(invalidations->at(1))->get("object")->asString(&s); 47 JSONObject::cast(invalidations->at(1))->get("object")->asString(&s);
47 EXPECT_EQ(getLayoutObjectByElementId("normal-child")->debugName(), s); 48 EXPECT_EQ(getLayoutObjectByElementId("normal-child")->debugName(), s);
48 JSONObject::cast(invalidations->at(2))->get("object")->asString(&s); 49 JSONObject::cast(invalidations->at(2))->get("object")->asString(&s);
49 EXPECT_EQ(getLayoutObjectByElementId("stacked-child")->debugName(), s); 50 EXPECT_EQ(getLayoutObjectByElementId("stacked-child")->debugName(), s);
50 JSONObject::cast(invalidations->at(3))->get("object")->asString(&s); 51 JSONObject::cast(invalidations->at(3))->get("object")->asString(&s);
51 EXPECT_EQ(getLayoutObjectByElementId("stacked-child-of-composited-non-stacki ng-context")->debugName(), s); 52 EXPECT_EQ(getLayoutObjectByElementId("stacked-child-of-composited-non-stacki ng-context")->debugName(), s);
52 } 53 }
53 54
54 } // namespace blink 55 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698