Bug 134523

Summary: Subpixel rendering: Inline box decoration rounds to integral.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, bunhere, cdumez, commit-queue, esprehn+autocc, glenn, gyuyoung.kim, kondapallykalyan, rniwa, sergio, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2
none
Patch
none
Patch none

zalan
Reported 2014-07-01 16:34:51 PDT
and it makes border painting off by one (at best)
Attachments
Patch (11.53 KB, patch)
2014-07-01 18:41 PDT, zalan
no flags
Patch (11.59 KB, patch)
2014-07-01 18:44 PDT, zalan
no flags
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion (836.44 KB, application/zip)
2014-07-01 20:30 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (859.34 KB, application/zip)
2014-07-01 20:33 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 (765.09 KB, application/zip)
2014-07-02 00:57 PDT, Build Bot
no flags
Patch (20.56 KB, patch)
2014-07-07 13:32 PDT, zalan
no flags
Patch (20.55 KB, patch)
2014-07-07 20:47 PDT, zalan
no flags
zalan
Comment 1 2014-07-01 18:41:38 PDT
zalan
Comment 2 2014-07-01 18:44:35 PDT
zalan
Comment 3 2014-07-01 18:44:59 PDT
Build Bot
Comment 4 2014-07-01 20:30:27 PDT
Comment on attachment 234231 [details] Patch Attachment 234231 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5746401841512448 New failing tests: css1/formatting_model/inline_elements.html fast/inline/hidpi-inline-text-decoration-with-subpixel-value.html
Build Bot
Comment 5 2014-07-01 20:30:32 PDT
Created attachment 234235 [details] Archive of layout-test-results from webkit-ews-07 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-07 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 6 2014-07-01 20:33:47 PDT
Comment on attachment 234231 [details] Patch Attachment 234231 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5942802106023936 New failing tests: css1/formatting_model/inline_elements.html fast/inline/hidpi-inline-text-decoration-with-subpixel-value.html
Build Bot
Comment 7 2014-07-01 20:33:51 PDT
Created attachment 234236 [details] Archive of layout-test-results from webkit-ews-08 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 8 2014-07-02 00:56:57 PDT
Comment on attachment 234231 [details] Patch Attachment 234231 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5511881594765312 New failing tests: css1/formatting_model/inline_elements.html fast/inline/hidpi-inline-text-decoration-with-subpixel-value.html
Build Bot
Comment 9 2014-07-02 00:57:02 PDT
Created attachment 234244 [details] Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Darin Adler
Comment 10 2014-07-03 09:47:55 PDT
Comment on attachment 234231 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=234231&action=review EWS bots show tests failing. > Source/WebCore/rendering/InlineFlowBox.cpp:1052 > - LayoutRect boundsRect(roundedFrameRect()); > + LayoutRect boundsRect = LayoutRect(topLeft(), size()); I don’t think this syntax is great: C a = C(b, c); Two possibilities are what the existing code was doing: C a(b, c); or if we prefer something that looks like assignment: C a = { b, c }; But also, it’s kind of annoying that InlineBox doesn’t have a function that returns this. It has logicalFrameRect but for some reason it doesn’t have frameRect. I think it’s really strange that the InlineBox class has x, y, width, height, left, top, size, right, and even bottom, but no function that just returns the whole thing as a rect. > Source/WebCore/rendering/InlineFlowBox.cpp:1078 > + LayoutRect rect = LayoutRect(topLeft(), size()); And again. > Source/WebCore/rendering/InlineFlowBox.cpp:1287 > + LayoutRect frameRect = LayoutRect(topLeft(), size()); And again. > Source/WebCore/rendering/InlineFlowBox.cpp:1359 > + LayoutRect frameRect = LayoutRect(topLeft(), size()); And again.
zalan
Comment 11 2014-07-07 13:32:42 PDT
zalan
Comment 12 2014-07-07 13:33:00 PDT
Comment on attachment 234507 [details] Patch EWS testing.
Darin Adler
Comment 13 2014-07-07 16:11:18 PDT
Comment on attachment 234507 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=234507&action=review > Source/WebCore/rendering/InlineBox.h:213 > + // FIXME: position/size related functions need cleanup. While I agree with the sentiment, I don’t think this is a helpful FIXME.
zalan
Comment 14 2014-07-07 16:32:28 PDT
(In reply to comment #13) > (From update of attachment 234507 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=234507&action=review > > > Source/WebCore/rendering/InlineBox.h:213 > > + // FIXME: position/size related functions need cleanup. > > While I agree with the sentiment, I don’t think this is a helpful FIXME. Indeed, I'll remove it before landing. InlineBox should offer similar set of bounds (position/size) APIs as RenderBox. bug 134702
zalan
Comment 15 2014-07-07 20:47:06 PDT
WebKit Commit Bot
Comment 16 2014-07-07 21:14:03 PDT
Comment on attachment 234543 [details] Patch Clearing flags on attachment: 234543 Committed r170875: <http://trac.webkit.org/changeset/170875>
WebKit Commit Bot
Comment 17 2014-07-07 21:14:10 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.