Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
index 7587722432c4d74d6a6b3aefb67630bd90c3e756..f82a1556d910cbb48df6375030a969108819d13e 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
@@ -1915,7 +1915,9 @@ static bool enabledInRichlyEditableText(LocalFrame& frame, |
// before accessing |FrameSelection::selection()|. |
frame.selection().updateIfNeeded(); |
return !frame.selection().isNone() && |
- frame.selection().isContentRichlyEditable() && |
+ frame.selection() |
+ .computeVisibleSelectionInDOMTreeDeprecated() |
+ .isContentRichlyEditable() && |
frame.selection().rootEditableElement(); |
} |
@@ -1947,7 +1949,9 @@ static bool enabledRangeInRichlyEditableText(LocalFrame& frame, |
// before accessing |FrameSelection::selection()|. |
frame.selection().updateIfNeeded(); |
return frame.selection().isRange() && |
- frame.selection().isContentRichlyEditable(); |
+ frame.selection() |
+ .computeVisibleSelectionInDOMTreeDeprecated() |
+ .isContentRichlyEditable(); |
} |
static bool enabledRedo(LocalFrame& frame, Event*, EditorCommandSource) { |