Closed Bug 1617069 Opened 4 years ago Closed 4 years ago

Minor LengthPercentage improvements.

Categories

(Core :: CSS Parsing and Computation, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

No description provided.
  • Use debug_unreachable for really unreachable code (having a release
    unreachable!() there gives us little to no benefit, as a borked union can
    already confuse us into reading an arbitrary pointer as a CalcPercentage).

  • Avoid a clone of the calc variant when clamping. We only need to mutate the
    clamping mode. This was the only clamp_to_non_negative function that didn't
    consume the value.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/19c6d375b8bd
Minor LengthPercentage improvements. r=heycam
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: