Bug 46298

Summary: Add logicalWidth/Height getters and setters to RenderBox
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: Layout and RenderingAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 46123    
Attachments:
Description Flags
Patch mitz: review+

Dave Hyatt
Reported 2010-09-22 13:18:13 PDT
Add logicalWidth/Height getters and setters to RenderBox.
Attachments
Patch (2.48 KB, patch)
2010-09-22 13:22 PDT, Dave Hyatt
mitz: review+
Dave Hyatt
Comment 1 2010-09-22 13:22:43 PDT
mitz
Comment 2 2010-09-22 13:24:42 PDT
Comment on attachment 68428 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=68428&action=review > WebCore/rendering/RenderBox.cpp:90 > + if (style()->isVerticalBlockFlow()) > + return width(); > + return height(); Maybe now it’s too late to say this, but how about return style()->isVerticalBlockFlow() ? width() : height(); instead?
Dave Hyatt
Comment 3 2010-09-22 13:26:56 PDT
(In reply to comment #2) > (From update of attachment 68428 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=68428&action=review > > > WebCore/rendering/RenderBox.cpp:90 > > + if (style()->isVerticalBlockFlow()) > > + return width(); > > + return height(); > > Maybe now it’s too late to say this, but how about > return style()->isVerticalBlockFlow() ? width() : height(); > instead? Not too late. :)
Dave Hyatt
Comment 4 2010-09-22 13:27:39 PDT
Fixed in r68077.
Note You need to log in before you can comment on or make changes to this bug.