Bug 180984 - Implement InlineTextBox painting using marker subranges
Summary: Implement InlineTextBox painting using marker subranges
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords: InRadar
Depends on:
Blocks: 175784 181993
  Show dependency treegraph
 
Reported: 2017-12-19 11:28 PST by Daniel Bates
Modified: 2018-01-23 10:47 PST (History)
8 users (show)

See Also:


Attachments
Patch (69.98 KB, patch)
2017-12-19 11:33 PST, Daniel Bates
hyatt: review+
Details | Formatted Diff | Diff
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (2.53 MB, application/zip)
2017-12-19 12:44 PST, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2017-12-19 11:28:07 PST
As a step towards fixing bug #175784, we should write the InlineTextBox painting code in terms of MarkerSubrange instances.
Comment 1 Daniel Bates 2017-12-19 11:33:32 PST
Created attachment 329779 [details]
Patch
Comment 2 EWS Watchlist 2017-12-19 12:33:00 PST
Attachment 329779 [details] did not pass style-queue:


ERROR: Source/WebCore/rendering/InlineTextBox.cpp:554:  More than one command on the same line  [whitespace/newline] [4]
Total errors found: 1 in 13 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 EWS Watchlist 2017-12-19 12:44:37 PST Comment hidden (obsolete)
Comment 4 EWS Watchlist 2017-12-19 12:44:38 PST Comment hidden (obsolete)
Comment 5 Daniel Bates 2017-12-19 12:49:32 PST
(In reply to Build Bot from comment #4)
> Created attachment 329797 [details]
> Archive of layout-test-results from ews105 for mac-elcapitan-wk2
> 
> The attached test failures were seen while running run-webkit-tests on the
> mac-wk2-ews.
> Bot: ews105  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6

This test failure is not caused by this patch. The same test fails for the no-op patch on bug #180985.
Comment 6 Dave Hyatt 2017-12-19 13:06:07 PST
Comment on attachment 329779 [details]
Patch

r=me
Comment 7 Radar WebKit Bug Importer 2017-12-19 13:30:13 PST
<rdar://problem/36139364>
Comment 8 Daniel Bates 2017-12-19 13:48:30 PST
Committed r226138: <https://trac.webkit.org/changeset/226138>
Comment 9 Carlos Alberto Lopez Perez 2017-12-20 04:42:36 PST
(In reply to Daniel Bates from comment #8)
> Committed r226138: <https://trac.webkit.org/changeset/226138>

It seems this broke the build for me (Linux/GTK port, Clang compiler):

In file included from /home/clopez/webkit/webkit/WebKitBuild/Release/DerivedSources/WebCore/unified-sources/UnifiedSource383.cpp:7:
../../Source/WebCore/rendering/InlineTextBox.cpp:852:13: error: fallthrough annotation does not directly precede switch label
            FALLTHROUGH;
            ^
../../Source/WTF/wtf/Compiler.h:196:21: note: expanded from macro 'FALLTHROUGH'
#define FALLTHROUGH [[fallthrough]]
                    ^
1 error generated.

I'm landing a build fix by moving the FALLTHROUGH inside ENABLE(TELEPHONE_NUMBER_DETECTION)
Comment 10 Carlos Alberto Lopez Perez 2017-12-20 04:46:39 PST
Committed r226174: <https://trac.webkit.org/changeset/226174>