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

Side by Side Diff: Source/web/RemoteBridgeFrameOwner.cpp

Issue 1319863006: (blink) Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address nits Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/RemoteBridgeFrameOwner.h ('k') | Source/web/WebFrame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
24 void RemoteBridgeFrameOwner::dispatchLoad() 27 void RemoteBridgeFrameOwner::dispatchLoad()
25 { 28 {
26 if (m_frame->client()) 29 if (m_frame->client())
27 m_frame->client()->dispatchLoad(); 30 m_frame->client()->dispatchLoad();
28 } 31 }
29 32
30 } // namespace blink 33 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/RemoteBridgeFrameOwner.h ('k') | Source/web/WebFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698