Closed Bug 430825 Opened 12 years ago Closed 8 years ago

Use Cairo coordinate transformation matrix to convert from layout to device units

Categories

(Core :: Graphics, defect)

defect
Not set

Tracking

()

RESOLVED WONTFIX
mozilla2.0

People

(Reporter: zwol, Unassigned)

References

(Blocks 1 open bug)

Details

Layout does all its work in "layout units" which are defined to be 1/60th of a CSS pixel, which is itself defined to be as many device pixels as fit in 1/96th of an inch.

The Thebes and Cairo layers are somewhat unit-agnostic, in that there is a global coordinate transform matrix which could set them up to work in layout units as well.  However, we are not doing that right now; instead we are leaving that matrix as the identity, which means Thebes APIs expect coordinates in device pixels.  nsRenderingContextThebes has to convert everything itself, and so do the places in layout that have already been changed to call Thebes directly.

We should use the CTM to do the unit conversion and feed coordinates to the Thebes APIs in layout units.
Depends on: 430827
Blocks: 430829
I no longer work for Mozilla, I am deassigning myself from bugs I have no intention of working on as a volunteer.
Assignee: zackw → nobody
Status: ASSIGNED → NEW
Device pixel snapping makes this a little complicated. We're also moving stuff to Azure so this probably isn't valid anymore.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.