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 ceb6aa9ebe551f9bb46063cc94bff0009a492056..d2b5de161ec889fb6661dbe043f741a979bfe393 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp |
@@ -586,7 +586,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() != EventTarget::DispatchEventResult::NotHandled) |
return false; |
} |
@@ -857,11 +857,11 @@ PassRefPtrWillBeRawPtr<Range> SelectionEditor::firstRange() const |
return firstRangeOf(m_selection); |
} |
-bool SelectionEditor::dispatchSelectStart() |
+EventTarget::DispatchEventResult SelectionEditor::dispatchSelectStart() |
{ |
Node* selectStartTarget = m_selection.extent().computeContainerNode(); |
if (!selectStartTarget) |
- return true; |
+ return EventTarget::DispatchEventResult::NotHandled; |
return selectStartTarget->dispatchEvent(Event::createCancelableBubble(EventTypeNames::selectstart)); |
} |