Chromium Code Reviews| Index: Source/core/css/resolver/StyleResolver.cpp |
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
| index e8eace41de68bfe3bc709dc6e5d2f4dc0d4e7d02..0dbe2ecf4d69e4890a5026b6f6a9c504d8b05498 100644 |
| --- a/Source/core/css/resolver/StyleResolver.cpp |
| +++ b/Source/core/css/resolver/StyleResolver.cpp |
| @@ -2369,10 +2369,13 @@ void StyleResolver::resolveVariables(CSSPropertyID id, CSSValue* value, Vector<s |
| for (unsigned i = 0; i < resultSet->propertyCount(); i++) { |
| StylePropertySet::PropertyReference property = resultSet->propertyAt(i); |
| - if (property.id() != CSSPropertyVariable && hasVariableReference(property.value())) |
| + if (property.id() != CSSPropertyVariable && hasVariableReference(property.value())) { |
| resolveVariables(property.id(), property.value(), knownExpressions); |
| - else |
| + } else { |
| applyProperty(property.id(), property.value()); |
| + // All properties become dependent their parent style when they use variables. |
|
esprehn
2013/07/10 02:42:11
-> dependent on
alancutter (OOO until 2018)
2013/07/10 11:18:13
Done.
|
| + m_state.style()->setHasExplicitlyInheritedProperties(); |
| + } |
| } |
| } |