Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 9cc7d2e

Browse files
Fix the macCatalyst build after r258525
* WebProcess/WebPage/Cocoa/TextCheckingControllerProxy.mm: (WebKit::TextCheckingControllerProxy::annotatedSubstringBetweenPositions): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@258529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 9b010fc commit 9cc7d2e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Source/WebKit/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2020-03-16 Tim Horton <[email protected]>
2+
3+
Fix the macCatalyst build after r258525
4+
5+
* WebProcess/WebPage/Cocoa/TextCheckingControllerProxy.mm:
6+
(WebKit::TextCheckingControllerProxy::annotatedSubstringBetweenPositions):
7+
18
2020-03-15 Darin Adler <[email protected]>
29

310
Move most of TextIterator off of live ranges

Source/WebKit/WebProcess/WebPage/Cocoa/TextCheckingControllerProxy.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ typedef NS_ENUM(NSInteger, NSSpellingState) {
185185
size_t entireRangeLength;
186186
TextIterator::getLocationAndLengthFromRange(commonAncestor.get(), entireRange.get(), entireRangeLocation, entireRangeLength);
187187

188-
for (TextIterator it(start.deepEquivalent(), end.deepEquivalent()); !it.atEnd(); it.advance()) {
188+
for (TextIterator it({ *makeBoundaryPoint(start.deepEquivalent()), *makeBoundaryPoint(end.deepEquivalent()) }); !it.atEnd(); it.advance()) {
189189
int currentTextLength = it.text().length();
190190
if (!currentTextLength)
191191
continue;

0 commit comments

Comments
 (0)