Bug 86665 - Use pixelSnappedLogicalHeight for TableSection layout
Summary: Use pixelSnappedLogicalHeight for TableSection layout
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Levi Weintraub
URL:
Keywords:
Depends on:
Blocks: 85532
  Show dependency treegraph
 
Reported: 2012-05-16 12:33 PDT by Levi Weintraub
Modified: 2012-05-16 20:36 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.85 KB, patch)
2012-05-16 13:16 PDT, Levi Weintraub
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.