Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp

Issue 2395053002: Prune createVisibleSelectionDeprecated from SelectionAdjuster (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
index e94156d02c1b8b69dc8c1087b694d12f12973d45..173900d49cc8f058319a04032189f0d92cac2fad 100644
--- a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
@@ -208,7 +208,13 @@ void SelectionAdjuster::adjustSelectionInDOMTree(
const Position& extent = toPositionInDOMTree(selectionInFlatTree.extent());
if (isCrossingShadowBoundaries(selectionInFlatTree)) {
- *selection = createVisibleSelectionDeprecated(base, extent);
+ DCHECK(base.document());
+
+ // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
+ // needs to be audited. See http://crbug.com/590369 for more details.
+ base.document()->updateStyleAndLayoutIgnorePendingStylesheets();
yosin_UTC9 2016/10/06 04:42:49 There are only two places, one is test. So, could
Xiaocheng 2016/10/06 05:11:04 I could not... Last time (crrev.com/2389653002) th
yosin_UTC9 2016/10/06 05:18:06 I see, please add TODO(yosin) about regression. My
+
+ *selection = createVisibleSelection(base, extent);
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698