Implement CSS Variables.
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Oct 2015 19:48:58 +0000 (19:48 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Oct 2015 19:48:58 +0000 (19:48 +0000)
commit3919f2dbe38b73096e4ac7c44641cbe3a8ea7df7
tree431f5c3a6058871c3fde99fe6cc8a462c7ba5248
parent6642c75b49322800ce2afdc514d522fe6efc9283
Implement CSS Variables.
https://bugs.webkit.org/show_bug.cgi?id=19660

Reviewed by Dean Jackson.

Source/WebCore:

Added new tests in fast/css/custom-properties and fast/css/variables.

* CMakeLists.txt:
* WebCore.xcodeproj/project.pbxproj:
Add CSSVariableValue.cpp and CSSVariableDependentValue.cpp to builds.

* css/CSSCalculationValue.cpp:
(WebCore::hasDoubleValue):
Handle the new CSS_PARSER_WHITESPACE value.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::customPropertyValue):
Patched to make sure style is updated so that dynamic changes to custom properties are reflected
immediately when querying values.

(WebCore::CSSComputedStyleDeclaration::length):
(WebCore::CSSComputedStyleDeclaration::item):
The custom properties table is a reference and not a pointer now.

* css/CSSCustomPropertyValue.h:
(WebCore::CSSCustomPropertyValue::create):
(WebCore::CSSCustomPropertyValue::createInvalid):
(WebCore::CSSCustomPropertyValue::customCSSText):
(WebCore::CSSCustomPropertyValue::equals):
(WebCore::CSSCustomPropertyValue::isInvalid):
(WebCore::CSSCustomPropertyValue::containsVariables):
(WebCore::CSSCustomPropertyValue::value):
(WebCore::CSSCustomPropertyValue::CSSCustomPropertyValue):
The CSSCustomPropertyValue represents a custom property/value pair in the back end. It holds on
to both the property name and a CSSValueList that has the original parser terms. This class also
doubles as the invalid-at-compute-time value for custom properties when they contain cycles, etc.

* css/CSSFunctionValue.cpp:
(WebCore::CSSFunctionValue::buildParserValueSubstitutingVariables):
 * css/CSSFunctionValue.h:
(WebCore::CSSFunctionValue::buildParserValueSubstitutingVariables):
Hands back a CSSParserValue for a function with variables replaced with their real values (or fallback).

* css/CSSGrammar.y.in:
Many changes to support the var() syntax and to handle error conditions and cases.

* css/CSSParser.cpp:
(WebCore::filterProperties):
Null check the value here. Shouldn't happen, but being paranoid.

(WebCore::CSSParser::parseVariableDependentValue):
This function converts a CSSValueList back into a CSSParserValueList and then passes
it off to the parser. If the result parses, successfully, then the parsed CSSValue is handed back.

(WebCore::CSSParser::parseValue):
Detect when a property value contains variables and simply make a CSSVariableDependentValue to hold
a copy of the parser value list (as a CSSValueList). We defer parsing the list until compute-time
when we know the values of the variables to use.

(WebCore::CSSParser::parseCustomPropertyDeclaration):
Add support for inherit, initial and variable references in custom properties.

(WebCore::CSSParser::detectFunctionTypeToken):
Add support for detection of the "var" token.

(WebCore::CSSParser::realLex):
Fix the parsing of custom properties to allow "--" and to allow them to start with digits, e.g., "--0".

* css/CSSParser.h:
Add parseVariableDependentValue function for handling variable substitution and subsequent parsing
of the resolved parser value list.

* css/CSSParserValues.cpp:
(WebCore::CSSParserValueList::containsVariables):
Get rid of the toString() function (no longer needed) and replace it with containsVariables(). This
check is used to figure out if a parser value list has variables and thus needs to defer parsing
until later.

(WebCore::CSSParserValue::createCSSValue):
Add support for the creation of values for variables, CSSVariableValues.

(WebCore::CSSParserValueList::toString): Deleted.
No longer needed.

* css/CSSParserValues.h:
Add CSSParserVariable as a new kind of parser value. This represents a var() that is encountered
during parsing. It is similar to a function except it has to hold both the reference (custom property name)
and fallback arguments.

