Closed Bug 1333685 Opened 8 years ago Closed 8 years ago

Eliminate code duplication between circle and ellipse shape constructor

Categories

(Core :: Layout: Floats, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(1 file, 1 obsolete file)

We might be able to share more code between the circle and ellipse shape constructor per Bug 1326406 comment 22, and even just use the ellipse class for circles per Bug 1326406 comment 11.
The difference between CircleShapeInfo's constructor and EllipseShapeInfo's is the computation of the radii. Therefore, this patch creates a factory function to for that so that shape-outside: circle() could be implemented by using EllipseShapeInfo. MozReview-Commit-ID: 9ZBQu8zCSrM
Attachment #8830200 - Flags: review?(dbaron)
Attachment #8830192 - Attachment is obsolete: true
Attachment #8830192 - Flags: review?(dbaron)
Attachment #8830200 - Flags: review?(dbaron) → review+
Pushed by tlin@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/a79202aaab99 Eliminate CircleShapeInfo, and use EllipseShapeInfo for circle(). r=dbaron
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: