Bug 86665

Summary: Use pixelSnappedLogicalHeight for TableSection layout
Product: WebKit Reporter: Levi Weintraub <leviw>
Component: Layout and RenderingAssignee: Levi Weintraub <leviw>
Status: RESOLVED FIXED    
Severity: Normal CC: eae, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 85532    
Attachments:
Description Flags
Patch none

Description Levi Weintraub 2012-05-16 12:33:08 PDT
Previously, we were using logicalHeight but storing the value as an int in RenderTableSection. We *want* to use ints, but we need to pixel snap the value.
Comment 1 Levi Weintraub 2012-05-16 13:16:26 PDT
Created attachment 142329 [details]
Patch
Comment 2 Eric Seidel (no email) 2012-05-16 18:27:31 PDT
Comment on attachment 142329 [details]
Patch

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

> Source/WebCore/rendering/RenderBox.h:77
> +    int pixelSnappedLogicalHeight() const { return style()->isHorizontalWritingMode() ? pixelSnappedHeight() : pixelSnappedWidth(); }
> +    int pixelSnappedLogicalWidth() const { return style()->isHorizontalWritingMode() ? pixelSnappedWidth() : pixelSnappedHeight(); }

So sad that we have all these redundant accessors.  One would think that a logicalSize() might make more sense. :)
Comment 3 Levi Weintraub 2012-05-16 18:29:07 PDT
Comment on attachment 142329 [details]
Patch

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

>> Source/WebCore/rendering/RenderBox.h:77
>> +    int pixelSnappedLogicalWidth() const { return style()->isHorizontalWritingMode() ? pixelSnappedWidth() : pixelSnappedHeight(); }
> 
> So sad that we have all these redundant accessors.  One would think that a logicalSize() might make more sense. :)

Thanks for the review! I smell some potential cleanup :)
Comment 4 WebKit Review Bot 2012-05-16 20:36:39 PDT
Comment on attachment 142329 [details]
Patch

Clearing flags on attachment: 142329

Committed r117388: <http://trac.webkit.org/changeset/117388>
Comment 5 WebKit Review Bot 2012-05-16 20:36:44 PDT
All reviewed patches have been landed.  Closing bug.