Index: webkit/glue/webframe_impl.cc |
=================================================================== |
--- webkit/glue/webframe_impl.cc (revision 13128) |
+++ webkit/glue/webframe_impl.cc (working copy) |
@@ -105,6 +105,7 @@ |
#if defined(OS_WIN) |
#include "RenderThemeChromiumWin.h" |
#endif |
+#include "RenderView.h" |
#include "RenderWidget.h" |
#include "ReplaceSelectionCommand.h" |
#include "ResourceHandle.h" |
@@ -538,6 +539,15 @@ |
return GURL(); |
} |
+int WebFrameImpl::GetContentsPreferredWidth() const { |
+ if ((frame_->document() != NULL) && |
+ (frame_->document()->renderView() != NULL)) { |
+ return frame_->document()->renderView()->minPrefWidth(); |
+ } else { |
+ return 0; |
+ } |
+} |
+ |
scoped_refptr<FeedList> WebFrameImpl::GetFeedList() const { |
scoped_refptr<FeedList> feedlist = new FeedList(); |