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

Unified Diff: third_party/WebKit/Source/core/html/forms/RangeInputType.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/forms/RangeInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
index f382bb1ec9960580fa8c72d227d367e5d55f545c..f3c9c9371ddababdcc59fede4287f18de3082eb0 100644
--- a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
@@ -74,9 +74,9 @@ static Decimal ensureMaximum(const Decimal& proposedValue, const Decimal& minimu
return proposedValue >= minimum ? proposedValue : std::max(minimum, fallbackValue);
}
-PassRefPtrWillBeRawPtr<InputType> RangeInputType::create(HTMLInputElement& element)
+RawPtr<InputType> RangeInputType::create(HTMLInputElement& element)
{
- return adoptRefWillBeNoop(new RangeInputType(element));
+ return new RangeInputType(element);
}
RangeInputType::RangeInputType(HTMLInputElement& element)
@@ -241,11 +241,11 @@ void RangeInputType::createShadowSubtree()
ASSERT(element().shadow());
Document& document = element().document();
- RefPtrWillBeRawPtr<HTMLDivElement> track = HTMLDivElement::create(document);
+ RawPtr<HTMLDivElement> track = HTMLDivElement::create(document);
track->setShadowPseudoId(AtomicString("-webkit-slider-runnable-track", AtomicString::ConstructFromLiteral));
track->setAttribute(idAttr, ShadowElementNames::sliderTrack());
track->appendChild(SliderThumbElement::create(document));
- RefPtrWillBeRawPtr<HTMLElement> container = SliderContainerElement::create(document);
+ RawPtr<HTMLElement> container = SliderContainerElement::create(document);
container->appendChild(track.release());
element().userAgentShadowRoot()->appendChild(container.release());
}
@@ -357,7 +357,7 @@ void RangeInputType::updateTickMarkValues()
HTMLDataListElement* dataList = element().dataList();
if (!dataList)
return;
- RefPtrWillBeRawPtr<HTMLDataListOptionsCollection> options = dataList->options();
+ RawPtr<HTMLDataListOptionsCollection> options = dataList->options();
m_tickMarkValues.reserveCapacity(options->length());
for (unsigned i = 0; i < options->length(); ++i) {
HTMLOptionElement* optionElement = options->item(i);
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/RangeInputType.h ('k') | third_party/WebKit/Source/core/html/forms/ResetInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698