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

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

Issue 2638013002: Record box shadow as main thread scrolling reasons (Closed)
Patch Set: Record box shadow from where it gets detected && remove translucent border Created 3 years, 11 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: third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp b/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
index b63f40506c09166436649eeee8c49008228350e3..ac274b9855e0adbcfb3a1e5a60d53af2fbe99520 100644
--- a/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
@@ -1037,7 +1037,8 @@ class StyleRelatedMainThreadScrollingReasonTest
static const uint32_t m_LCDTextRelatedReasons =
MainThreadScrollingReason::kHasOpacityAndLCDText |
MainThreadScrollingReason::kHasTransformAndLCDText |
- MainThreadScrollingReason::kBackgroundNotOpaqueInRectAndLCDText;
+ MainThreadScrollingReason::kBackgroundNotOpaqueInRectAndLCDText |
+ MainThreadScrollingReason::kHasBoxShadowAndLCDText;
protected:
StyleRelatedMainThreadScrollingReasonTest() {
@@ -1154,4 +1155,8 @@ TEST_F(StyleRelatedMainThreadScrollingReasonTest, LCDTextEnabledTest) {
MainThreadScrollingReason::kHasBorderRadius);
}
+TEST_F(StyleRelatedMainThreadScrollingReasonTest, BoxShadowTest) {
+ testStyle("box-shadow", MainThreadScrollingReason::kHasBoxShadowAndLCDText);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698