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

Unified Diff: third_party/WebKit/Source/core/html/forms/RadioInputType.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/RadioInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
index 7cb71b6b42f0f1da3bb54d67a1f87b14e37059fd..63eebd822dd19f83bfb635382bf6035400b19210 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
@@ -46,9 +46,9 @@ HTMLInputElement* nextInputElement(const HTMLInputElement& element, const HTMLFo
using namespace HTMLNames;
-PassRefPtrWillBeRawPtr<InputType> RadioInputType::create(HTMLInputElement& element)
+RawPtr<InputType> RadioInputType::create(HTMLInputElement& element)
{
- return adoptRefWillBeNoop(new RadioInputType(element));
+ return new RadioInputType(element);
}
const AtomicString& RadioInputType::formControlType() const
@@ -116,7 +116,7 @@ void RadioInputType::handleKeydownEvent(KeyboardEvent* event)
}
}
if (inputElement) {
- RefPtrWillBeRawPtr<HTMLInputElement> protector(inputElement);
+ RawPtr<HTMLInputElement> protector(inputElement);
document.setFocusedElement(inputElement, FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone, nullptr));
inputElement->dispatchSimulatedClick(event, SendNoEvents);
event->setDefaultHandled();
@@ -165,7 +165,7 @@ bool RadioInputType::shouldSendChangeEventAfterCheckedChanged()
return element().checked();
}
-PassOwnPtrWillBeRawPtr<ClickHandlingState> RadioInputType::willDispatchClick()
+RawPtr<ClickHandlingState> RadioInputType::willDispatchClick()
{
// An event handler can use preventDefault or "return false" to reverse the selection we do here.
// The ClickHandlingState object contains what we need to undo what we did here in didDispatchClick.
@@ -174,7 +174,7 @@ PassOwnPtrWillBeRawPtr<ClickHandlingState> RadioInputType::willDispatchClick()
// Therefore if nothing is currently selected, we won't allow the upcoming action to be "undone", since
// we want some object in the radio group to actually get selected.
- OwnPtrWillBeRawPtr<ClickHandlingState> state = adoptPtrWillBeNoop(new ClickHandlingState);
+ RawPtr<ClickHandlingState> state = adoptPtrWillBeNoop(new ClickHandlingState);
state->checked = element().checked();
state->checkedRadioButton = element().checkedRadioButtonForGroup();
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/RadioInputType.h ('k') | third_party/WebKit/Source/core/html/forms/RangeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698