| Index: Source/web/ValidationMessageClientImpl.cpp
|
| diff --git a/Source/web/ValidationMessageClientImpl.cpp b/Source/web/ValidationMessageClientImpl.cpp
|
| index da3b66a16313f38e40b262c3e1c9705150e078a8..c661a3e5da98e380adc871d4f5726964ecf47e1c 100644
|
| --- a/Source/web/ValidationMessageClientImpl.cpp
|
| +++ b/Source/web/ValidationMessageClientImpl.cpp
|
| @@ -73,7 +73,7 @@ void ValidationMessageClientImpl::showValidationMessage(const Element& anchor, c
|
| if (m_currentAnchor)
|
| hideValidationMessage(*m_currentAnchor);
|
| m_currentAnchor = &anchor;
|
| - IntRect anchorInViewport = currentView()->contentsToWindow(anchor.pixelSnappedBoundingBox());
|
| + IntRect anchorInViewport = currentView()->contentsToViewport(anchor.pixelSnappedBoundingBox());
|
| m_lastAnchorRectInScreen = currentView()->hostWindow()->viewportToScreen(anchorInViewport);
|
| m_lastPageScaleFactor = m_webView.pageScaleFactor();
|
| m_message = message;
|
| @@ -122,7 +122,7 @@ void ValidationMessageClientImpl::checkAnchorStatus(Timer<ValidationMessageClien
|
|
|
| // Check the visibility of the element.
|
| // FIXME: Can we check invisibility by scrollable non-frame elements?
|
| - IntRect newAnchorRectInViewport = currentView()->contentsToWindow(m_currentAnchor->pixelSnappedBoundingBox());
|
| + IntRect newAnchorRectInViewport = currentView()->contentsToViewport(m_currentAnchor->pixelSnappedBoundingBox());
|
|
|
| // FIXME: This intersection eliminates the part of the rect outside the root view.
|
| // If this is meant as a visiblity test, intersecting it against the viewport rect
|
|
|