Index: content/renderer/render_view.cc |
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc |
index 63c36b4f21837c3273be066e88f452dd857feadf..851a9262b70c6c4a832c41fcd19a949efc184fd5 100644 |
--- a/content/renderer/render_view.cc |
+++ b/content/renderer/render_view.cc |
@@ -674,6 +674,9 @@ bool RenderView::OnMessageReceived(const IPC::Message& message) { |
#if defined(ENABLE_FLAPPER_HACKS) |
IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK) |
#endif |
+#if defined(OS_MACOSX) |
+ IPC_MESSAGE_HANDLER(ViewMsg_SetInLiveResize, OnSetInLiveResize) |
+#endif |
// Have the super handle all other messages. |
IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) |
@@ -908,6 +911,17 @@ void RenderView::OnSetInitialFocus(bool reverse) { |
webview()->setInitialFocus(reverse); |
} |
+#if defined(OS_MACOSX) |
+void RenderView::OnSetInLiveResize(bool in_live_resize) { |
+ if (!webview()) |
+ return; |
+ if (in_live_resize) |
+ webview()->willStartLiveResize(); |
+ else |
+ webview()->willEndLiveResize(); |
+} |
+#endif |
+ |
void RenderView::OnScrollFocusedEditableNodeIntoView() { |
WebKit::WebNode node = GetFocusedNode(); |
if (!node.isNull()) { |