| Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| index 04527dafb5f0fbe0f1a08f0301217b13ff6895e5..440180ed1f0829ad486fbab9aded519ed351494f 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| @@ -59,7 +59,7 @@ VisibleSelectionTemplate<Strategy>::VisibleSelectionTemplate(
|
| m_isDirectional(selection.isDirectional()),
|
| m_granularity(selection.granularity()),
|
| m_hasTrailingWhitespace(selection.hasTrailingWhitespace()) {
|
| - validate();
|
| + validate(m_granularity);
|
| }
|
|
|
| template <typename Strategy>
|
| @@ -207,14 +207,6 @@ VisibleSelectionTemplate<Strategy>::toNormalizedEphemeralRange() const {
|
| }
|
|
|
| template <typename Strategy>
|
| -void VisibleSelectionTemplate<Strategy>::expandUsingGranularity(
|
| - TextGranularity granularity) {
|
| - if (isNone())
|
| - return;
|
| - validate(granularity);
|
| -}
|
| -
|
| -template <typename Strategy>
|
| static EphemeralRangeTemplate<Strategy> makeSearchRange(
|
| const PositionTemplate<Strategy>& pos) {
|
| Node* node = pos.anchorNode();
|
|
|