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

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, 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/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 eca599df57a6362b148961f68780535b40e66d83..51fa9abceb1d617972697d856bc0861933957b16 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
@@ -45,9 +45,9 @@ HTMLElement* nextElement(const HTMLElement& element, HTMLFormElement* stayWithin
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 = (new ClickHandlingState);
state->checked = element().checked();
state->checkedRadioButton = element().checkedRadioButtonForGroup();

Powered by Google App Engine
This is Rietveld 408576698