DescriptionSimplify CSS variables resolution logic [2 of 2]
This patch restructures the CSS variable resolution logic. The main goal
is to extract from resolveVariableTokensRecursive the recursive
resolution logic so that other potential features like @apply might be
able to recurse without needing to copy this logic.
This recursive resolution logic is split into two new functions
valueForCustomProperty and resolveCustomProperty (these are two functions
so we can write the loop in resolveVariableDefinitions without needing
extra hash lookups). These are the only functions which should handle the
cycle-detection logic.
BUG=586847
Committed: https://crrev.com/a6223fa39f086ab3483320014dce8b0b7a868886
Cr-Commit-Position: refs/heads/master@{#376687}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : split up #
Total comments: 1
Patch Set 4 : #
Total comments: 3
Patch Set 5 : #Patch Set 6 : #
Messages
Total messages: 19 (11 generated)
|