diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/CSSFunctionValue.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/css/CSSFunctionValue.cpp')
-rw-r--r-- | Source/WebCore/css/CSSFunctionValue.cpp | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/Source/WebCore/css/CSSFunctionValue.cpp b/Source/WebCore/css/CSSFunctionValue.cpp index 3877f6da9..75ef0c1ed 100644 --- a/Source/WebCore/css/CSSFunctionValue.cpp +++ b/Source/WebCore/css/CSSFunctionValue.cpp @@ -26,40 +26,18 @@ #include "config.h" #include "CSSFunctionValue.h" -#include "CSSParserValues.h" -#include "CSSValueList.h" #include <wtf/text/StringBuilder.h> namespace WebCore { - -CSSFunctionValue::CSSFunctionValue(CSSParserFunction* function) - : CSSValue(FunctionClass) - , m_name(function->name) -{ - if (function->args) - m_args = CSSValueList::createFromParserValueList(*function->args); -} - -CSSFunctionValue::CSSFunctionValue(String name, PassRefPtr<CSSValueList> args) - : CSSValue(FunctionClass) - , m_name(name) - , m_args(args) -{ -} - + String CSSFunctionValue::customCSSText() const { StringBuilder result; - result.append(m_name); // Includes the '(' - if (m_args) - result.append(m_args->cssText()); + result.append(getValueName(m_name)); + result.append('('); + result.append(CSSValueList::customCSSText()); result.append(')'); return result.toString(); } -bool CSSFunctionValue::equals(const CSSFunctionValue& other) const -{ - return m_name == other.m_name && compareCSSValuePtr(m_args, other.m_args); -} - } |