Closed Bug 314214 Opened 19 years ago Closed 17 years ago

getScreenCTM returns bogus results onload

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file)

 
Attached image testcase
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.
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.
Depends on: 409376
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.

Attachment

General

Created:
Updated:
Size: