Index: third_party/WebKit/Source/core/editing/SelectionController.cpp |
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
index 4f74bd149e559af1c3bac79731c5106b7ee23395..6a436361e9d5d70dbd12922f6da2c54fd0f3d0b1 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
@@ -75,10 +75,10 @@ void setSelectionIfNeeded(FrameSelection& selection, const VisibleSelectionTempl |
selection.setSelection(newSelection); |
} |
-bool dispatchSelectStart(Node* node) |
+WebInputEventResult dispatchSelectStart(Node* node) |
{ |
if (!node || !node->layoutObject()) |
- return true; |
+ return WebInputEventResult::NotHandled; |
return node->dispatchEvent(Event::createCancelableBubble(EventTypeNames::selectstart)); |
} |
@@ -218,7 +218,7 @@ void SelectionController::updateSelectionForMouseDragAlgorithm(const HitTestResu |
} |
} |
- if (m_selectionState == SelectionState::HaveNotStartedSelection && !dispatchSelectStart(target)) |
+ if (m_selectionState == SelectionState::HaveNotStartedSelection && dispatchSelectStart(target) != WebInputEventResult::NotHandled) |
return; |
// TODO(yosin) We should check |mousePressNode|, |targetPosition|, and |
@@ -271,7 +271,7 @@ bool SelectionController::updateSelectionForMouseDownDispatchingSelectStart(Node |
if (targetNode && targetNode->layoutObject() && !targetNode->layoutObject()->isSelectable()) |
return false; |
- if (!dispatchSelectStart(targetNode)) |
+ if (dispatchSelectStart(targetNode) != WebInputEventResult::NotHandled) |
return false; |
if (!selection.isValidFor(*m_frame->document())) |