Commit 189778ba authored by xiaochengh's avatar xiaochengh Committed by Commit bot

Revert of Prune createVisibleSelectionDeprecated from SelectionAdjuster...

Revert of Prune createVisibleSelectionDeprecated from SelectionAdjuster (patchset #1 id:1 of https://codereview.chromium.org/2389653002/ )

Reason for revert:
Suspected of causing crbug.com/652301

Original issue's description:
> Prune createVisibleSelectionDeprecated from SelectionAdjuster
>
> BUG=651373
>
> Committed: https://crrev.com/1301c7b47926fa0d435c2f396a6aeba2a4d179c1
> Cr-Commit-Position: refs/heads/master@{#422380}

TBR=yosin@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=651373

Review-Url: https://codereview.chromium.org/2391973002
Cr-Commit-Position: refs/heads/master@{#422756}
parent 33ba676d
......@@ -313,10 +313,6 @@ void FrameSelection::setSelectionAlgorithm(
visibleSelection<Strategy>();
const VisibleSelection oldSelectionInDOMTree = selection();
// TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
// needs to be audited. See http://crbug.com/590369 for more details.
document().updateStyleAndLayoutIgnorePendingStylesheets();
m_selectionEditor->setVisibleSelection(s, options);
m_frameCaret->setCaretRectNeedsUpdate();
......
......@@ -208,7 +208,7 @@ void SelectionAdjuster::adjustSelectionInDOMTree(
const Position& extent = toPositionInDOMTree(selectionInFlatTree.extent());
if (isCrossingShadowBoundaries(selectionInFlatTree)) {
*selection = createVisibleSelection(base, extent);
*selection = createVisibleSelectionDeprecated(base, extent);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment