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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
diff --git a/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp b/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
index 3598c725928bb1edc00415876aa88178fddeb3d4..d012dc16fef4ec1e33ce01fc8c4c22562baf23ed 100644
--- a/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
+++ b/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
@@ -38,16 +38,15 @@ namespace blink {
using namespace HTMLNames;
class FormAttributeTargetObserver : public IdTargetObserver {
- USING_FAST_MALLOC_WILL_BE_REMOVED(FormAttributeTargetObserver);
public:
- static PassOwnPtrWillBeRawPtr<FormAttributeTargetObserver> create(const AtomicString& id, FormAssociatedElement*);
+ static RawPtr<FormAttributeTargetObserver> create(const AtomicString& id, FormAssociatedElement*);
DECLARE_VIRTUAL_TRACE();
void idTargetChanged() override;
private:
FormAttributeTargetObserver(const AtomicString& id, FormAssociatedElement*);
- RawPtrWillBeMember<FormAssociatedElement> m_element;
+ Member<FormAssociatedElement> m_element;
};
FormAssociatedElement::FormAssociatedElement()
@@ -279,7 +278,7 @@ void FormAssociatedElement::setCustomValidity(const String& error)
m_customValidationMessage = error;
}
-void FormAssociatedElement::setFormAttributeTargetObserver(PassOwnPtrWillBeRawPtr<FormAttributeTargetObserver> newObserver)
+void FormAssociatedElement::setFormAttributeTargetObserver(RawPtr<FormAttributeTargetObserver> newObserver)
{
if (m_formAttributeTargetObserver)
m_formAttributeTargetObserver->unregister();
@@ -337,9 +336,9 @@ HTMLElement& toHTMLElement(FormAssociatedElement& associatedElement)
return const_cast<HTMLElement&>(toHTMLElement(static_cast<const FormAssociatedElement&>(associatedElement)));
}
-PassOwnPtrWillBeRawPtr<FormAttributeTargetObserver> FormAttributeTargetObserver::create(const AtomicString& id, FormAssociatedElement* element)
+RawPtr<FormAttributeTargetObserver> FormAttributeTargetObserver::create(const AtomicString& id, FormAssociatedElement* element)
{
- return adoptPtrWillBeNoop(new FormAttributeTargetObserver(id, element));
+ return new FormAttributeTargetObserver(id, element);
}
FormAttributeTargetObserver::FormAttributeTargetObserver(const AtomicString& id, FormAssociatedElement* element)
« no previous file with comments | « third_party/WebKit/Source/core/html/FormAssociatedElement.h ('k') | third_party/WebKit/Source/core/html/HTMLAllCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698