Give IntrinsicSize a constructor that initializes both members as nscoord values
Categories
(Core :: Layout, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(1 file)
It's reasonably common for us to have to construct or return a temporary IntrinsicSize object with nscoord-flavored values in each dimension.
Let's just create a convenience constructor for this purpose.
Comment 1•6 years ago
|
||
FWIW, unrelated, but IntrinsicSize should probably not use nsStyleCoord, and just use Maybe<nscoord>. But I'm happy to do that as a followup to this bug or what not.
| Assignee | ||
Comment 2•6 years ago
|
||
This patch shouldn't affect behavior; it's just simplifying exisitng code with
a new convenience constructor.
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
FWIW, unrelated, but IntrinsicSize should probably not use nsStyleCoord, and just use
Maybe<nscoord>. But I'm happy to do that as a followup to this bug or what not.
That sounds like a good idea - thanks for suggesting/filing that.
This bug here is just a convenience bug in response to a review comment on bug 1544121, to make its patch a bit more minimal, so I'm happy to keep it small in scope. :)
Comment 5•6 years ago
|
||
| bugherder | ||
Description
•