diff options
author | Daniel Cheng <dcheng@chromium.org> | 2016-02-06 09:59:10 -0800 |
---|---|---|
committer | Daniel Cheng <dcheng@chromium.org> | 2016-02-06 18:01:34 +0000 |
commit | a8685830ded4f2f8869bd46b1d8dd6e3c43bc527 (patch) | |
tree | ad21b7ddd5786f1fad087a5e306f0de264bf8349 | |
parent | f047fe0de96f445eba935f885b8c0d45873bbed7 (diff) | |
download | chromium_src-a8685830ded4f2f8869bd46b1d8dd6e3c43bc527.zip chromium_src-a8685830ded4f2f8869bd46b1d8dd6e3c43bc527.tar.gz chromium_src-a8685830ded4f2f8869bd46b1d8dd6e3c43bc527.tar.bz2 |
Fix MSAN error for r373917.
The new member wasn't being set in the copy constructor; to prevent
future errors like this, the copy constructor is now explicitly
defaulted.
BUG=583445,584895
Review URL: https://codereview.chromium.org/1676003002
Cr-Commit-Position: refs/heads/master@{#374029}
(cherry picked from commit 48d1fd093dcfe72cdb5545c12469a3d20cff18ea)
Review URL: https://codereview.chromium.org/1677893002 .
Cr-Commit-Position: refs/branch-heads/2564@{#680}
Cr-Branched-From: 1283eca15bd9f772387f75241576cde7bdec7f54-refs/heads/master@{#359700}
-rw-r--r-- | third_party/WebKit/Source/core/dom/DocumentInit.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/third_party/WebKit/Source/core/dom/DocumentInit.cpp b/third_party/WebKit/Source/core/dom/DocumentInit.cpp index e7bd1ec..bc682f5 100644 --- a/third_party/WebKit/Source/core/dom/DocumentInit.cpp +++ b/third_party/WebKit/Source/core/dom/DocumentInit.cpp @@ -77,18 +77,7 @@ DocumentInit::DocumentInit(const KURL& url, LocalFrame* frame, WeakPtrWillBeRawP { } -DocumentInit::DocumentInit(const DocumentInit& other) - : m_url(other.m_url) - , m_frame(other.m_frame) - , m_parent(other.m_parent) - , m_owner(other.m_owner) - , m_contextDocument(other.m_contextDocument) - , m_importsController(other.m_importsController) - , m_registrationContext(other.m_registrationContext) - , m_createNewRegistrationContext(other.m_createNewRegistrationContext) - , m_shouldReuseDefaultView(other.m_shouldReuseDefaultView) -{ -} +DocumentInit::DocumentInit(const DocumentInit&) = default; DocumentInit::~DocumentInit() { |