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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp

Issue 2603063002: Only clear tooltip message on a user scroll or compositor scroll. (Closed)
Patch Set: Fix PLSA logic to include frame scrolls Created 3 years, 12 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/core/layout/LayoutTestHelper.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
index f038b83f934046a572b19b8a264a61deeb8096c8..4d6759e977bc134f1b6311cd96ac08dc6b389b8e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
@@ -31,15 +31,18 @@ void FrameLoaderClientWithParent::detached(FrameDetachType) {
->didDetachChild();
}
+ChromeClient& RenderingTest::chromeClient() const {
+ DEFINE_STATIC_LOCAL(EmptyChromeClient, client, (EmptyChromeClient::create()));
+ return client;
+}
+
RenderingTest::RenderingTest(FrameLoaderClient* frameLoaderClient)
: m_frameLoaderClient(frameLoaderClient) {}
void RenderingTest::SetUp() {
Page::PageClients pageClients;
fillWithEmptyClients(pageClients);
- DEFINE_STATIC_LOCAL(EmptyChromeClient, chromeClient,
- (EmptyChromeClient::create()));
- pageClients.chromeClient = &chromeClient;
+ pageClients.chromeClient = &chromeClient();
m_pageHolder = DummyPageHolder::create(
IntSize(800, 600), &pageClients, m_frameLoaderClient, settingOverrider());

Powered by Google App Engine
This is Rietveld 408576698