| 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 e538e06542a233670651655abc3d820f9481fd8b..6ab87d38dd6b85bb5562f8cbc8c30f254da37d83 100644
|
| --- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| @@ -968,7 +968,7 @@ void WebPluginContainerImpl::computeClipRectsForPlugin(
|
|
|
| LayoutBox* box = toLayoutBox(ownerElement->layoutObject());
|
|
|
| - // Plugin frameRects are in absolute screen space.
|
| + // Plugin frameRects are in absolute space within their frame.
|
| IntRect frameRectInOwnerElementSpace = box->absoluteToLocalQuad(FloatRect(frameRect()), UseTransforms).enclosingBoundingBox();
|
|
|
| LayoutRect unclippedAbsoluteRect(frameRectInOwnerElementSpace);
|
| @@ -986,8 +986,8 @@ void WebPluginContainerImpl::computeClipRectsForPlugin(
|
| clippedLocalRect.intersect(rootView->frameView()->visibleContentRect());
|
|
|
| // TODO(chrishtr): intentionally ignore transform, because the positioning of frameRect() does also. This is probably wrong.
|
| - unclippedIntLocalRect = box->absoluteToLocalQuad(FloatRect(unclippedIntLocalRect)).enclosingBoundingBox();
|
| - clippedLocalRect = box->absoluteToLocalQuad(FloatRect(clippedLocalRect)).enclosingBoundingBox();
|
| + unclippedIntLocalRect = box->absoluteToLocalQuad(FloatRect(unclippedIntLocalRect), TraverseDocumentBoundaries).enclosingBoundingBox();
|
| + clippedLocalRect = box->absoluteToLocalQuad(FloatRect(clippedLocalRect), TraverseDocumentBoundaries).enclosingBoundingBox();
|
| }
|
|
|
| void WebPluginContainerImpl::calculateGeometry(IntRect& windowRect, IntRect& clipRect, IntRect& unobscuredRect, Vector<IntRect>& cutOutRects)
|
| @@ -1006,4 +1006,4 @@ void WebPluginContainerImpl::calculateGeometry(IntRect& windowRect, IntRect& cli
|
| cutOutRects[i].move(-frameRect().x(), -frameRect().y());
|
| }
|
|
|
| -} // namespace blinkf
|
| +} // namespace blink
|
|
|