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

Unified Diff: third_party/WebKit/Source/core/html/forms/ColorInputType.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/forms/ColorInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
index 4f3585c95164913db2ae337c39b07bf4bc118fcd..86ba80956dafc4271267de73004b3364ef982e66 100644
--- a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
@@ -78,9 +78,9 @@ static bool isValidColorString(const String& value)
return color.setFromString(value) && !color.hasAlpha();
}
-PassRefPtrWillBeRawPtr<InputType> ColorInputType::create(HTMLInputElement& element)
+RawPtr<InputType> ColorInputType::create(HTMLInputElement& element)
{
- return adoptRefWillBeNoop(new ColorInputType(element));
+ return (new ColorInputType(element));
}
ColorInputType::~ColorInputType()
@@ -135,9 +135,9 @@ void ColorInputType::createShadowSubtree()
ASSERT(element().shadow());
Document& document = element().document();
- RefPtrWillBeRawPtr<HTMLDivElement> wrapperElement = HTMLDivElement::create(document);
+ RawPtr<HTMLDivElement> wrapperElement = HTMLDivElement::create(document);
wrapperElement->setShadowPseudoId(AtomicString("-webkit-color-swatch-wrapper", AtomicString::ConstructFromLiteral));
- RefPtrWillBeRawPtr<HTMLDivElement> colorSwatch = HTMLDivElement::create(document);
+ RawPtr<HTMLDivElement> colorSwatch = HTMLDivElement::create(document);
colorSwatch->setShadowPseudoId(AtomicString("-webkit-color-swatch", AtomicString::ConstructFromLiteral));
wrapperElement->appendChild(colorSwatch.release());
element().userAgentShadowRoot()->appendChild(wrapperElement.release());
@@ -266,7 +266,7 @@ Vector<ColorSuggestion> ColorInputType::suggestions() const
Vector<ColorSuggestion> suggestions;
HTMLDataListElement* dataList = element().dataList();
if (dataList) {
- RefPtrWillBeRawPtr<HTMLDataListOptionsCollection> options = dataList->options();
+ RawPtr<HTMLDataListOptionsCollection> options = dataList->options();
for (unsigned i = 0; HTMLOptionElement* option = options->item(i); i++) {
if (!element().isValidValue(option->value()))
continue;

Powered by Google App Engine
This is Rietveld 408576698