MarkHasVariableReference also for shorthands with invalid var()
If a shorthand contains invalid var()-references, we would return from ResolvePendingSubstitution with CSSUnsetValue before getting a chance to mark the property as dependent on a variable. This would cause StyleResolver to incorrectly cache the style in the matched properties cache, causing bugs in subsequent recalcs. Moving the call to MarkHasVariableReference before we attempt to resolve var()s fixes the issue. Drive-by: Remove some comments that should not have been committed in the first place. Bug: 1055035 Change-Id: I0749da2e8d3f8a74e2bc9418078704a319124fcf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2074237Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#744656}
Showing
Please register or sign in to comment