| Index: third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| index 746562310b9739df6d37aa3efd23cc6c6f82c547..c6a7082261ca7675691ce7eca7eafcf70de3e1a7 100644
|
| --- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
|
| @@ -633,7 +633,7 @@ bool SelectionEditor::modify(EAlteration alter, SelectionDirection direction, Te
|
| trialFrameSelection->setSelection(m_selection);
|
| trialFrameSelection->modify(alter, direction, granularity, NotUserTriggered);
|
|
|
| - if (trialFrameSelection->selection().isRange() && m_selection.isCaret() && !dispatchSelectStart())
|
| + if (trialFrameSelection->selection().isRange() && m_selection.isCaret() && dispatchSelectStart() != WebInputEventResult::NotHandled)
|
| return false;
|
| }
|
|
|
| @@ -901,11 +901,11 @@ PassRefPtrWillBeRawPtr<Range> SelectionEditor::firstRange() const
|
| return firstRangeOf(m_selection);
|
| }
|
|
|
| -bool SelectionEditor::dispatchSelectStart()
|
| +WebInputEventResult SelectionEditor::dispatchSelectStart()
|
| {
|
| Node* selectStartTarget = m_selection.extent().computeContainerNode();
|
| if (!selectStartTarget)
|
| - return true;
|
| + return WebInputEventResult::NotHandled;
|
|
|
| return selectStartTarget->dispatchEvent(Event::createCancelableBubble(EventTypeNames::selectstart));
|
| }
|
|
|