Refactor getBoxQuads to calculate in layer pixels instead of css units
Categories
(DevTools :: DOM, task, P3)
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.
| Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Hi, I would like to work on this bug. Could you please guide me where to begin?
Comment 2•5 years ago
|
||
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
Updated•3 years ago
|
Updated•10 months ago
|
Description
•