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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2437873008: Get rid of flat tree version of createVisibleSelection() taking two VisiblePosition (Closed)
Patch Set: 2016-10-24T16:38:25 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 | « third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index 2cccbc35bf9f0e8bf1c4a3d7fa8f155c876f9869..ee1316fe1eb25b8dc2a7df9e0b02eb743f56fce7 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -1952,7 +1952,10 @@ void AXLayoutObject::setSelection(const AXRange& selection) {
return;
frame->selection().setSelection(
- createVisibleSelection(anchorVisiblePosition, focusVisiblePosition));
+ SelectionInDOMTree::Builder()
+ .collapse(anchorVisiblePosition.toPositionWithAffinity())
+ .extend(focusVisiblePosition.deepEquivalent())
+ .build());
}
bool AXLayoutObject::isValidSelectionBound(const AXObject* boundObject) const {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698