Make CSSToStyleMap static.

CSSToStyleMap currently exists as a member on StyleResolverState---wasting
space and polluting StyleResolverState with getters, initializers, etc.
for no good reason.

We may as well pass the StyleResolverState as a parameter, since that is
always available in all cases where CSSToStyleMap is used.

Note that CSSToStyleMap is currently used for three things, and for each
of those things the generated code will expect functions with a certain
signature:

 * FillLayers (state is passed).
 * Animations (state is not passed).
 * NinePieceImages (state is passed).

R=timloh@chromium.org

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

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