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

Unified Diff: Source/web/tests/ScrollingCoordinatorTest.cpp

Issue 1298493003: Currently we only composite fixed position elements if we are on High DPI devices. This fix allows … Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove similarity check Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/web/tests/ScrollingCoordinatorTest.cpp
diff --git a/Source/web/tests/ScrollingCoordinatorTest.cpp b/Source/web/tests/ScrollingCoordinatorTest.cpp
index 977730e95a853edd816815e2888f7cc2fe0ef6c6..ea484fac895cf87c962960935079fd85f8f9f2e9 100644
--- a/Source/web/tests/ScrollingCoordinatorTest.cpp
+++ b/Source/web/tests/ScrollingCoordinatorTest.cpp
@@ -595,13 +595,13 @@ TEST_F(ScrollingCoordinatorTest, FixedPositionLosingBackingShouldTriggerMainThre
Document* document = frame()->document();
Element* fixedPos = document->getElementById("fixed");
- EXPECT_TRUE(static_cast<LayoutBoxModelObject*>(fixedPos->layoutObject())->layer()->hasCompositedDeprecatedPaintLayerMapping());
+ ASSERT_EQ(PaintsIntoOwnBacking, static_cast<LayoutBoxModelObject*>(fixedPos->layoutObject())->layer()->compositingState());
EXPECT_FALSE(scrollLayer->shouldScrollOnMainThread());
- fixedPos->setInlineStyleProperty(CSSPropertyTransform, CSSValueNone);
+ fixedPos->setInlineStyleProperty(CSSPropertyBackground, "rgba(255, 255, 0, 0.99)");
forceFullCompositingUpdate();
- EXPECT_FALSE(static_cast<LayoutBoxModelObject*>(fixedPos->layoutObject())->layer()->hasCompositedDeprecatedPaintLayerMapping());
+ ASSERT_EQ(NotComposited, static_cast<LayoutBoxModelObject*>(fixedPos->layoutObject())->layer()->compositingState());
EXPECT_TRUE(scrollLayer->shouldScrollOnMainThread());
}

Powered by Google App Engine
This is Rietveld 408576698