Bug 126657

Summary: Subpixel layout: RenderTableCell with middle vertical alignment and visible scrollbar needs bias centering.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED INVALID    
Severity: Normal CC: jonlee, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 126283    

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>