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

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

Issue 1774193002: New paint invalidation using paint property tree walk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/LayoutView.h" 7 #include "core/layout/LayoutView.h"
8 #include "core/paint/ObjectPaintProperties.h" 8 #include "core/paint/ObjectPaintProperties.h"
9 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 9 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
10 #include "platform/testing/UnitTestHelpers.h" 10 #include "platform/testing/UnitTestHelpers.h"
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 ObjectPaintProperties* scrollerProperties = scroller.objectPaintProperties() ; 673 ObjectPaintProperties* scrollerProperties = scroller.objectPaintProperties() ;
674 LayoutObject& child = *document().getElementById("child")->layoutObject(); 674 LayoutObject& child = *document().getElementById("child")->layoutObject();
675 ObjectPaintProperties* childProperties = child.objectPaintProperties(); 675 ObjectPaintProperties* childProperties = child.objectPaintProperties();
676 676
677 EXPECT_EQ(frameView->contentClip(), childProperties->localBorderBoxPropertie s()->clip); 677 EXPECT_EQ(frameView->contentClip(), childProperties->localBorderBoxPropertie s()->clip);
678 EXPECT_EQ(frameView->scrollTranslation(), childProperties->localBorderBoxPro perties()->transform); 678 EXPECT_EQ(frameView->scrollTranslation(), childProperties->localBorderBoxPro perties()->transform);
679 EXPECT_EQ(scrollerProperties->effect(), childProperties->localBorderBoxPrope rties()->effect); 679 EXPECT_EQ(scrollerProperties->effect(), childProperties->localBorderBoxPrope rties()->effect);
680 } 680 }
681 681
682 } // namespace blink 682 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698