Bug 69686 - margin-right is ignored with vertical writing mode
Summary: margin-right is ignored with vertical writing mode
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: Ojan Vafai
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 19:27 PDT by Ojan Vafai
Modified: 2011-10-11 20:27 PDT (History)
3 users (show)

See Also:


Attachments
test case (797 bytes, text/html)
2011-10-07 19:27 PDT, Ojan Vafai
no flags Details
Patch (8.22 KB, patch)
2011-10-07 20:21 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff
Patch (5.47 KB, patch)
2011-10-10 14:53 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2011-10-07 19:27:05 PDT
Created attachment 110242 [details]
test case

summary: margin-right is ignored with vertical writing mode

See test case.
Comment 1 Ojan Vafai 2011-10-07 20:21:20 PDT
Created attachment 110247 [details]
Patch
Comment 2 Ojan Vafai 2011-10-07 20:21:56 PDT
Passes all the fast/writing-mode tests. Will put r? once I've verified it passes all the tests.
Comment 3 Dave Hyatt 2011-10-08 08:56:40 PDT
You don't need the RenderBlock helpers. RenderStyle has helpers already for this.
Comment 4 Dave Hyatt 2011-10-08 09:14:58 PDT
RenderStyle has

Length marginStartUsing(const RenderStyle* otherStyle) const;
Length marginEndUsing(const RenderStyle* otherStyle) const;

Pass in the RenderBlock's style instead of the child's style, and it will give you the right answer. This will make the patch much smaller/simpler.
Comment 5 Ojan Vafai 2011-10-10 14:50:59 PDT
(In reply to comment #4)
> RenderStyle has
> 
> Length marginStartUsing(const RenderStyle* otherStyle) const;
> Length marginEndUsing(const RenderStyle* otherStyle) const;
> 
> Pass in the RenderBlock's style instead of the child's style, and it will give you the right answer. This will make the patch much smaller/simpler.

ooh. that's much nicer.
Comment 6 Ojan Vafai 2011-10-10 14:53:58 PDT
Created attachment 110408 [details]
Patch
Comment 7 WebKit Review Bot 2011-10-11 20:27:00 PDT
Comment on attachment 110408 [details]
Patch

Clearing flags on attachment: 110408

Committed r97222: <http://trac.webkit.org/changeset/97222>
Comment 8 WebKit Review Bot 2011-10-11 20:27:05 PDT
All reviewed patches have been landed.  Closing bug.