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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.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/editing/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index 7aeb0d1f45878ec10d499195a6e38f8e40180923..f13e9eb2795dbc843738e22c25c5e6e9344c9851 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -56,9 +56,9 @@ InputMethodController::SelectionOffsetsScope::~SelectionOffsetsScope()
// ----------------------------
-PassOwnPtrWillBeRawPtr<InputMethodController> InputMethodController::create(LocalFrame& frame)
+RawPtr<InputMethodController> InputMethodController::create(LocalFrame& frame)
{
- return adoptPtrWillBeNoop(new InputMethodController(frame));
+ return new InputMethodController(frame);
}
InputMethodController::InputMethodController(LocalFrame& frame)
@@ -130,7 +130,7 @@ static void dispatchCompositionEndEvent(LocalFrame& frame, const String& text)
if (!target)
return;
- RefPtrWillBeRawPtr<CompositionEvent> event =
+ RawPtr<CompositionEvent> event =
CompositionEvent::create(EventTypeNames::compositionend, frame.domWindow(), text);
target->dispatchEvent(event);
}
@@ -261,7 +261,7 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
// 3. Canceling the ongoing composition.
// Send a compositionend event when function deletes the existing composition node, i.e.
// !hasComposition() && test.isEmpty().
- RefPtrWillBeRawPtr<CompositionEvent> event = nullptr;
+ RawPtr<CompositionEvent> event = nullptr;
if (!hasComposition()) {
// We should send a compositionstart event only when the given text is not empty because this
// function doesn't create a composition node when the text is empty.
@@ -321,7 +321,7 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
unsigned start = std::min(baseOffset + selectionStart, extentOffset);
unsigned end = std::min(std::max(start, baseOffset + selectionEnd), extentOffset);
- RefPtrWillBeRawPtr<Range> selectedRange = Range::create(baseNode->document(), baseNode, start, baseNode, end);
+ RawPtr<Range> selectedRange = Range::create(baseNode->document(), baseNode, start, baseNode, end);
frame().selection().setSelectedRange(selectedRange.get(), TextAffinity::Downstream, SelectionDirectionalMode::NonDirectional, NotUserTriggered);
if (underlines.isEmpty()) {
@@ -381,7 +381,7 @@ EphemeralRange InputMethodController::compositionEphemeralRange() const
return EphemeralRange(m_compositionRange.get());
}
-PassRefPtrWillBeRawPtr<Range> InputMethodController::compositionRange() const
+RawPtr<Range> InputMethodController::compositionRange() const
{
return hasComposition() ? m_compositionRange : nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698