Index: webkit/glue/webplugin_impl.cc |
=================================================================== |
--- webkit/glue/webplugin_impl.cc (revision 8475) |
+++ webkit/glue/webplugin_impl.cc (working copy) |
@@ -33,6 +33,7 @@ |
#include "PlatformContextSkia.h" |
#include "PlatformMouseEvent.h" |
#include "PlatformString.h" |
+#include "RenderBox.h" |
#include "ResourceHandle.h" |
#include "ResourceHandleClient.h" |
#include "ResourceResponse.h" |
@@ -633,7 +634,8 @@ |
if (n && n->hasTagName(WebCore::HTMLNames::iframeTag)) { |
if (!ro->style() || ro->style()->visibility() == WebCore::VISIBLE) { |
WebCore::IntPoint point = roundedIntPoint(ro->localToAbsolute()); |
- WebCore::IntSize size(ro->width(), ro->height()); |
+ WebCore::RenderBox* rbox = WebCore::RenderBox::toRenderBox(ro); |
+ WebCore::IntSize size(rbox->width(), rbox->height()); |
cutouts->append(WebCore::IntRect(point, size)); |
} |
} |