DescriptionMake 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186408
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|