Closed Bug 1571151 Opened 6 years ago Closed 6 years ago

Simplify SVGPathData parser.

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

Just some minor things I noticed while looking at bug 1571119.

None cannot be returned, since we just called peek() and it returned something.

Skip whitespace upfront rather than on each individual branch. The only
difference in behavior is that we would've consumed some extra whitespace in the
error case, but I don't think that matters at all.

We were consuming some extra whitespace as well after the close path command for
example, which wasn't parsing anything.

Depends on D40538

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f3546b012b87 Deindent a bit SVG path parsing code. r=boris https://hg.mozilla.org/integration/autoland/rev/ca4e23649101 Expand and simplify a macro that's not very useful. r=boris
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: