Closed Bug 1669885 Opened 4 years ago Closed 4 years ago

Minor improvements related to replaced element's intrinsic size

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(2 files)

No description provided.

GetIntrinsicSizeFor() is used to get intrinsic size only for images.
This patch removes the restriction by removing the function, and uses
nsIFrame::GetIntrinsicSize() directly to get intrinsic sizes for all
replaced elements.

1183431-orthogonal-modes-8a.html passes because we can now get
<iframe>'s intrinsic size in CalculateHypotheticalPosition().

Depends on D92873

Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/dfd3c3a2bb5f
Part 1 - Add API to convert IntrinsicSize to nsSize, and remove nsImageFrame::GetIntrinsicImageSize. r=emilio
https://hg.mozilla.org/integration/autoland/rev/51b297c41538
Part 2 - Support all replaced elements which have intrinsic sizes in CalculateHypotheticalPosition(). r=emilio
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: