Remove globalSVGPath* from SVGPathUtilities.cpp

All the globalSVGPath* globals, don't really help much since all the state
they carry are transient and not particularly expensive to recreate.
Doing this also allows us to get rid of the cleanup() method on the various
classes involved, since this is now handled by the regular scoping rules.
(In most/many cases this means that cleanup isn't necessary anymore,
because the fields being "cleaned up" previously were types without
destructors). Inline a few of the constructors to benefit more from this.
Take this opportunity to make these classes more RAII-like, and replace
pointers with references.

Review URL: https://codereview.chromium.org/734053005

git-svn-id: svn://svn.chromium.org/blink/trunk@185899 bbb929c8-8fbe-4397-9dbb-9b2b20218538
22 files changed
tree: 2f50660ed23cd96a3121ddec54d5fdc2fc88c339
  1. third_party/