Closed Bug 1123133 Opened 10 years ago Closed 10 years ago

fieldset reflow (in particular, legend placement) needs to handle vertical writing modes

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 2 obsolete files)

      No description provided.
Here's a small testcase I've been using to experiment.
Just a small helper to simplify the following patch.
Attachment #8550978 - Flags: review?(smontagu)
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
With this, the legend works nicely in vertical mode. (Note that dir=rtl doesn't seem to work as desired in vertical mode; but that's a wider issue, I think, so I'm leaving that for a separate bug.)
Attachment #8550979 - Flags: review?(smontagu)
Comment on attachment 8550978 [details] [diff] [review]
pt 1 - Utility to map from logical to physical side values

Review of attachment 8550978 [details] [diff] [review]:
-----------------------------------------------------------------

r=me, but do we really need both |css::Side PhysicalSideFor(LogicalSide aLogicalSide)| and |mozilla::Side PhysicalSide(LogicalSide aSide)|? Can we coalesce them in a follow up?
Attachment #8550978 - Flags: review?(smontagu) → review+
(In reply to Simon Montagu :smontagu from comment #4)
> Comment on attachment 8550978 [details] [diff] [review]
> pt 1 - Utility to map from logical to physical side values
> 
> Review of attachment 8550978 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> r=me, but do we really need both |css::Side PhysicalSideFor(LogicalSide
> aLogicalSide)| and |mozilla::Side PhysicalSide(LogicalSide aSide)|? Can we
> coalesce them in a follow up?

Oh, right - I'm sure we can tidy that up. I was working with a tree where Cam's patches hadn't landed yet, and just didn't think about the connection with what was incoming.
Comment on attachment 8550979 [details] [diff] [review]
pt 2 - Vertical writing-mode support in nsFieldSetFrame

Review of attachment 8550979 [details] [diff] [review]:
-----------------------------------------------------------------

This overlaps a lot with a patch in my queue, but where they differ I think yours is better. The only thing lacking is using the new logical methods from bug 1079154, but we can add that later.
Attachment #8550979 - Flags: review?(smontagu) → review+
Comment on attachment 8550978 [details] [diff] [review]
pt 1 - Utility to map from logical to physical side values

Obsoleting this; we can simply use the PhysicalSide method that was recently landed as part of CSS logical-property support, rather than introducing a new method here.
Attachment #8550978 - Attachment is obsolete: true
Trivially updated to use the WritingMode::PhysicalSide method; carrying over r=smontagu.
Attachment #8550979 - Attachment is obsolete: true
Attachment #8551230 - Flags: review+
Pushed this to inbound:
https://hg.mozilla.org/integration/mozilla-inbound/rev/350013f91dd2

(Feel free to propose a followup to make better use of bug 1079154 methods (comment 6), if that seems appropriate.)
Target Milestone: --- → mozilla38
https://hg.mozilla.org/mozilla-central/rev/350013f91dd2
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Depends on: 1273433
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: