OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 , m_frame(frame) | 68 , m_frame(frame) |
69 , m_parent(parentDocument(frame)) | 69 , m_parent(parentDocument(frame)) |
70 , m_owner(ownerDocument(frame)) | 70 , m_owner(ownerDocument(frame)) |
71 , m_contextDocument(contextDocument) | 71 , m_contextDocument(contextDocument) |
72 , m_importsController(importsController) | 72 , m_importsController(importsController) |
73 , m_createNewRegistrationContext(false) | 73 , m_createNewRegistrationContext(false) |
74 , m_shouldReuseDefaultView(frame && frame->shouldReuseDefaultView(url)) | 74 , m_shouldReuseDefaultView(frame && frame->shouldReuseDefaultView(url)) |
75 { | 75 { |
76 } | 76 } |
77 | 77 |
78 DocumentInit::DocumentInit(const DocumentInit& other) | 78 DocumentInit::DocumentInit(const DocumentInit&) = default; |
79 : m_url(other.m_url) | |
80 , m_frame(other.m_frame) | |
81 , m_parent(other.m_parent) | |
82 , m_owner(other.m_owner) | |
83 , m_contextDocument(other.m_contextDocument) | |
84 , m_importsController(other.m_importsController) | |
85 , m_registrationContext(other.m_registrationContext) | |
86 , m_createNewRegistrationContext(other.m_createNewRegistrationContext) | |
87 , m_shouldReuseDefaultView(other.m_shouldReuseDefaultView) | |
88 { | |
89 } | |
90 | 79 |
91 DocumentInit::~DocumentInit() | 80 DocumentInit::~DocumentInit() |
92 { | 81 { |
93 } | 82 } |
94 | 83 |
95 bool DocumentInit::shouldSetURL() const | 84 bool DocumentInit::shouldSetURL() const |
96 { | 85 { |
97 LocalFrame* frame = frameForSecurityContext(); | 86 LocalFrame* frame = frameForSecurityContext(); |
98 return (frame && frame->owner()) || !m_url.isEmpty(); | 87 return (frame && frame->owner()) || !m_url.isEmpty(); |
99 } | 88 } |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 return m_contextDocument; | 177 return m_contextDocument; |
189 } | 178 } |
190 | 179 |
191 DocumentInit DocumentInit::fromContext(WeakPtrWillBeRawPtr<Document> contextDocu
ment, const KURL& url) | 180 DocumentInit DocumentInit::fromContext(WeakPtrWillBeRawPtr<Document> contextDocu
ment, const KURL& url) |
192 { | 181 { |
193 return DocumentInit(url, 0, contextDocument, 0); | 182 return DocumentInit(url, 0, contextDocument, 0); |
194 } | 183 } |
195 | 184 |
196 } // namespace blink | 185 } // namespace blink |
197 | 186 |
OLD | NEW |