Bug 11907
| Summary: | RenderSVGContainer does not mark itself for repaint after setting viewBox, slice or align | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
| Component: | SVG | Assignee: | Rob Buis <rwlbuis> |
| Status: | RESOLVED FIXED | ||
| Severity: | Blocker | CC: | zimmermann |
| Priority: | P4 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Eric Seidel (no email)
RenderSVGContainer does not mark itself for repaint after setting viewBox, slice or align
It should invalidate itself when these change.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Nikolas Zimmermann
Rob fixed the viewBox case. Others are trivial to fix, too.
Eric Seidel (no email)
*** Bug 12181 has been marked as a duplicate of this bug. ***
Nikolas Zimmermann
This is fixed nowadays. Changing ie. slice is only possible through JS, either by setting preserveAspectRatio attribute or by using SVG DOM directly, both cases cause a svgAttributeChanged(preserveAspectRatioAttr) call to be fired on the individual SVG*Element classes, causing them to call setNeedsLayout(true) on their renderer. It also works for resources and instances of elements, so it's really fixed today :-) Closing bug.