Index: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
index 8de3047c10d96c68b74d0f0b2b763c3dd0bfaafa..da5a6a2cecbc3f6ec6983bf977aa82018ecd6355 100644 |
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp |
@@ -953,7 +953,7 @@ void WebPluginContainerImpl::computeClipRectsForPlugin( |
// The frameRect is already in absolute space, except for scrolling of the root frame. |
windowRect = frameRect(); |
- windowRect.moveBy(roundedIntPoint(-rootView->viewRect().location())); |
+ windowRect = enclosingIntRect(m_element->document().view()->layoutView()->localToAbsoluteQuad(FloatQuad(FloatRect(frameRect())), TraverseDocumentBoundaries).boundingBox()); |
clippedLocalRect = enclosingIntRect(unclippedAbsoluteRect); |
unclippedIntLocalRect = clippedLocalRect; |