* css/CSSPrimitiveValue.cpp:
(WebCore::isValidCSSUnitTypeForDoubleConversion):
(WebCore::CSSPrimitiveValue::cleanup):
(WebCore::CSSPrimitiveValue::formatNumberForCustomCSSText):
(WebCore::CSSPrimitiveValue::cloneForCSSOM):
(WebCore::CSSPrimitiveValue::equals):
Add support for CSS_PARSER_WHITESPACE as a way of preserving whitespace as a parsed item (variables can
be only whitespace, and this has to be retained).

(WebCore::CSSPrimitiveValue::buildParserValue):
Conversion from a CSSPrimitiveValue back into a parser value is handled by this function.

* css/CSSPrimitiveValue.h:
(WebCore::CSSPrimitiveValue::isParserOperator):
(WebCore::CSSPrimitiveValue::parserOperator):
Add ability to get parser operator info. Add the buildParserValue declaration.

* css/CSSValue.cpp:
(WebCore::CSSValue::equals):
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):
(WebCore::CSSValue::cloneForCSSOM):
(WebCore::CSSValue::isInvalidCustomPropertyValue):
* css/CSSValue.h:
Add support for variable values and variable dependent values.

* css/CSSValueList.cpp:
(WebCore::CSSValueList::customCSSText):
Improve serialization to not output extra spaces when a comma operator is a value.

(WebCore::CSSValueList::containsVariables):
Whether or not a CSSVariableValue can be found somewhere within the list (or its descendants).

(WebCore::CSSValueList::checkVariablesForCycles):
Called to check variables for cycles.

(WebCore::CSSValueList::buildParserValueSubstitutingVariables):
(WebCore::CSSValueList::buildParserValueListSubstitutingVariables):
Functions that handle converting the value list to a parser value list while making
variable substitutions along the way.

* css/CSSValueList.h:
Add the new buildParserXXX functions.

* css/CSSVariableDependentValue.cpp: Added.
(WebCore::CSSVariableDependentValue::checkVariablesForCycles):
* css/CSSVariableDependentValue.h: Added.
(WebCore::CSSVariableDependentValue::create):
(WebCore::CSSVariableDependentValue::customCSSText):
(WebCore::CSSVariableDependentValue::equals):
(WebCore::CSSVariableDependentValue::propertyID):
(WebCore::CSSVariableDependentValue::valueList):
(WebCore::CSSVariableDependentValue::CSSVariableDependentValue):
This value represents a list of terms that have not had variables substituted yet. The list
is held by the value so that it can be converted back into a parser value list once the
variable values are known.

* css/CSSVariableValue.cpp: Added.
(WebCore::CSSVariableValue::CSSVariableValue):
(WebCore::CSSVariableValue::customCSSText):
(WebCore::CSSVariableValue::equals):
(WebCore::CSSVariableValue::buildParserValueListSubstitutingVariables):
* css/CSSVariableValue.h: Added.
(WebCore::CSSVariableValue::create):
(WebCore::CSSVariableValue::name):
(WebCore::CSSVariableValue::fallbackArguments):
This value represents a var() itself. It knows how to do the substitution of the variable
value and to apply fallback if that value is not present.

* css/StyleProperties.cpp:
(WebCore::StyleProperties::getPropertyValue):
(WebCore::StyleProperties::borderSpacingValue):
(WebCore::StyleProperties::getLayeredShorthandValue):
(WebCore::StyleProperties::getShorthandValue):
(WebCore::StyleProperties::getCommonValue):
(WebCore::StyleProperties::getPropertyCSSValue):
(WebCore::StyleProperties::getPropertyCSSValueInternal):
(WebCore::StyleProperties::asText):
(WebCore::StyleProperties::copyPropertiesInSet):
* css/StyleProperties.h:
Patched to factor property fetching into an internal method so that variables can work with shorthands
in the CSS OM.

* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty):
Resolve variable values at compute time. If they fail to resolve, use inherit or initial as the
value (depending on whether the property inherits by default).

(WebCore::StyleResolver::resolvedVariableValue):
Helper function that calls parseVariableDependentValue and gets the resolved result.

(WebCore::StyleResolver::applyCascadedProperties):
After custom properties have been collected, we check for cycles and perform variable substitutions.
This way we get all the variables replaced before we inherit down the style tree.

* css/StyleResolver.h:
Add resolvedVariableValue declaration.

* css/makeprop.pl:
Make sure custom properties are inherited by default.

* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::checkVariablesInCustomProperties):
This function handles updating variables with cycles to be invalid in the RenderStyle. It then also
handles the replacement of variables found in custom properties with resolved values. All custom
properties are either invalid or are real non-variable-dependent value lists after this function
completes.

* rendering/style/RenderStyle.h:
Add checkVariablesInCustomProperties declaration.

* rendering/style/StyleCustomPropertyData.h:
(WebCore::StyleCustomPropertyData::create):
(WebCore::StyleCustomPropertyData::copy):
(WebCore::StyleCustomPropertyData::operator==):
(WebCore::StyleCustomPropertyData::operator!=):
(WebCore::StyleCustomPropertyData::setCustomPropertyValue):
(WebCore::StyleCustomPropertyData::getCustomPropertyValue):
(WebCore::StyleCustomPropertyData::values):
(WebCore::StyleCustomPropertyData::hasCustomProperty):
(WebCore::StyleCustomPropertyData::containsVariables):
(WebCore::StyleCustomPropertyData::setContainsVariables):
(WebCore::StyleCustomPropertyData::StyleCustomPropertyData):
Miscellaneous cleanup, and the addition of whether or not the properties still contain variable
dependent values that need to be resolved.

LayoutTests:

* fast/css/custom-properties/inheritance-expected.html: Added.
* fast/css/custom-properties/inheritance.html: Added.
* fast/css/variables: Added.
* fast/css/variables/custom-property-computed-style-access-expected.html: Added.
* fast/css/variables/custom-property-computed-style-access.html: Added.
* fast/css/variables/custom-property-dynamic-update-expected.html: Added.
* fast/css/variables/custom-property-dynamic-update.html: Added.
* fast/css/variables/custom-property-simple-cycle-expected.html: Added.
* fast/css/variables/custom-property-simple-cycle.html: Added.
* fast/css/variables/inherited-fallback-expected.html: Added.
* fast/css/variables/inherited-fallback.html: Added.
* fast/css/variables/invalid-reference-expected.html: Added.
* fast/css/variables/invalid-reference.html: Added.
* fast/css/variables/rule-property-get-css-value-expected.html: Added.
* fast/css/variables/rule-property-get-css-value.html: Added.
* fast/css/variables/rule-property-get-expected.html: Added.
* fast/css/variables/rule-property-get.html: Added.
* fast/css/variables/rule-serialization-expected.html: Added.
* fast/css/variables/rule-serialization.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
405 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/css/custom-properties/inheritance-expected.html [new file with mode: 0644]
LayoutTests/fast/css/custom-properties/inheritance.html [new file with mode: 0644]
LayoutTests/fast/css/variables/custom-property-computed-style-access-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/custom-property-computed-style-access.html [new file with mode: 0644]
LayoutTests/fast/css/variables/custom-property-dynamic-update-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/custom-property-dynamic-update.html [new file with mode: 0644]
LayoutTests/fast/css/variables/custom-property-simple-cycle-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/custom-property-simple-cycle.html [new file with mode: 0644]
LayoutTests/fast/css/variables/inherited-fallback-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/inherited-fallback.html [new file with mode: 0644]
LayoutTests/fast/css/variables/invalid-reference-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/invalid-reference.html [new file with mode: 0644]
LayoutTests/fast/css/variables/rule-property-get-css-value-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/rule-property-get-css-value.html [new file with mode: 0644]
LayoutTests/fast/css/variables/rule-property-get-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/rule-property-get.html [new file with mode: 0644]
LayoutTests/fast/css/variables/rule-serialization-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/rule-serialization.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/002-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/002.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/003-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/003.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/004-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/004.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/005-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/005.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/006-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/006.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/007-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/007.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/008-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/008.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/009-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/009.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/010-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/010.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/011-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/011.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/012-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/012.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/013-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/013.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/014-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/014.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/015-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/015.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/016-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/016.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/017-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/017.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/018-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/018.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/019-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/019.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/020-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/020.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/021-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/021.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/022-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/022.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/023-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/023.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/027-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/027.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/029-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/029.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/031-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/031.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/032-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/032.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/033-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/033.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/034-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/034.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/035-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/035.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/036-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/036.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/037-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/037.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/038-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/038.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/039-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/039.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/040-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/040.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/041-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/041.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/042-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/042.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/043-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/043.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/044-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/044.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/045-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/045.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/046-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/046.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/047-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/047.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/048-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/048.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/049-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/049.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/050-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/050.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/051-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/051.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/052-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/052.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/053-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/053.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/057-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/057.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/059-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/059.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/060-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/060.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/061-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/061.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/062-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/062.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/063-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/063.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/064-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/064.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/065-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/065.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/066-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/066.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/067-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/067.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/068-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/068.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/069-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/069.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/070-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/070.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/072-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/072.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/073-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/073.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/074-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/074.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/075-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/075.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/076-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/076.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/077-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/077.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/078-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/078.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/079-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/079.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/080-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/080.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/083-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/083.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/084-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/084.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/088-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/088.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/089-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/089.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/090-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/090.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/092-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/092.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/093-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/093.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/094-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/094.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/095-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/095.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/096-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/096.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/097-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/097.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/098-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/098.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/099-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/099.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/100-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/100.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/101-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/101.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/102-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/102.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/104-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/104.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/105-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/105.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/106-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/106.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/107-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/107.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/108-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/108.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/109-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/109.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/110-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/110.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/112-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/112.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/113-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/113.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/114-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/114.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/116-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/116.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/117-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/117.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/118-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/118.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/119-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/119.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/120-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/120.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/121-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/121.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/122-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/122.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/123-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/123.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/124-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/124.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/125-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/125.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/127-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/127.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/128-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/128.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/131-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/131.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/132-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/132.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/133-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/133.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/135-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/135.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/136-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/136.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/137-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/137.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/138-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/138.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/139-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/139.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/140-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/140.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/141-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/141.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/142-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/142.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/143-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/143.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/144-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/144.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/145-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/145.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/146-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/146.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/147-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/147.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/148-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/148.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/149-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/149.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/150-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/150.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/151-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/151.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/153-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/153.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/154-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/154.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/155-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/155.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/156-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/156.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/157-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/157.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/158-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/158.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/160-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/160.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/162-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/162.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/164-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/164.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/165-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/165.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/166-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/166.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/167-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/167.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/168-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/168.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/170-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/170.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/171-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/171.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/172-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/172.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/173-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/173.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/174-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/174.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/175-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/175.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/024-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/024.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/025-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/025.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/026-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/026.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/028-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/028.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/030-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/030.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/054-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/054.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/055-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/055.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/056-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/056.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/058-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/058.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/071-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/071.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/081-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/081.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/082-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/082.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/085-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/085.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/086-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/086.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/087-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/087.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/091-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/091.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/103-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/103.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/111-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/111.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/115-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/115.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/126-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/126.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/129-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/129.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/130-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/130.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/134-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/134.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/152-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/152.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/159-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/159.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/161-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/161.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/163-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/163.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/169-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/failures/169.html [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/support/Ahem.ttf [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/support/ahem.css [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/support/external-variable-declaration.css [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/support/external-variable-font-face.css [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/support/external-variable-reference.css [new file with mode: 0644]
LayoutTests/fast/css/variables/test-suite/support/external-variable-supports.css [new file with mode: 0644]
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/css/CSSCalculationValue.cpp
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSCustomPropertyValue.h
Source/WebCore/css/CSSFunctionValue.cpp
Source/WebCore/css/CSSFunctionValue.h
Source/WebCore/css/CSSGrammar.y.in
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSParser.h
Source/WebCore/css/CSSParserValues.cpp
Source/WebCore/css/CSSParserValues.h
Source/WebCore/css/CSSPrimitiveValue.cpp
Source/WebCore/css/CSSPrimitiveValue.h
Source/WebCore/css/CSSValue.cpp
Source/WebCore/css/CSSValue.h
Source/WebCore/css/CSSValueList.cpp
Source/WebCore/css/CSSValueList.h
Source/WebCore/css/CSSVariableDependentValue.cpp [new file with mode: 0644]
Source/WebCore/css/CSSVariableDependentValue.h [new file with mode: 0644]
Source/WebCore/css/CSSVariableValue.cpp [new file with mode: 0644]
Source/WebCore/css/CSSVariableValue.h [new file with mode: 0644]
Source/WebCore/css/StyleProperties.cpp
Source/WebCore/css/StyleProperties.h
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/css/StyleResolver.h
Source/WebCore/css/makeprop.pl
Source/WebCore/rendering/style/RenderStyle.cpp
Source/WebCore/rendering/style/RenderStyle.h
Source/WebCore/rendering/style/StyleCustomPropertyData.h