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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextAreaElement.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/HTMLTextAreaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
index 7d1782c48ec5bfc0e61b3cdb0e78c22eefd48664..61ba5a3944b4ca88d4a8bce9c5469c4b97c25480 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
@@ -88,9 +88,9 @@ HTMLTextAreaElement::HTMLTextAreaElement(Document& document, HTMLFormElement* fo
{
}
-PassRefPtrWillBeRawPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(Document& document, HTMLFormElement* form)
+RawPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(Document& document, HTMLFormElement* form)
{
- RefPtrWillBeRawPtr<HTMLTextAreaElement> textArea = adoptRefWillBeNoop(new HTMLTextAreaElement(document, form));
+ RawPtr<HTMLTextAreaElement> textArea = new HTMLTextAreaElement(document, form);
textArea->ensureUserAgentShadowRoot();
return textArea.release();
}
@@ -358,7 +358,7 @@ String HTMLTextAreaElement::value() const
void HTMLTextAreaElement::setValue(const String& value, TextFieldEventBehavior eventBehavior)
{
- RefPtrWillBeRawPtr<HTMLTextAreaElement> protector(this);
+ RawPtr<HTMLTextAreaElement> protector(this);
setValueCommon(value, eventBehavior);
m_isDirty = true;
if (document().focusedElement() == this)
@@ -440,10 +440,10 @@ String HTMLTextAreaElement::defaultValue() const
void HTMLTextAreaElement::setDefaultValue(const String& defaultValue)
{
- RefPtrWillBeRawPtr<Node> protectFromMutationEvents(this);
+ RawPtr<Node> protectFromMutationEvents(this);
// To preserve comments, remove only the text nodes, then add a single text node.
- WillBeHeapVector<RefPtrWillBeMember<Node>> textNodes;
+ HeapVector<Member<Node>> textNodes;
for (Node* n = firstChild(); n; n = n->nextSibling()) {
if (n->isTextNode())
textNodes.append(n);
@@ -634,7 +634,7 @@ void HTMLTextAreaElement::updatePlaceholderText()
return;
}
if (!placeholder) {
- RefPtrWillBeRawPtr<HTMLDivElement> newElement = HTMLDivElement::create(document());
+ RawPtr<HTMLDivElement> newElement = HTMLDivElement::create(document());
placeholder = newElement.get();
placeholder->setShadowPseudoId(AtomicString("-webkit-input-placeholder", AtomicString::ConstructFromLiteral));
placeholder->setAttribute(idAttr, ShadowElementNames::placeholder());

Powered by Google App Engine
This is Rietveld 408576698