| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "public/web/WebFrame.h" | 6 #include "public/web/WebFrame.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/WindowProxyManager.h" | 8 #include "bindings/core/v8/WindowProxyManager.h" |
| 9 #include "core/frame/FrameHost.h" | 9 #include "core/frame/FrameHost.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 WebFrame* WebFrame::fromFrame(Frame* frame) | 261 WebFrame* WebFrame::fromFrame(Frame* frame) |
| 262 { | 262 { |
| 263 if (!frame) | 263 if (!frame) |
| 264 return 0; | 264 return 0; |
| 265 | 265 |
| 266 if (frame->isLocalFrame()) | 266 if (frame->isLocalFrame()) |
| 267 return WebLocalFrameImpl::fromFrame(toLocalFrame(*frame)); | 267 return WebLocalFrameImpl::fromFrame(toLocalFrame(*frame)); |
| 268 return WebRemoteFrameImpl::fromFrame(toRemoteFrame(*frame)); | 268 return WebRemoteFrameImpl::fromFrame(toRemoteFrame(*frame)); |
| 269 } | 269 } |
| 270 | 270 |
| 271 WebFrame::WebFrame() | 271 WebFrame::WebFrame(WebTreeScopeType scope) |
| 272 : m_parent(0) | 272 : m_scope(scope) |
| 273 , m_parent(0) |
| 273 , m_previousSibling(0) | 274 , m_previousSibling(0) |
| 274 , m_nextSibling(0) | 275 , m_nextSibling(0) |
| 275 , m_firstChild(0) | 276 , m_firstChild(0) |
| 276 , m_lastChild(0) | 277 , m_lastChild(0) |
| 277 , m_opener(0) | 278 , m_opener(0) |
| 278 , m_openedFrameTracker(new OpenedFrameTracker) | 279 , m_openedFrameTracker(new OpenedFrameTracker) |
| 279 { | 280 { |
| 280 } | 281 } |
| 281 | 282 |
| 282 WebFrame::~WebFrame() | 283 WebFrame::~WebFrame() |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 bool WebFrame::isFrameAlive(VisitorDispatcher visitor, const WebFrame* frame
) { return isFrameAliveImpl(visitor, frame); } \ | 334 bool WebFrame::isFrameAlive(VisitorDispatcher visitor, const WebFrame* frame
) { return isFrameAliveImpl(visitor, frame); } \ |
| 334 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI
mpl(visitor); } | 335 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI
mpl(visitor); } |
| 335 | 336 |
| 336 DEFINE_VISITOR_METHOD(Visitor*) | 337 DEFINE_VISITOR_METHOD(Visitor*) |
| 337 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor) | 338 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor) |
| 338 | 339 |
| 339 #undef DEFINE_VISITOR_METHOD | 340 #undef DEFINE_VISITOR_METHOD |
| 340 #endif | 341 #endif |
| 341 | 342 |
| 342 } // namespace blink | 343 } // namespace blink |
| OLD | NEW |