Open Bug 1624653 Opened 6 years ago Updated 10 months ago

Refactor getBoxQuads to calculate in layer pixels instead of css units

Categories

(DevTools :: DOM, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: bradwerth, Unassigned)

References

(Blocks 1 open bug)

Details

getBoxQuads and getBoxQuadsFromWindowOrigin both return values in CSS units, per spec. To do their work, they operate on layer pixels, then convert to CSS units at the end. Additionally, getBoxQuadsFromWindowOrigin is built on top of getBoxQuads, so it converts layer -> CSS -> layer -> CSS. This makes precision errors more likely and makes debugging more difficult. To ease this, we should refactor both functions to use a common function that does all the work in layer pixels (or possibly in app units). When that is done, then the additional work in getBoxQuadsFromWindowOrigin will manipulate only layer pixels and save two conversion steps.

Blocks: 1624659
Assignee: bwerth → nobody

Hi, I would like to work on this bug. Could you please guide me where to begin?

Hello Ria,
this bug isn't marked as good first bug and the complexity might be rather higher.
You can pick something less complex from this list:
https://codetribute.mozilla.org/projects/devtools

Severity: normal → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.