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

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

Issue 2646903002: Add a UseCounter for selection intersection in Selection.addRange(). (Closed)
Patch Set: Created 3 years, 11 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 | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/DOMSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
index b3c41e3b4d5e38d117f47a61430277b5aa3207b0..4e5fc3c3eafdf43a05406ea05571836019927d53 100644
--- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
@@ -496,6 +496,7 @@ void DOMSelection::addRange(Range* newRange) {
// really do the same, since we don't support discontiguous selection. Further
// discussions at
// <https://code.google.com/p/chromium/issues/detail?id=353069>.
+ UseCounter::count(frame(), UseCounter::SelectionAddRangeIntersect);
Range* start = originalRange->compareBoundaryPoints(
Range::kStartToStart, newRange, ASSERT_NO_EXCEPTION) < 0
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698