Closed
Bug 314214
Opened 19 years ago
Closed 17 years ago
getScreenCTM returns bogus results onload
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file)
527 bytes,
image/svg+xml
|
Details |
Assignee | ||
Comment 1•19 years ago
|
||
Assignee | ||
Comment 2•19 years ago
|
||
This is happening because GetScreenCTM calls GetViewboxToViewportTransform which calls GetValue on the 'svg' elements 'width' and 'height' SVGLengths. GetValue can't get the user unit value of these lengths during onload when they have a percentage specifiedUnitType (or in fact if they aren't a unitless or px unit). I.e. the SVGLengths haven't yet been given an mContext when onload is called.
Assignee | ||
Comment 3•19 years ago
|
||
And the 'svg' elements 'width' and 'height' SVGLengths don't get an mContext until it's added by the call to SetParentCoordCtxProvider in nsSVGOuterSVGFrame::Init.
Comment 4•17 years ago
|
||
Fixed by check in for bug 409376
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•