| 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 60f179a96509fb54c23b1de1396f1530119f9c9c..b23baba13f134eeb606b6acb01eb0f7bc5a99b71 100644
|
| --- a/third_party/WebKit/Source/core/editing/SelectionController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp
|
| @@ -304,14 +304,12 @@ void SelectionController::selectClosestWordFromHitTestResult(const HitTestResult
|
| }
|
|
|
| #if OS(ANDROID)
|
| - // If node is not editable and doesn't have text except space, tab or
|
| - // line break, do not select that 'empty' area.
|
| - if (!innerNode->hasEditableStyle()) {
|
| - EphemeralRangeTemplate<Strategy> range = EphemeralRangeTemplate<Strategy>(newSelection.start(), newSelection.end());
|
| - String str = plainText(range, TextIteratorDefaultBehavior);
|
| - if (str.isEmpty() || str.simplifyWhiteSpace().containsOnlyWhitespace())
|
| - return;
|
| - }
|
| + // If node doesn't have text except space, tab or line break, do not
|
| + // select that 'empty' area.
|
| + EphemeralRangeTemplate<Strategy> range = EphemeralRangeTemplate<Strategy>(newSelection.start(), newSelection.end());
|
| + const String& str = plainText(range, TextIteratorDefaultBehavior);
|
| + if (str.isEmpty() || str.simplifyWhiteSpace().containsOnlyWhitespace())
|
| + return;
|
| #endif
|
|
|
| if (appendTrailingWhitespace == AppendTrailingWhitespace::ShouldAppend && newSelection.isRange())
|
|
|