summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2016-02-06 05:22:56 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-06 13:23:42 +0000
commit48d1fd093dcfe72cdb5545c12469a3d20cff18ea (patch)
tree639385c8788bcc68ea99586cd1a28da712379725
parent58ceb921e5320ebadade5a16cc606e1542720d6a (diff)
downloadchromium_src-48d1fd093dcfe72cdb5545c12469a3d20cff18ea.zip
chromium_src-48d1fd093dcfe72cdb5545c12469a3d20cff18ea.tar.gz
chromium_src-48d1fd093dcfe72cdb5545c12469a3d20cff18ea.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}
-rw-r--r--third_party/WebKit/Source/core/dom/DocumentInit.cpp13
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 4b80976..55a8952 100644
--- a/third_party/WebKit/Source/core/dom/DocumentInit.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentInit.cpp
@@ -76,18 +76,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()
{