Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index fd90957a58fd8df90dcd66039ffb75dd0e540789..e1dc70ff957b26ed33ce9b5443361db6cba9d361 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -849,7 +849,7 @@ void FrameSelection::selectAll() |
if (!root || editingIgnoresContent(root.get())) |
return; |
- if (selectStartTarget && !selectStartTarget->dispatchEvent(Event::createCancelableBubble(EventTypeNames::selectstart))) |
+ if (selectStartTarget && selectStartTarget->dispatchEvent(Event::createCancelableBubble(EventTypeNames::selectstart)) != EventTarget::DispatchEventResult::NotHandled) |
return; |
VisibleSelection newSelection(VisibleSelection::selectionFromContentsOfNode(root.get())); |