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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimTest.cpp

Issue 2713773003: Add test for paint underinvalidation fix with animated transform overflow. (Closed)
Patch Set: Created 3 years, 10 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/sim/SimTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimTest.cpp b/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
index 0ec638384be008294dcff6140b0506780043cf6d..e460e89abac2d148adb221cc96075f33dc6d1cf2 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimTest.cpp
@@ -15,7 +15,10 @@
namespace blink {
-SimTest::SimTest() : m_webViewClient(m_compositor) {
+SimTest::SimTest() : SimTest(nullptr) {
+}
+
+SimTest::SimTest(void (*updateSettingsFunc)(WebSettings*)) : m_webViewClient(m_compositor) {
Document::setThreadedParsingEnabledForTesting(false);
// Use the mock theme to get more predictable code paths, this also avoids
// the OS callbacks in ScrollAnimatorMac which can schedule frames
@@ -25,7 +28,7 @@ SimTest::SimTest() : m_webViewClient(m_compositor) {
// in the middle of a test.
LayoutTestSupport::setMockThemeEnabledForTest(true);
ScrollbarTheme::setMockScrollbarsEnabled(true);
- m_webViewHelper.initialize(true, nullptr, &m_webViewClient);
+ m_webViewHelper.initialize(true, nullptr, &m_webViewClient, nullptr, updateSettingsFunc);
m_compositor.setWebViewImpl(webView());
m_page.setPage(webView().page());
}

Powered by Google App Engine
This is Rietveld 408576698