Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: webkit/glue/webframe_impl.cc

Issue 16617: Chrome side of webkit merge to 40124.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 8475)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -1755,8 +1755,10 @@
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;
}

Powered by Google App Engine
This is Rietveld 408576698