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

Unified Diff: third_party/WebKit/Source/core/html/forms/ImageInputType.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/ImageInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
index 80470e16a8054d297c1336ed131cad2eebd69730..ab1fdeb3772cd89648eda89122b0ed6575600f0b 100644
--- a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
@@ -48,9 +48,9 @@ inline ImageInputType::ImageInputType(HTMLInputElement& element)
{
}
-PassRefPtrWillBeRawPtr<InputType> ImageInputType::create(HTMLInputElement& element)
+RawPtr<InputType> ImageInputType::create(HTMLInputElement& element)
{
- return adoptRefWillBeNoop(new ImageInputType(element));
+ return new ImageInputType(element);
}
const AtomicString& ImageInputType::formControlType() const
@@ -109,7 +109,7 @@ static IntPoint extractClickLocation(Event* event)
void ImageInputType::handleDOMActivateEvent(Event* event)
{
- RefPtrWillBeRawPtr<HTMLInputElement> element(this->element());
+ RawPtr<HTMLInputElement> element(this->element());
if (element->isDisabledFormControl() || !element->form())
return;
element->setActivatedSubmit(true);
@@ -189,7 +189,7 @@ bool ImageInputType::shouldRespectHeightAndWidthAttributes()
unsigned ImageInputType::height() const
{
- RefPtrWillBeRawPtr<HTMLInputElement> element(this->element());
+ RawPtr<HTMLInputElement> element(this->element());
if (!element->layoutObject()) {
// Check the attribute first for an explicit pixel value.
@@ -211,7 +211,7 @@ unsigned ImageInputType::height() const
unsigned ImageInputType::width() const
{
- RefPtrWillBeRawPtr<HTMLInputElement> element(this->element());
+ RawPtr<HTMLInputElement> element(this->element());
if (!element->layoutObject()) {
// Check the attribute first for an explicit pixel value.
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/ImageInputType.h ('k') | third_party/WebKit/Source/core/html/forms/InputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698