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

Unified Diff: third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.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/shadow/TextControlInnerElements.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp b/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
index 71eaed4485fc3c0f22d74b2b81195c701b3c1a1b..612d4edcb6e67a34ddcb4e4a3449655211fc8d3f 100644
--- a/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
@@ -51,9 +51,9 @@ TextControlInnerContainer::TextControlInnerContainer(Document& document)
{
}
-PassRefPtrWillBeRawPtr<TextControlInnerContainer> TextControlInnerContainer::create(Document& document)
+RawPtr<TextControlInnerContainer> TextControlInnerContainer::create(Document& document)
{
- RefPtrWillBeRawPtr<TextControlInnerContainer> element = adoptRefWillBeNoop(new TextControlInnerContainer(document));
+ RawPtr<TextControlInnerContainer> element = new TextControlInnerContainer(document);
element->setAttribute(idAttr, ShadowElementNames::textFieldContainer());
return element.release();
}
@@ -71,9 +71,9 @@ EditingViewPortElement::EditingViewPortElement(Document& document)
setHasCustomStyleCallbacks();
}
-PassRefPtrWillBeRawPtr<EditingViewPortElement> EditingViewPortElement::create(Document& document)
+RawPtr<EditingViewPortElement> EditingViewPortElement::create(Document& document)
{
- RefPtrWillBeRawPtr<EditingViewPortElement> element = adoptRefWillBeNoop(new EditingViewPortElement(document));
+ RawPtr<EditingViewPortElement> element = new EditingViewPortElement(document);
element->setAttribute(idAttr, ShadowElementNames::editingViewPort());
return element.release();
}
@@ -106,9 +106,9 @@ inline TextControlInnerEditorElement::TextControlInnerEditorElement(Document& do
setHasCustomStyleCallbacks();
}
-PassRefPtrWillBeRawPtr<TextControlInnerEditorElement> TextControlInnerEditorElement::create(Document& document)
+RawPtr<TextControlInnerEditorElement> TextControlInnerEditorElement::create(Document& document)
{
- RefPtrWillBeRawPtr<TextControlInnerEditorElement> element = adoptRefWillBeNoop(new TextControlInnerEditorElement(document));
+ RawPtr<TextControlInnerEditorElement> element = new TextControlInnerEditorElement(document);
element->setAttribute(idAttr, ShadowElementNames::innerEditor());
return element.release();
}
@@ -157,9 +157,9 @@ inline SearchFieldDecorationElement::SearchFieldDecorationElement(Document& docu
{
}
-PassRefPtrWillBeRawPtr<SearchFieldDecorationElement> SearchFieldDecorationElement::create(Document& document)
+RawPtr<SearchFieldDecorationElement> SearchFieldDecorationElement::create(Document& document)
{
- RefPtrWillBeRawPtr<SearchFieldDecorationElement> element = adoptRefWillBeNoop(new SearchFieldDecorationElement(document));
+ RawPtr<SearchFieldDecorationElement> element = new SearchFieldDecorationElement(document);
element->setAttribute(idAttr, ShadowElementNames::searchDecoration());
return element.release();
}
@@ -206,9 +206,9 @@ inline SearchFieldCancelButtonElement::SearchFieldCancelButtonElement(Document&
{
}
-PassRefPtrWillBeRawPtr<SearchFieldCancelButtonElement> SearchFieldCancelButtonElement::create(Document& document)
+RawPtr<SearchFieldCancelButtonElement> SearchFieldCancelButtonElement::create(Document& document)
{
- RefPtrWillBeRawPtr<SearchFieldCancelButtonElement> element = adoptRefWillBeNoop(new SearchFieldCancelButtonElement(document));
+ RawPtr<SearchFieldCancelButtonElement> element = new SearchFieldCancelButtonElement(document);
element->setShadowPseudoId(AtomicString("-webkit-search-cancel-button", AtomicString::ConstructFromLiteral));
element->setAttribute(idAttr, ShadowElementNames::clearButton());
return element.release();
@@ -227,7 +227,7 @@ void SearchFieldCancelButtonElement::detach(const AttachContext& context)
void SearchFieldCancelButtonElement::defaultEventHandler(Event* event)
{
// If the element is visible, on mouseup, clear the value, and set selection
- RefPtrWillBeRawPtr<HTMLInputElement> input(toHTMLInputElement(shadowHost()));
+ RawPtr<HTMLInputElement> input(toHTMLInputElement(shadowHost()));
if (!input || input->isDisabledOrReadOnly()) {
if (!event->defaultHandled())
HTMLDivElement::defaultEventHandler(event);

Powered by Google App Engine
This is Rietveld 408576698