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

Side by Side Diff: third_party/WebKit/Source/web/RemoteBridgeFrameOwner.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: content_unittests compile fix Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "web/RemoteBridgeFrameOwner.h" 6 #include "web/RemoteBridgeFrameOwner.h"
7 7
8 #include "public/web/WebFrameClient.h" 8 #include "public/web/WebFrameClient.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 RemoteBridgeFrameOwner::RemoteBridgeFrameOwner(PassRefPtrWillBeRawPtr<WebLocalFr ameImpl> frame, SandboxFlags flags) 12 RemoteBridgeFrameOwner::RemoteBridgeFrameOwner(PassRefPtrWillBeRawPtr<WebLocalFr ameImpl> frame, SandboxFlags flags, const WebFrameOwnerProperties& frameOwnerPro perties)
13 : m_frame(frame) 13 : m_frame(frame)
14 , m_sandboxFlags(flags) 14 , m_sandboxFlags(flags)
15 , m_scrolling(static_cast<ScrollbarMode>(frameOwnerProperties.scrollingMode) )
16 , m_marginWidth(frameOwnerProperties.marginWidth)
17 , m_marginHeight(frameOwnerProperties.marginHeight)
15 { 18 {
16 } 19 }
17 20
18 DEFINE_TRACE(RemoteBridgeFrameOwner) 21 DEFINE_TRACE(RemoteBridgeFrameOwner)
19 { 22 {
20 visitor->trace(m_frame); 23 visitor->trace(m_frame);
21 FrameOwner::trace(visitor); 24 FrameOwner::trace(visitor);
22 } 25 }
23 26
27 void RemoteBridgeFrameOwner::setScrollingMode(WebFrameOwnerProperties::Scrolling Mode mode)
28 {
29 m_scrolling = static_cast<ScrollbarMode>(mode);
30 }
31
24 void RemoteBridgeFrameOwner::dispatchLoad() 32 void RemoteBridgeFrameOwner::dispatchLoad()
25 { 33 {
26 if (m_frame->client()) 34 if (m_frame->client())
27 m_frame->client()->dispatchLoad(); 35 m_frame->client()->dispatchLoad();
28 } 36 }
29 37
30 } // namespace blink 38 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/RemoteBridgeFrameOwner.h ('k') | third_party/WebKit/Source/web/WebFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698