summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/webframe_impl.cc6
-rw-r--r--webkit/glue/webplugin_impl.cc4
2 files changed, 7 insertions, 3 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index 1a124f3..e263a16 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1755,8 +1755,10 @@ bool WebFrameImpl::SetPrintingMode(bool printing,
pages_.clear();
// The document width is well hidden.
- if (width)
- *width = frame()->document()->renderer()->width();
+ if (width) {
+ WebCore::RenderObject* obj = frame()->document()->renderer();
+ *width = WebCore::RenderBox::toRenderBox(obj)->width();
+ }
return true;
}
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 72234ad..811da21 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -33,6 +33,7 @@ MSVC_PUSH_WARNING_LEVEL(0);
#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 @@ void WebPluginImpl::windowCutoutRects(
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));
}
}