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

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, 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/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 3485263e72a48fb067952064a60340f9e3e5f9c1..fa8354302f7d54d4d40f3b76d757cd3e04b7513d 100644
--- a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
@@ -76,9 +76,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()
@@ -133,9 +133,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());
@@ -262,7 +262,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;
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/ColorInputType.h ('k') | third_party/WebKit/Source/core/html/forms/DateInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698