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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 7a7d3894ed88097c3eff07c36ea5c819f6b11e88..2adac44717003374592739bb9bd8ee62e26f5f92 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -413,9 +413,11 @@ void PaintLayerScrollableArea::updateScrollOffset(const ScrollOffset& newOffset,
frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(
quadForFakeMouseMoveEvent);
- Page* page = frame->page();
- if (page)
- page->chromeClient().clearToolTip(*frame);
+ if (scrollType == UserScroll || scrollType == CompositorScroll) {
+ Page* page = frame->page();
+ if (page)
+ page->chromeClient().clearToolTip(*frame);
+ }
bool requiresPaintInvalidation = true;

Powered by Google App Engine
This is Rietveld 408576698