Closed Bug 876189 Opened 13 years ago Closed 11 years ago

Try to reduce the amount of invalidation for the IE Test Drive Organization Chart demo

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jwatt, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: perf, Whiteboard: [jwatt:invalidation][ietestdrive] [in-the-wild])

While we don't perform badly on the IE Test Drive Organization Chart demo (at least not on my developer grade laptop), we are invalidating (and I'm guessing reflowing) the entire SVG. We should think about what we can do to reduce the work that we do. Specifically I'm talking about when you use the slider at the top-right to zoom in and out rapidly. Dragging the slider seems to result in ApplyScale() in svg-zoom.js being invoked. Amongst other things, this sets style.top/left/width/height on the <div> with ID "svgwrap" that wraps the <svg> element with ID "thesvg", and sets the "width" and "height" attributes of the <svg> to match. This relies on the "viewBox" attribute on the <svg> to do the actual scaling up of the SVG.
So in other words zooming in/out is implemented by making the <div> and its child <svg> large/small.
Whiteboard: [jwatt:invalidation] → [jwatt:invalidation][ietestdrive]
Whiteboard: [jwatt:invalidation][ietestdrive] → [jwatt:invalidation][ietestdrive] [in-the-wild]
I think MS have removed the demo.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.