Closed
Bug 1853991
Opened 2 years ago
Closed 2 years ago
Refactor SVGSVGElement intrinsic size APIs to return LengthPercentage
Categories
(Core :: SVG, task)
Core
SVG
Tracking
()
RESOLVED
FIXED
120 Branch
| Tracking | Status | |
|---|---|---|
| firefox120 | --- | fixed |
People
(Reporter: dlrobertson, Assigned: dlrobertson)
Details
Attachments
(1 file)
Instead of returning an integer from GetIntrinsicWidth and GetIntrinsicHeight, return a LengthPercentage. We currently return -1 when one of these functions is called on an SVG with the size attr set to a percentage value. After we have updated the return type, we can return LengthPercentage::Percentage for such cases.
| Assignee | ||
Comment 1•2 years ago
|
||
- Use LengthPercentage as the return type for GetIntrinsicHeight and
GetIntrinsicWidth. This allows the caller to handle percent values. - Refactor intrinsic size function definitions.
Updated•2 years ago
|
Assignee: nobody → drobertson
Status: NEW → ASSIGNED
Pushed by drobertson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/08cbb7e77d8f
Refactor SVGSVGElement intrinsic size APIs to return LengthPercentage. r=dholbert
Comment 3•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox120:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•