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

Unified Diff: Source/core/html/FormAssociatedElement.cpp

Issue 1320563003: Oilpan: avoid using WeakPtr<> for heap residing objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert unrelated unit test addition Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/FormAssociatedElement.cpp
diff --git a/Source/core/html/FormAssociatedElement.cpp b/Source/core/html/FormAssociatedElement.cpp
index ffb7151311a819c639d716cc4bc03bb9b2f45630..f3846ca5f1d1ce5786b11b5bc221dc8be092c739 100644
--- a/Source/core/html/FormAssociatedElement.cpp
+++ b/Source/core/html/FormAssociatedElement.cpp
@@ -162,11 +162,7 @@ void FormAssociatedElement::setForm(HTMLFormElement* newForm)
#endif
m_form->associate(*this);
} else {
-#if ENABLE(OILPAN)
m_form = nullptr;
-#else
- m_form = WeakPtr<HTMLFormElement>();
-#endif
}
didChangeForm();
}

Powered by Google App Engine
This is Rietveld 408576698