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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.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, 10 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/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index d9e5e99d584e8c70154ce0cb7367d2736ac72f47..cc5a7b6f669089a791bd07a6674ec1ab1f72970d 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -376,9 +376,9 @@ void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString&
}
}
-PassRefPtrWillBeRawPtr<DocumentFragment> HTMLElement::textToFragment(const String& text, ExceptionState& exceptionState)
+RawPtr<DocumentFragment> HTMLElement::textToFragment(const String& text, ExceptionState& exceptionState)
{
- RefPtrWillBeRawPtr<DocumentFragment> fragment = DocumentFragment::create(document());
+ RawPtr<DocumentFragment> fragment = DocumentFragment::create(document());
unsigned i, length = text.length();
UChar c = 0;
for (unsigned start = 0; start < length; ) {
@@ -462,7 +462,7 @@ void HTMLElement::setInnerText(const String& text, ExceptionState& exceptionStat
}
// Add text nodes and <br> elements.
- RefPtrWillBeRawPtr<DocumentFragment> fragment = textToFragment(text, exceptionState);
+ RawPtr<DocumentFragment> fragment = textToFragment(text, exceptionState);
if (!exceptionState.hadException())
replaceChildrenWithFragment(this, fragment.release(), exceptionState);
}
@@ -484,9 +484,9 @@ void HTMLElement::setOuterText(const String& text, ExceptionState& exceptionStat
return;
}
- RefPtrWillBeRawPtr<Node> prev = previousSibling();
- RefPtrWillBeRawPtr<Node> next = nextSibling();
- RefPtrWillBeRawPtr<Node> newChild = nullptr;
+ RawPtr<Node> prev = previousSibling();
+ RawPtr<Node> next = nextSibling();
+ RawPtr<Node> newChild = nullptr;
// Convert text to fragment with <br> tags instead of linebreaks if needed.
if (text.contains('\r') || text.contains('\n'))
@@ -503,7 +503,7 @@ void HTMLElement::setOuterText(const String& text, ExceptionState& exceptionStat
parent->replaceChild(newChild.release(), this, exceptionState);
- RefPtrWillBeRawPtr<Node> node = next ? next->previousSibling() : nullptr;
+ RawPtr<Node> node = next ? next->previousSibling() : nullptr;
if (!exceptionState.hadException() && node && node->isTextNode())
mergeWithNextTextNode(toText(node.get()), exceptionState);

Powered by Google App Engine
This is Rietveld 408576698