Bug 1424839 - Continue checking selections after a collapsed one r=mats
authorAdam Gashlin <agashlin@mozilla.com>
Thu, 14 Dec 2017 14:29:59 -0600
changeset 448340 8b6af5a37d647cc9b7eb5160756cdb8a855490d4
parent 448339 8d6681b91e53c342a291418dcd2c5180d755b95f
child 448341 1526b26c9961cb3659d9c367b7b102791767816c
push id8527
push userCallek@gmail.com
push dateThu, 11 Jan 2018 21:05:50 +0000
treeherdermozilla-beta@95342d212a7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats
bugs1424839
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1424839 - Continue checking selections after a collapsed one r=mats MozReview-Commit-ID: 4YXtx2bEprU
dom/base/nsRange.cpp
--- a/dom/base/nsRange.cpp
+++ b/dom/base/nsRange.cpp
@@ -262,17 +262,17 @@ nsRange::IsNodeSelected(nsINode* aNode, 
           } else if (middle >= 1 &&
               (middleMinus1 = selection->GetRangeAt(middle - 1)) &&
               nsContentUtils::ComparePoints(
                 aNode, static_cast<int32_t>(aStartOffset),
                 middleMinus1->GetEndContainer(),
                 static_cast<int32_t>(middleMinus1->EndOffset())) < 0) {
             result = -1;
           } else {
-            return false;
+            break;
           }
         }
 
         if (result < 0) {
           high = middle;
         } else {
           low = middle + 1;
         }