[css-properties-values-api] Remove root-inherited variables properly.

Currently, StyleInheritedVariables::RemoveVariable removes variable data
properly (i.e. it sets the value to nullptr locally), but only nullifies
the registered value if we already have an entry for that variable
locally. This means that if we inherit a variable via the root bucket,
calling ::RemoveVariable will not actually remove the variable.

Fix by setting registered value to nullptr if a non-nullptr value would
have been returned from the root.

R=futhark@chromium.org

Bug: 641877
Change-Id: I78f0442bd0a8eba26e74a8a152b5bee048fbc23c
Reviewed-on: https://chromium-review.googlesource.com/1235724
Commit-Queue: Anders Ruud <andruud@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593135}
2 files changed