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 f29f07d1bc2c743d1ddc37fee0f46193249f96d1..c6fe984eca1f870dd37f2da56752814a80b9da01 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
@@ -87,6 +87,10 @@ VisibleSelectionInFlatTree expandSelectionToRespectUserSelectAll(Node* targetNod |
Node* rootUserSelectAll = EditingInFlatTreeStrategy::rootUserSelectAllForNode(targetNode); |
if (!rootUserSelectAll) |
return selection; |
+ if (rootUserSelectAll->isHTMLElement() && toHTMLElement(rootUserSelectAll)->isTextFormControl()) |
+ return selection; |
+ if (rootUserSelectAll->layoutObject()->style()->userModify() != READ_ONLY) |
+ return selection; |
VisibleSelectionInFlatTree newSelection(selection); |
newSelection.setBase(mostBackwardCaretPosition(PositionInFlatTree::beforeNode(rootUserSelectAll), CanCrossEditingBoundary)); |