|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by Xiaocheng Modified:
4 years, 4 months ago Reviewers:
yosin_UTC9 CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionForce expandToParagraphBoundary to return a valid EphemeralRange
This is a first-aid patch that make expandToParagraphBoundary()
compare the paragraph boundaries found with the input range before
returning, so that the returned range is always a super-range of
the input range, and hence, a valid EphemeralRange.
This patch does not fix the root cause of the bugs, as we:
- do not expect startOfParagraph()'s return value to be beyond that of
endOfParagraph()'s, and
- are planning of getting rid of TextCheckingParagraph, the only client
of expandToParagraphBoundary(), ultimately
BUG=639521, 639801, 640022, 640030, 640112
TEST=n/a; this is a first-aid patch
Committed: https://crrev.com/8d1974aecc77d407a9ee89d2434f0079b4cc1e40
Cr-Commit-Position: refs/heads/master@{#413942}
Patch Set 1 #Patch Set 2 : Use position comparison #Messages
Total messages: 22 (17 generated)
The CQ bit was checked by xiaochengh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Force expandToParagraphBoundary to return a valid EphemeralRange BUG=639521, 639801, 640022, 640030, 640112 ========== to ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a quick-aid patch forcing expandToParagraphBoundary() to return a valid EphemeralRange by using VisibleSelection::toNormalizedEphemeralRange instead of constructing an EphemeralRange directly. This patch does not fix the root cause of the bugs, as we do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s. BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a quick-aid patch ==========
Description was changed from ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a quick-aid patch forcing expandToParagraphBoundary() to return a valid EphemeralRange by using VisibleSelection::toNormalizedEphemeralRange instead of constructing an EphemeralRange directly. This patch does not fix the root cause of the bugs, as we do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s. BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a quick-aid patch ========== to ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch forcing expandToParagraphBoundary() to return a valid EphemeralRange by using VisibleSelection::toNormalizedEphemeralRange instead of constructing an EphemeralRange directly. This patch does not fix the root cause of the bugs, as we do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s. BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by xiaochengh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch forcing expandToParagraphBoundary() to return a valid EphemeralRange by using VisibleSelection::toNormalizedEphemeralRange instead of constructing an EphemeralRange directly. This patch does not fix the root cause of the bugs, as we do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s. BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch ========== to ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch forcing expandToParagraphBoundary() to return a valid EphemeralRange by using VisibleSelection::toNormalizedEphemeralRange instead of constructing an EphemeralRange directly. This patch does not fix the root cause of the bugs, as we: - do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s, and - are planning of getting rid of TextCheckingParagraph, the only client of expandToParagraphBoundary(), ultimately BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch ==========
xiaochengh@chromium.org changed reviewers: + yosin@chromium.org
PTAL.
lgtm Great! Since most of case we can find sentence boundary correctly. On unusual HTML cases, we failed to find sentence boundary. Fixing sentence boundary function isn't simple and will be change it to use state machine in next quarter. This patch is reasonable workaround at this time.
The CQ bit was checked by xiaochengh@chromium.org
The CQ bit was unchecked by xiaochengh@chromium.org
Description was changed from ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch forcing expandToParagraphBoundary() to return a valid EphemeralRange by using VisibleSelection::toNormalizedEphemeralRange instead of constructing an EphemeralRange directly. This patch does not fix the root cause of the bugs, as we: - do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s, and - are planning of getting rid of TextCheckingParagraph, the only client of expandToParagraphBoundary(), ultimately BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch ========== to ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch that make expandToParagraphBoundary() compare the paragraph boundaries found with the input range before returning, so that the returned range is always a super-range of the input range, and hence, a valid EphemeralRange. This patch does not fix the root cause of the bugs, as we: - do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s, and - are planning of getting rid of TextCheckingParagraph, the only client of expandToParagraphBoundary(), ultimately BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch ==========
The CQ bit was checked by xiaochengh@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch that make expandToParagraphBoundary() compare the paragraph boundaries found with the input range before returning, so that the returned range is always a super-range of the input range, and hence, a valid EphemeralRange. This patch does not fix the root cause of the bugs, as we: - do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s, and - are planning of getting rid of TextCheckingParagraph, the only client of expandToParagraphBoundary(), ultimately BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch ========== to ========== Force expandToParagraphBoundary to return a valid EphemeralRange This is a first-aid patch that make expandToParagraphBoundary() compare the paragraph boundaries found with the input range before returning, so that the returned range is always a super-range of the input range, and hence, a valid EphemeralRange. This patch does not fix the root cause of the bugs, as we: - do not expect startOfParagraph()'s return value to be beyond that of endOfParagraph()'s, and - are planning of getting rid of TextCheckingParagraph, the only client of expandToParagraphBoundary(), ultimately BUG=639521, 639801, 640022, 640030, 640112 TEST=n/a; this is a first-aid patch Committed: https://crrev.com/8d1974aecc77d407a9ee89d2434f0079b4cc1e40 Cr-Commit-Position: refs/heads/master@{#413942} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/8d1974aecc77d407a9ee89d2434f0079b4cc1e40 Cr-Commit-Position: refs/heads/master@{#413942} |
