| Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| index c4fd9c04fa9072c1e1cc67fcd884951b81944d23..beeba1971b64d70dbe3c02b984713d7830533117 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| @@ -2048,23 +2048,17 @@ bool isBlockFlowElement(const Node& node) {
|
| layoutObject->isLayoutBlockFlow();
|
| }
|
|
|
| -Position adjustedSelectionStartForStyleComputation(
|
| - const VisibleSelection& selection) {
|
| +Position adjustedSelectionStartForStyleComputation(const Position& position) {
|
| // This function is used by range style computations to avoid bugs like:
|
| // <rdar://problem/4017641> REGRESSION (Mail): you can only bold/unbold a
|
| // selection starting from end of line once
|
| // It is important to skip certain irrelevant content at the start of the
|
| // selection, so we do not wind up with a spurious "mixed" style.
|
|
|
| - VisiblePosition visiblePosition = createVisiblePosition(selection.start());
|
| + VisiblePosition visiblePosition = createVisiblePosition(position);
|
| if (visiblePosition.isNull())
|
| return Position();
|
|
|
| - // if the selection is a caret, just return the position, since the style
|
| - // behind us is relevant
|
| - if (selection.isCaret())
|
| - return visiblePosition.deepEquivalent();
|
| -
|
| // if the selection starts just before a paragraph break, skip over it
|
| if (isEndOfParagraph(visiblePosition))
|
| return mostForwardCaretPosition(
|
|
|