Bug 126657 - Subpixel layout: RenderTableCell with middle vertical alignment and visible scrollbar needs bias centering.
Summary: Subpixel layout: RenderTableCell with middle vertical alignment and visible s...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks: 126283
  Show dependency treegraph
 
Reported: 2014-01-08 13:01 PST by zalan
Modified: 2014-01-14 16:00 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2014-01-08 13:01:38 PST
RenderTableCell::scrollbarsChanged() calculates the before padding for the table cell which pushes the content off by one CSS pixel when subpixel is off. 

LayoutUnit newBeforePadding = (totalHeight - heightWithoutIntrinsicPadding) / 2;

failed test case:
fast/table/overflowHidden.html
Comment 1 Simon Fraser (smfr) 2014-01-08 15:29:11 PST
Prefer subpixel.
Comment 2 Radar WebKit Bug Importer 2014-01-14 10:23:27 PST
<rdar://problem/15815542>