Closed Bug 1767123 Opened 2 years ago Closed 2 years ago

Change the return type of nsLayoutUtils::GetTransformToAncestorScale to MatrixScalesDouble

Categories

(Core :: Graphics, task, P3)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: botond, Assigned: rzvncj, Mentored)

References

Details

Attachments

(1 file)

Defined here

Changing that return type will lead to a conversion problem in nsLayoutUtils::GetTransformToAncestorScaleCrossProcessForFrameMetrics():

ParentLayerToScreenScale2D transformToAncestorScale(nsLayoutUtils::GetTransformToAncestorScale(aFrame));

specifically, ParentLayerToScreenScale2D uses float, and MatrixScalesDouble, as the name implies, uses double.

Do you want an explicit conversion from MatrixScalesDouble to ParentLayerToScreenScale2D, or do you want the return type of GetTransformToAncestorScaleCrossProcessForFrameMetrics() changed to something like ParentLayerToScreenScale2DDouble as well (will require a new using/typedef)?

Actually, I'll just submit the simplest version of the patch and you can request changes there.

Assignee: nobody → rzvncj
Status: NEW → ASSIGNED
Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2654ffd335de
Change the return type of nsLayoutUtils::GetTransformToAncestorScale to MatrixScalesDouble. r=botond
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: