| Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| index 9a15330d50765bcedde5fba60c91fe238ad266b7..e9dc1bc2882027b2300d8791f780a59816feb32d 100644
|
| --- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| @@ -627,18 +627,25 @@ void ChromeClientImpl::showMouseOverURL(const HitTestResult& result) {
|
| return;
|
|
|
| WebURL url;
|
| - // Find out if the mouse is over a link, and if so, let our UI know...
|
| - if (result.isLiveLink() && !result.absoluteLinkURL().getString().isEmpty()) {
|
| - url = result.absoluteLinkURL();
|
| - } else if (result.innerNode() && (isHTMLObjectElement(*result.innerNode()) ||
|
| - isHTMLEmbedElement(*result.innerNode()))) {
|
| - LayoutObject* object = result.innerNode()->layoutObject();
|
| - if (object && object->isLayoutPart()) {
|
| - Widget* widget = toLayoutPart(object)->widget();
|
| - if (widget && widget->isPluginContainer()) {
|
| - WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget);
|
| - url = plugin->plugin()->linkAtPosition(
|
| - result.roundedPointInInnerNodeFrame());
|
| +
|
| + // Ignore URL if hitTest include scrollbar since we might have both a
|
| + // scrollbar and an element in the case of overlay scrollbars.
|
| + if (!result.scrollbar()) {
|
| + // Find out if the mouse is over a link, and if so, let our UI know...
|
| + if (result.isLiveLink() &&
|
| + !result.absoluteLinkURL().getString().isEmpty()) {
|
| + url = result.absoluteLinkURL();
|
| + } else if (result.innerNode() &&
|
| + (isHTMLObjectElement(*result.innerNode()) ||
|
| + isHTMLEmbedElement(*result.innerNode()))) {
|
| + LayoutObject* object = result.innerNode()->layoutObject();
|
| + if (object && object->isLayoutPart()) {
|
| + Widget* widget = toLayoutPart(object)->widget();
|
| + if (widget && widget->isPluginContainer()) {
|
| + WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget);
|
| + url = plugin->plugin()->linkAtPosition(
|
| + result.roundedPointInInnerNodeFrame());
|
| + }
|
| }
|
| }
|
| }
|
|
|