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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentInit.cpp

Issue 1676003002: Fix MSAN error for r373917. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698