Bug 135470

Summary: Subpixel rendering: InlineTextBox mistakenly rounds offset value before painting.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, esprehn+autocc, glenn, kondapallykalyan, mmaxfield, rniwa, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion
none
Patch none

Description zalan 2014-07-31 13:53:13 PDT
see InlineTextBox::paint() -> roundedForPainting(paintOffset, renderer().document().deviceScaleFactor());
Comment 1 zalan 2014-08-03 11:39:12 PDT
paint offset: 0.1px
location: 0.2px;
-> 0.3px -> snapped to 0.5px; (2x displays)
vs.
paint offset: 0.1px -> snapped to 0px;
location: 0.2px;
-> 0.2px -> snapped to 0px;
Comment 2 zalan 2014-08-03 11:58:58 PDT
Created attachment 235948 [details]
Patch
Comment 3 Simon Fraser (smfr) 2014-08-03 12:18:40 PDT
Comment on attachment 235948 [details]
Patch

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

> Source/WebCore/ChangeLog:12
> +        However to ensure that text is painted to where we expect it to be painted, we force our
> +        snapping strategy on final coordinates. -for example, CG ceils vertically (in horizontal context)
> +        vs our rounding strategy.

I don't think I understand this sentence.
Comment 4 zalan 2014-08-03 12:40:13 PDT
Created attachment 235949 [details]
Patch
Comment 5 Build Bot 2014-08-03 13:39:29 PDT
Comment on attachment 235949 [details]
Patch

Attachment 235949 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4722611997114368

New failing tests:
fast/inline/hidpi-inline-selection-leaves-gap.html
Comment 6 Build Bot 2014-08-03 13:39:32 PDT
Created attachment 235950 [details]
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-15  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 7 Build Bot 2014-08-03 13:58:02 PDT
Comment on attachment 235949 [details]
Patch

Attachment 235949 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5102239861440512

New failing tests:
fast/inline/hidpi-inline-selection-leaves-gap.html
Comment 8 Build Bot 2014-08-03 13:58:06 PDT
Created attachment 235951 [details]
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-06  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 9 Build Bot 2014-08-03 15:00:44 PDT
Comment on attachment 235949 [details]
Patch

Attachment 235949 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5895713594540032

New failing tests:
fast/inline/hidpi-inline-selection-leaves-gap.html
Comment 10 Build Bot 2014-08-03 15:00:54 PDT
Created attachment 235952 [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
Comment 11 zalan 2014-08-04 12:06:49 PDT
Created attachment 235978 [details]
Patch
Comment 12 WebKit Commit Bot 2014-08-04 15:01:25 PDT
Comment on attachment 235978 [details]
Patch

Clearing flags on attachment: 235978

Committed r172008: <http://trac.webkit.org/changeset/172008>
Comment 13 WebKit Commit Bot 2014-08-04 15:01:31 PDT
All reviewed patches have been landed.  Closing bug.