| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 5f7811ab0e093325d9aed8fcdff0ae8d327225dd..2ee21256120725603884c7a9e760789c8041f913 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -861,7 +861,7 @@ void Element::scrollFrameTo(const ScrollToOptions& scrollToOptions)
|
| view->setScrollPosition(DoublePoint(scaledLeft, scaledTop), scrollBehavior);
|
| }
|
|
|
| -IntRect Element::boundsInRootViewSpace()
|
| +IntRect Element::boundsInViewportSpace()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
|
|
| @@ -889,7 +889,7 @@ IntRect Element::boundsInRootViewSpace()
|
| for (size_t i = 1; i < quads.size(); ++i)
|
| result.unite(quads[i].enclosingBoundingBox());
|
|
|
| - result = view->contentsToRootView(result);
|
| + result = view->contentsToWindow(result);
|
|
|
| // FIXME: Cleanup pinch viewport coordinate translations. crbug.com/371902.
|
| PinchViewport& pinchViewport = document().page()->frameHost().pinchViewport();
|
|
|