Index: Source/core/editing/FrameSelection.cpp |
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp |
index 3ed06bd5230897b9b7b542d23d353ef9c3b3b70b..a3412a8914e0efd149548ae6b6363037a6e71825 100644 |
--- a/Source/core/editing/FrameSelection.cpp |
+++ b/Source/core/editing/FrameSelection.cpp |
@@ -297,6 +297,7 @@ void FrameSelection::setSelection(const VisibleSelection& newSelection, SetSelec |
notifyAccessibilityForSelectionChange(); |
notifyCompositorForSelectionChange(); |
+ notifyEventHandlerForSelectionChange(); |
m_frame->domWindow()->enqueueDocumentEvent(Event::create(EventTypeNames::selectionchange)); |
} |
@@ -1452,6 +1453,11 @@ void FrameSelection::notifyCompositorForSelectionChange() |
scheduleVisualUpdate(); |
} |
+void FrameSelection::notifyEventHandlerForSelectionChange() |
+{ |
+ m_frame->eventHandler().notifySelectionChanged(); |
+} |
+ |
void FrameSelection::focusedOrActiveStateChanged() |
{ |
bool activeAndFocused = isFocusedAndActive(); |