Bug 165931

Summary: Stop reinterpret_casting UBreakIterators to the undefined type TextBreakIterator
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
achristensen: review+, mmaxfield: commit-queue-
Patch for committing
none
Patch for committing
none
Patch for committing
none
Patch for committing
none
Patch for committing
none
Patch for committing
none
Patch for committing none

Description Myles C. Maxfield 2016-12-15 16:39:51 PST
Stop reinterpret_casting UBreakIterators to the undefined type TextBreakIterator
Comment 1 Myles C. Maxfield 2016-12-15 16:46:29 PST
Created attachment 297253 [details]
Patch
Comment 2 Myles C. Maxfield 2016-12-15 17:26:01 PST
Created attachment 297263 [details]
Patch for committing
Comment 3 Myles C. Maxfield 2016-12-15 17:46:35 PST
Created attachment 297267 [details]
Patch for committing
Comment 4 Myles C. Maxfield 2016-12-15 18:24:40 PST
Created attachment 297277 [details]
Patch for committing
Comment 5 Darin Adler 2016-12-15 18:38:20 PST
Comment on attachment 297253 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=297253&action=review

> Source/WebCore/editing/TextCheckingHelper.cpp:83
> +    for (int wordStart = ubrk_current(iterator); wordStart >= 0; ) {
> +        int wordEnd = ubrk_next(iterator);

Looks like this file needs to include <unicode/ubrk.h> to compile on Windows:

C:\cygwin\home\buildbot\WebKit\Source\WebCore\editing\TextCheckingHelper.cpp(82): error C3861: 'ubrk_current': identifier not found (compiling source file C:\cygwin\home\buildbot\WebKit\Source\WebCore\editing\EditingAllInOne.cpp) [C:\cygwin\home\buildbot\WebKit\WebKitBuild\Release\Source\WebCore\WebCore.vcxproj]
C:\cygwin\home\buildbot\WebKit\Source\WebCore\editing\TextCheckingHelper.cpp(83): error C3861: 'ubrk_next': identifier not found (compiling source file C:\cygwin\home\buildbot\WebKit\Source\WebCore\editing\EditingAllInOne.cpp) [C:\cygwin\home\buildbot\WebKit\WebKitBuild\Release\Source\WebCore\WebCore.vcxproj]
Comment 6 Darin Adler 2016-12-15 18:38:57 PST
Oh, I see you were already trying to fix that.
Comment 7 Myles C. Maxfield 2016-12-15 19:45:13 PST
Created attachment 297289 [details]
Patch for committing
Comment 8 Myles C. Maxfield 2016-12-15 20:24:58 PST
Created attachment 297295 [details]
Patch for committing
Comment 9 Myles C. Maxfield 2016-12-15 20:41:45 PST
Created attachment 297296 [details]
Patch for committing
Comment 10 Myles C. Maxfield 2016-12-15 20:42:37 PST
Created attachment 297297 [details]
Patch for committing
Comment 11 WebKit Commit Bot 2016-12-15 21:20:10 PST
Comment on attachment 297297 [details]
Patch for committing

Clearing flags on attachment: 297297

Committed r209907: <http://trac.webkit.org/changeset/209907>
Comment 12 Myles C. Maxfield 2016-12-16 08:20:43 PST
Build fix at https://trac.webkit.org/changeset/209913