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

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

Issue 2374183004: Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] (Closed)
Patch Set: Fix mac compile error Created 4 years, 3 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
Index: third_party/WebKit/Source/core/editing/PendingSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/PendingSelection.cpp b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
index a0ce47623cc5323286a52253b4aaef3c798ef531..171560d7703137e7ea9bc51c99b7f8d4a6c9c395 100644
--- a/third_party/WebKit/Source/core/editing/PendingSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
@@ -76,10 +76,10 @@ VisibleSelectionInFlatTree PendingSelection::calcVisibleSelection(const VisibleS
if (paintBlockCursor) {
VisiblePositionInFlatTree visibleExtent = createVisiblePosition(end, affinity);
visibleExtent = nextPositionOf(visibleExtent, CanSkipOverEditingBoundary);
- return VisibleSelectionInFlatTree(visibleStart, visibleExtent);
+ return createVisibleSelectionDeprecated(visibleStart, visibleExtent);
}
const VisiblePositionInFlatTree visibleEnd = createVisiblePosition(end, selectionType == SelectionType::RangeSelection ? TextAffinity::Upstream : affinity);
- return VisibleSelectionInFlatTree(visibleStart, visibleEnd);
+ return createVisibleSelectionDeprecated(visibleStart, visibleEnd);
}
void PendingSelection::commit(LayoutView& layoutView)

Powered by Google App Engine
This is Rietveld 408576698