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

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, 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/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 97075c1d8a3e2f07fc07d78b6bdf5db008fcd572..f95bd3546f7226737b01496f8bee716aad1a7d13 100644
--- a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp
@@ -55,9 +55,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)
@@ -252,7 +252,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));
@@ -278,7 +278,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