Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
| index 7befa59cab9596c4259b88f2b9181b14a778f3c7..7bd6f7d99b8069848ed49ca77198f2a2947e59b0 100644 |
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
| @@ -3816,9 +3816,10 @@ void FrameView::updateScrollOffset(const ScrollOffset& offset, |
| document->enqueueScrollEventForNode(document); |
| m_frame->eventHandler().dispatchFakeMouseMoveEventSoon(); |
| - Page* page = frame().page(); |
| - if (page) |
| - page->chromeClient().clearToolTip(*m_frame); |
| + if (scrollType == UserScroll || scrollType == CompositorScroll) { |
| + if (Page* page = frame().page()) |
|
tdresser
2017/01/03 13:56:32
Moving the assignment to within the conditional ma
|
| + page->chromeClient().clearToolTip(*m_frame); |
| + } |
| LayoutViewItem layoutViewItem = document->layoutViewItem(); |
| if (!layoutViewItem.isNull()) { |