[Part 1] Parse the custom() function in -webkit-filter
authorachicu@adobe.com <achicu@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2011 13:55:13 +0000 (13:55 +0000)
committerachicu@adobe.com <achicu@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2011 13:55:13 +0000 (13:55 +0000)
commit333aa3e6f41b84d93d79c8b23800140d3f8685ef
treef36a97c36165308ee3e86ad3a44081ee048949fd
parentc59addc31c3fd54f2090d547a733690bb52d4191
[Part 1] Parse the custom() function in -webkit-filter
https://bugs.webkit.org/show_bug.cgi?id=71441

Source/WebCore:

Added code that parses the custom() function. There's no code
for the CSSStyleSelector yet, so the only way to test this was to
check the "styleSheets" rules.

Reviewed by Dean Jackson.

Tests: css3/filters/custom-filter-property-parsing-invalid.html
       css3/filters/custom-filter-property-parsing.html

* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::computedFilter):
* css/CSSParser.cpp:
(WebCore::filterInfoForName):
(WebCore::acceptCommaOperator):
(WebCore::CSSParser::parseCustomFilter):
(WebCore::CSSParser::parseFilter):
* css/CSSParser.h:
* css/CSSStyleSelector.cpp:
(WebCore::filterOperationForType):
(WebCore::CSSStyleSelector::createFilterOperations):
* css/CSSValue.cpp:
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):
* css/CSSValue.h:
(WebCore::CSSValue::isWebKitCSSShaderValue):
* css/CSSValueKeywords.in:
* css/WebKitCSSFilterValue.cpp:
(WebCore::WebKitCSSFilterValue::WebKitCSSFilterValue):
(WebCore::WebKitCSSFilterValue::typeUsesSpaceSeparator):
(WebCore::WebKitCSSFilterValue::customCssText):
* css/WebKitCSSFilterValue.h:
* css/WebKitCSSFilterValue.idl:
* css/WebKitCSSShaderValue.h: Added.
(WebCore::WebKitCSSShaderValue::create):
(WebCore::WebKitCSSShaderValue::WebKitCSSShaderValue):
* platform/graphics/filters/FilterOperation.h:

LayoutTests:

Reviewed by Dean Jackson.

* css3/filters/custom-filter-property-parsing-expected.txt: Added.
* css3/filters/custom-filter-property-parsing-invalid-expected.txt: Added.
* css3/filters/custom-filter-property-parsing-invalid.html: Added.
* css3/filters/custom-filter-property-parsing.html: Added.
* css3/filters/script-tests/custom-filter-property-parsing-invalid.js: Added.
(testInvalidFilterRule):
* css3/filters/script-tests/custom-filter-property-parsing.js: Added.
(jsWrapperClass):
(expression):
(description):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
25 files changed:
LayoutTests/ChangeLog
LayoutTests/css3/filters/custom-filter-property-parsing-expected.txt [new file with mode: 0644]
LayoutTests/css3/filters/custom-filter-property-parsing-invalid-expected.txt [new file with mode: 0644]
LayoutTests/css3/filters/custom-filter-property-parsing-invalid.html [new file with mode: 0644]
LayoutTests/css3/filters/custom-filter-property-parsing.html [new file with mode: 0644]
LayoutTests/css3/filters/script-tests/custom-filter-property-parsing-invalid.js [new file with mode: 0644]
LayoutTests/css3/filters/script-tests/custom-filter-property-parsing.js [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Target.pri
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.vcproj/WebCore.vcproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSParser.h
Source/WebCore/css/CSSStyleSelector.cpp
Source/WebCore/css/CSSValue.cpp
Source/WebCore/css/CSSValue.h
Source/WebCore/css/CSSValueKeywords.in
Source/WebCore/css/WebKitCSSFilterValue.cpp
Source/WebCore/css/WebKitCSSFilterValue.h
Source/WebCore/css/WebKitCSSFilterValue.idl
Source/WebCore/css/WebKitCSSShaderValue.h [new file with mode: 0644]
Source/WebCore/platform/graphics/filters/FilterOperation.h