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

Unified Diff: third_party/WebKit/Source/core/html/forms/FileInputType.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/FileInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
index fd6fc169d0b44026f9a0f4750dcabfa4a0c02983..4d1f950bc47ae7a5efced9707250ef867159ba5b 100644
--- a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
@@ -54,9 +54,9 @@ inline FileInputType::FileInputType(HTMLInputElement& element)
{
}
-PassRefPtrWillBeRawPtr<InputType> FileInputType::create(HTMLInputElement& element)
+RawPtr<InputType> FileInputType::create(HTMLInputElement& element)
{
- return adoptRefWillBeNoop(new FileInputType(element));
+ return (new FileInputType(element));
}
DEFINE_TRACE(FileInputType)
@@ -251,7 +251,7 @@ void FileInputType::countUsage()
void FileInputType::createShadowSubtree()
{
ASSERT(element().shadow());
- RefPtrWillBeRawPtr<HTMLInputElement> button = HTMLInputElement::create(element().document(), 0, false);
+ RawPtr<HTMLInputElement> button = HTMLInputElement::create(element().document(), 0, false);
button->setType(InputTypeNames::button);
button->setAttribute(valueAttr, AtomicString(locale().queryString(element().multiple() ? WebLocalizedString::FileButtonChooseMultipleFilesLabel : WebLocalizedString::FileButtonChooseFileLabel)));
button->setShadowPseudoId(AtomicString("-webkit-file-upload-button", AtomicString::ConstructFromLiteral));
@@ -277,7 +277,7 @@ void FileInputType::setFiles(FileList* files)
if (!files)
return;
- RefPtrWillBeRawPtr<HTMLInputElement> input(element());
+ RawPtr<HTMLInputElement> input(element());
bool filesChanged = false;
if (files->length() != m_fileList->length()) {

Powered by Google App Engine
This is Rietveld 408576698