Open Bug 1161217 Opened 9 years ago Updated 2 years ago

Highlighter can't keep up with animated nodes

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: pbro, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [btpp-backlog][designer-tools])

STR:
- open this page: https://bgrins.github.io/devtools-demos/inspector/animation-timing.html
- open the inspector
- in the markup-view tree, find the #box1 node and put your mouse over it

ER: the box-model highlighter is displayed on the node and "follows" it while it moves.
AR: the box-model highlighter is displayed on the node, "follows" it around, but sometimes lags a little bit behind.

The highlighter uses a requestAnimationFrame loop and at each step of the loop it reads the position of the highlighted node (using node.getBoxQuads) and updates the position of the SVG elements used in the highlighter UI.

So the lag is the time it takes to run the code between the rAF tick and the moment the coordinates are set on the SVG nodes.

This bug is about investigating ways to make that faster.
Bug triage. Filter on CLIMBING SHOES
Priority: -- → P3
Whiteboard: [btpp-backlog]
Whiteboard: [btpp-backlog] → [btpp-backlog][designer-tools]
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.