| Index: Source/core/layout/LayoutView.cpp
|
| diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
|
| index ead1a72bd8ad37997767b150530e9dbe55d0e8d1..6a6419d91d6bbfc57de34fdf7748911a7464bc4a 100644
|
| --- a/Source/core/layout/LayoutView.cpp
|
| +++ b/Source/core/layout/LayoutView.cpp
|
| @@ -804,11 +804,11 @@ void LayoutView::commitPendingSelectionAlgorithm()
|
| // and will fill the gap before 'bar'.
|
| PositionType startPos = Strategy::selectionStart(selection);
|
| PositionType candidate = startPos.downstream();
|
| - if (candidate.isCandidate())
|
| + if (isVisuallyEquivalentCandidate(candidate))
|
| startPos = candidate;
|
| PositionType endPos = Strategy::selectionEnd(selection);
|
| candidate = endPos.upstream();
|
| - if (candidate.isCandidate())
|
| + if (isVisuallyEquivalentCandidate(candidate))
|
| endPos = candidate;
|
|
|
| // We can get into a state where the selection endpoints map to the same VisiblePosition when a selection is deleted
|
|
|