DescriptionSimplify CSS variables resolution logic [1 of 2]
This patch removes the context object in variable resolution, moving the
success bool to be a more local concept. This fixes a bug where the flag
was being reset to true after fallback resolution in certain cases where
it shouldn't have been.
This patch also changes our storage for invalid custom properties from a
CSSVariableData with an empty vector to a null pointer. This doesn't end
up needing changes outside of the variable resolver as custom properties
are already returned as null in getVariable when they are invalid due to
being not set.
BUG=586847
Committed: https://crrev.com/988acae8b91964c5e42eb01dac5cb041f26fbd7f
Cr-Commit-Position: refs/heads/master@{#375709}
Patch Set 1 #
Total comments: 1
Patch Set 2 : more tests #
Dependent Patchsets: Messages
Total messages: 17 (6 generated)
|