summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSFunctionValue.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/css/CSSFunctionValue.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/css/CSSFunctionValue.cpp')
-rw-r--r--Source/WebCore/css/CSSFunctionValue.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/Source/WebCore/css/CSSFunctionValue.cpp b/Source/WebCore/css/CSSFunctionValue.cpp
index 31861b336..3877f6da9 100644
--- a/Source/WebCore/css/CSSFunctionValue.cpp
+++ b/Source/WebCore/css/CSSFunctionValue.cpp
@@ -40,7 +40,7 @@ CSSFunctionValue::CSSFunctionValue(CSSParserFunction* function)
m_args = CSSValueList::createFromParserValueList(*function->args);
}
-CSSFunctionValue::CSSFunctionValue(const String& name, PassRefPtr<CSSValueList> args)
+CSSFunctionValue::CSSFunctionValue(String name, PassRefPtr<CSSValueList> args)
: CSSValue(FunctionClass)
, m_name(name)
, m_args(args)
@@ -62,19 +62,4 @@ bool CSSFunctionValue::equals(const CSSFunctionValue& other) const
return m_name == other.m_name && compareCSSValuePtr(m_args, other.m_args);
}
-bool CSSFunctionValue::buildParserValueSubstitutingVariables(CSSParserValue* result, const CustomPropertyValueMap& customProperties) const
-{
- result->id = CSSValueInvalid;
- result->unit = CSSParserValue::Function;
- result->function = new CSSParserFunction;
- result->function->name.init(m_name);
- bool success = true;
- if (m_args) {
- CSSParserValueList* argList = new CSSParserValueList;
- success = m_args->buildParserValueListSubstitutingVariables(argList, customProperties);
- result->function->args.reset(argList);
- }
- return success;
-}
-
}