Closed
Bug 1149824
Opened 10 years ago
Closed 10 years ago
SVGImageContext() should take a CSSIntSize instead of nsIntSize
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1149222
Tracking | Status | |
---|---|---|
firefox40 | --- | affected |
People
(Reporter: dholbert, Unassigned)
Details
(Whiteboard: gfx-noted)
SVGImageContext's 'aViewportSize' constructor-arg is the viewport-size (in CSS pixels) and is used to size the internal SVG document's viewport.
It should probably have type "CSSIntSize" to make it clearer that it's in CSS pixels, and not in dev pixels.
In particular / to make it more concrete: if a document with SVG images gets a full-page-zoom, and its images are now mapped to larger dev-pixel area on-screen, we still want to keep passing in the same 'aViewportSize' to their SVGImageContext objects when drawing.
This would be clearer if we used the CSSIntSize type, I think.
Comment 1•10 years ago
|
||
This is what bug 1149222 part 1 does, right?
Updated•10 years ago
|
Whiteboard: gfx-noted
Reporter | ||
Comment 2•10 years ago
|
||
Oh, you're quite right. :) I hadn't looked at the earlier patches there.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•