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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1307013004: Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync + fix html_viewer compile Created 5 years, 2 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: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index d926ef8f5f7bde9a20591c96938bff8271a9e3fc..5f5e67f18bd1e1efe4932819a65986a95996e5d3 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -859,6 +859,14 @@ void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag
m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags));
}
+void FrameLoaderClientImpl::didChangeFrameOwnerProperties(Frame* childFrame, ScrollbarMode scrollingMode, int marginWidth, int marginHeight)
dcheng 2015/10/08 06:43:15 Instead of passing all these values, maybe just pa
lazyboy 2015/10/08 17:57:40 Passing HTMLFrameOwnerElementBase* Done.
+{
+ if (!m_webFrame->client())
+ return;
+
+ m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(childFrame), WebFrameOwnerProperties(static_cast<WebFrameOwnerProperties::ScrollingMode>(scrollingMode), marginWidth, marginHeight));
+}
+
void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle)
{
m_webFrame->client()->willOpenWebSocket(handle);

Powered by Google App Engine
This is Rietveld 408576698