Commit 9ee4418c authored by weinig@apple.com's avatar weinig@apple.com

2008-05-01 Sam Weinig <sam@webkit.org>

        Reviewed by Mark Rowe (in his infinite wisdom).

        Auto-generate the JSXSLTProcessor binding.

        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:
        * bindings/js/JSDOMWindowBase.cpp:
        (WebCore::JSDOMWindowBase::getValueProperty):
        * bindings/js/JSDOMWindowBase.h:
        (WebCore::JSDOMWindowBase::):
        * bindings/js/JSXSLTProcessor.cpp: Removed.
        * bindings/js/JSXSLTProcessor.h: Removed.
        * xml/XSLTProcessor.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 796309ca
2008-05-01 Sam Weinig <sam@webkit.org>
Reviewed by Mark Rowe (in his infinite wisdom).
Auto-generate the JSXSLTProcessor binding.
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* WebCoreSources.bkl:
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::getValueProperty):
* bindings/js/JSDOMWindowBase.h:
(WebCore::JSDOMWindowBase::):
* bindings/js/JSXSLTProcessor.cpp: Removed.
* bindings/js/JSXSLTProcessor.h: Removed.
* xml/XSLTProcessor.h:
2008-05-01 Sam Weinig <sam@webkit.org>
Reviewed by Geoffrey Garen.
......@@ -347,6 +347,7 @@ DOM_CLASSES = \
XPathExpression \
XPathNSResolver \
XPathResult \
XSLTProcessor \
#
.PHONY : all
......@@ -357,7 +358,6 @@ all : \
JSDOMWindowBase.lut.h \
JSEventTargetBase.lut.h \
JSRGBColor.lut.h \
JSXSLTProcessor.lut.h \
\
JSHTMLInputElementBaseTable.cpp \
\
......
......@@ -55,7 +55,6 @@ webcore_built_nosources += \
WebCore/bindings/js/JSDOMWindowBase.lut.h \
WebCore/bindings/js/JSEventTargetBase.lut.h \
WebCore/bindings/js/JSRGBColor.lut.h \
WebCore/bindings/js/JSXSLTProcessor.lut.h \
WebCore/bindings/js/JSHTMLInputElementBaseTable.cpp
webcore_built_sources += \
......@@ -203,6 +202,7 @@ webcore_built_sources += \
DerivedSources/JSXMLHttpRequest.h \
DerivedSources/JSXMLHttpRequestException.h \
DerivedSources/JSXMLSerializer.h \
DerivedSources/JSXSLTProcessor.h \
DerivedSources/JSAttr.cpp \
DerivedSources/JSBarInfo.cpp \
DerivedSources/JSCDATASection.cpp \
......@@ -336,7 +336,8 @@ webcore_built_sources += \
DerivedSources/JSXMLHttpRequest.cpp \
DerivedSources/JSXMLHttpRequestException.cpp \
DerivedSources/JSXMLHttpRequestProgressEvent.cpp \
DerivedSources/JSXMLSerializer.cpp
DerivedSources/JSXMLSerializer.cpp \
DerivedSources/JSXSLTProcessor.cpp
IDL_BINDINGS += \
WebCore/css/Counter.idl \
......@@ -470,7 +471,8 @@ IDL_BINDINGS += \
WebCore/xml/XMLHttpRequest.idl \
WebCore/xml/XMLHttpRequestProgressEvent.idl \
WebCore/xml/XMLHttpRequestException.idl \
WebCore/xml/XMLSerializer.idl
WebCore/xml/XMLSerializer.idl \
WebCore/xml/XSLTProcessor.idl
webcore_headers += \
WebCore/loader/icon/IconDatabase.h
......@@ -533,7 +535,8 @@ webcore_sources += \
WebCore/bindings/js/JSTreeWalkerCustom.cpp \
WebCore/bindings/js/JSXMLHttpRequestCustom.cpp \
WebCore/bindings/js/JSXMLHttpRequestConstructor.cpp \
WebCore/bindings/js/JSXSLTProcessor.cpp \
WebCore/bindings/js/JSXSLTProcessorCustom.cpp \
WebCore/bindings/js/JSXSLTProcessorConstructor.cpp \
WebCore/bindings/js/kjs_binding.cpp \
WebCore/bindings/js/kjs_events.cpp \
WebCore/bindings/js/kjs_html.cpp \
......@@ -2200,6 +2203,5 @@ CLEANFILES += \
WebCore/bindings/js/JSEventTargetBase.lut.h \
WebCore/bindings/js/JSHTMLInputElementBaseTable.cpp \
WebCore/bindings/js/JSDOMWindowBase.lut.h \
WebCore/bindings/js/JSRGBColor.lut.h \
WebCore/bindings/js/JSXSLTProcessor.lut.h
WebCore/bindings/js/JSRGBColor.lut.h
......@@ -270,8 +270,7 @@ STYLESHEETS_EMBED = $$PWD/css/html4.css
LUT_FILES += \
bindings/js/JSDOMWindowBase.cpp \
bindings/js/JSEventTargetBase.cpp \
bindings/js/JSRGBColor.cpp \
bindings/js/JSXSLTProcessor.cpp
bindings/js/JSRGBColor.cpp
LUT_TABLE_FILES += \
bindings/js/JSHTMLInputElementBase.cpp
......@@ -412,7 +411,8 @@ IDL_BINDINGS += \
xml/XMLHttpRequest.idl \
xml/XMLHttpRequestException.idl \
xml/XMLHttpRequestProgressEvent.idl \
xml/XMLSerializer.idl
xml/XMLSerializer.idl \
xml/XSLTProcessor.idl
SOURCES += \
......@@ -470,7 +470,8 @@ SOURCES += \
bindings/js/JSTreeWalkerCustom.cpp \
bindings/js/JSXMLHttpRequestConstructor.cpp \
bindings/js/JSXMLHttpRequestCustom.cpp \
bindings/js/JSXSLTProcessor.cpp \
bindings/js/JSXSLTProcessorConstructor.cpp \
bindings/js/JSXSLTProcessorCustom.cpp \
bindings/js/JSPluginCustom.cpp \
bindings/js/JSPluginArrayCustom.cpp \
bindings/js/JSMimeTypeArrayCustom.cpp \
......
......@@ -2886,7 +2886,11 @@
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSXSLTProcessor.lut.h"
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSXSLTProcessor.cpp"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSXSLTProcessor.h"
>
</File>
<File
......@@ -13610,11 +13614,15 @@
>
</File>
<File
RelativePath="..\bindings\js\JSXSLTProcessor.cpp"
RelativePath="..\bindings\js\JSXSLTProcessorConstructor.cpp"
>
</File>
<File
RelativePath="..\bindings\js\JSXSLTProcessorConstructor.h"
>
</File>
<File
RelativePath="..\bindings\js\JSXSLTProcessor.h"
RelativePath="..\bindings\js\JSXSLTProcessorCustom.cpp"
>
</File>
<File
......
......@@ -578,7 +578,6 @@
656580F409D12B20000E61D7 /* CSSPropertyNames.h in Headers */ = {isa = PBXBuildFile; fileRef = 656580EF09D12B20000E61D7 /* CSSPropertyNames.h */; };
6565815109D13043000E61D7 /* CSSValueKeywords.h in Headers */ = {isa = PBXBuildFile; fileRef = 6565814809D13043000E61D7 /* CSSValueKeywords.h */; };
656581B209D14EE6000E61D7 /* UserAgentStyleSheets.h in Headers */ = {isa = PBXBuildFile; fileRef = 656581AE09D14EE6000E61D7 /* UserAgentStyleSheets.h */; };
656581F009D1508D000E61D7 /* JSXSLTProcessor.lut.h in Headers */ = {isa = PBXBuildFile; fileRef = 656581D909D1508D000E61D7 /* JSXSLTProcessor.lut.h */; };
656581F509D1508D000E61D7 /* kjs_navigator.lut.h in Headers */ = {isa = PBXBuildFile; fileRef = 656581DE09D1508D000E61D7 /* kjs_navigator.lut.h */; };
656581FE09D1508D000E61D7 /* SVGElementFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 656581E709D1508D000E61D7 /* SVGElementFactory.h */; };
6565820009D1508D000E61D7 /* SVGNames.h in Headers */ = {isa = PBXBuildFile; fileRef = 656581E909D1508D000E61D7 /* SVGNames.h */; };
......@@ -1686,8 +1685,6 @@
93B6A0E60B0BCA5C00F5027A /* ContextMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 93B6A0E50B0BCA5C00F5027A /* ContextMenu.h */; settings = {ATTRIBUTES = (Private, ); }; };
93B6A0E80B0BCA6700F5027A /* ContextMenu.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93B6A0E70B0BCA6700F5027A /* ContextMenu.cpp */; };
93B6A0EA0B0BCA8400F5027A /* ContextMenuMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93B6A0E90B0BCA8400F5027A /* ContextMenuMac.mm */; };
93B70D6109EB0C7C009D8468 /* JSXSLTProcessor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93B70D4509EB0C7C009D8468 /* JSXSLTProcessor.cpp */; };
93B70D6209EB0C7C009D8468 /* JSXSLTProcessor.h in Headers */ = {isa = PBXBuildFile; fileRef = 93B70D4609EB0C7C009D8468 /* JSXSLTProcessor.h */; };
93B70D6309EB0C7C009D8468 /* kjs_binding.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93B70D4709EB0C7C009D8468 /* kjs_binding.cpp */; };
93B70D6409EB0C7C009D8468 /* kjs_binding.h in Headers */ = {isa = PBXBuildFile; fileRef = 93B70D4809EB0C7C009D8468 /* kjs_binding.h */; settings = {ATTRIBUTES = (Private, ); }; };
93B70D6909EB0C7C009D8468 /* kjs_events.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93B70D4D09EB0C7C009D8468 /* kjs_events.cpp */; };
......@@ -3779,6 +3776,8 @@
BCE3BEC20D222B1D007E06E4 /* TagNodeList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCE3BEC00D222B1D007E06E4 /* TagNodeList.cpp */; };
BCE3BEC30D222B1D007E06E4 /* TagNodeList.h in Headers */ = {isa = PBXBuildFile; fileRef = BCE3BEC10D222B1D007E06E4 /* TagNodeList.h */; };
BCE7B1930D4E86960075A539 /* JSHistoryCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */; };
BCE99EC30DCA624100182683 /* JSXSLTProcessorConstructor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCE99EC10DCA624100182683 /* JSXSLTProcessorConstructor.cpp */; };
BCE99EC40DCA624100182683 /* JSXSLTProcessorConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = BCE99EC20DCA624100182683 /* JSXSLTProcessorConstructor.h */; };
BCEA478F097CAAC80094C9E4 /* CSSComputedStyleDeclaration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEA477C097CAAC80094C9E4 /* CSSComputedStyleDeclaration.cpp */; };
BCEA4790097CAAC80094C9E4 /* CSSComputedStyleDeclaration.h in Headers */ = {isa = PBXBuildFile; fileRef = BCEA477D097CAAC80094C9E4 /* CSSComputedStyleDeclaration.h */; };
BCEA4852097D93020094C9E4 /* bidi.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEA4813097D93020094C9E4 /* bidi.cpp */; };
......@@ -3836,6 +3835,10 @@
BCEF3434087B563E00BBF833 /* HTMLElementFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEF3432087B563E00BBF833 /* HTMLElementFactory.cpp */; };
BCEF3435087B563E00BBF833 /* HTMLElementFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = BCEF3433087B563E00BBF833 /* HTMLElementFactory.h */; };
BCEFAF4E0C317E6900FA81F6 /* JSEventCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEFAF4D0C317E6900FA81F6 /* JSEventCustom.cpp */; };
BCEFE1DD0DCA5CFD00739219 /* XSLTProcessor.idl in Resources */ = {isa = PBXBuildFile; fileRef = BCEFE1DC0DCA5CFD00739219 /* XSLTProcessor.idl */; };
BCEFE1E50DCA5F3300739219 /* JSXSLTProcessorCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEFE1E40DCA5F3300739219 /* JSXSLTProcessorCustom.cpp */; };
BCEFE1EA0DCA5F6400739219 /* JSXSLTProcessor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEFE1E80DCA5F6400739219 /* JSXSLTProcessor.cpp */; };
BCEFE1EB0DCA5F6400739219 /* JSXSLTProcessor.h in Headers */ = {isa = PBXBuildFile; fileRef = BCEFE1E90DCA5F6400739219 /* JSXSLTProcessor.h */; };
BCFB2E5E0979E46400BA703D /* CachedResourceClient.h in Headers */ = {isa = PBXBuildFile; fileRef = BCFB2E5D0979E46400BA703D /* CachedResourceClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
BCFB2F76097A2E1A00BA703D /* Arena.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCFB2F74097A2E1A00BA703D /* Arena.cpp */; };
BCFB2F77097A2E1A00BA703D /* Arena.h in Headers */ = {isa = PBXBuildFile; fileRef = BCFB2F75097A2E1A00BA703D /* Arena.h */; };
......@@ -5048,7 +5051,6 @@
656581AD09D14EE6000E61D7 /* ColorData.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ColorData.c; sourceTree = "<group>"; };
656581AE09D14EE6000E61D7 /* UserAgentStyleSheets.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = UserAgentStyleSheets.h; sourceTree = "<group>"; };
656581AF09D14EE6000E61D7 /* UserAgentStyleSheetsData.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = UserAgentStyleSheetsData.cpp; sourceTree = "<group>"; };
656581D909D1508D000E61D7 /* JSXSLTProcessor.lut.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSXSLTProcessor.lut.h; sourceTree = "<group>"; };
656581DE09D1508D000E61D7 /* kjs_navigator.lut.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = kjs_navigator.lut.h; sourceTree = "<group>"; };
656581E609D1508D000E61D7 /* SVGElementFactory.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = SVGElementFactory.cpp; sourceTree = "<group>"; };
656581E709D1508D000E61D7 /* SVGElementFactory.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SVGElementFactory.h; sourceTree = "<group>"; };
......@@ -6108,8 +6110,6 @@
93B6A0E50B0BCA5C00F5027A /* ContextMenu.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ContextMenu.h; sourceTree = "<group>"; };
93B6A0E70B0BCA6700F5027A /* ContextMenu.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ContextMenu.cpp; sourceTree = "<group>"; };
93B6A0E90B0BCA8400F5027A /* ContextMenuMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ContextMenuMac.mm; sourceTree = "<group>"; };
93B70D4509EB0C7C009D8468 /* JSXSLTProcessor.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSXSLTProcessor.cpp; sourceTree = "<group>"; };
93B70D4609EB0C7C009D8468 /* JSXSLTProcessor.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSXSLTProcessor.h; sourceTree = "<group>"; };
93B70D4709EB0C7C009D8468 /* kjs_binding.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = kjs_binding.cpp; sourceTree = "<group>"; };
93B70D4809EB0C7C009D8468 /* kjs_binding.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = kjs_binding.h; sourceTree = "<group>"; };
93B70D4D09EB0C7C009D8468 /* kjs_events.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = kjs_events.cpp; sourceTree = "<group>"; };
......@@ -8080,6 +8080,8 @@
BCE3BEC00D222B1D007E06E4 /* TagNodeList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TagNodeList.cpp; sourceTree = "<group>"; };
BCE3BEC10D222B1D007E06E4 /* TagNodeList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TagNodeList.h; sourceTree = "<group>"; };
BCE7B1920D4E86960075A539 /* JSHistoryCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHistoryCustom.cpp; sourceTree = "<group>"; };
BCE99EC10DCA624100182683 /* JSXSLTProcessorConstructor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXSLTProcessorConstructor.cpp; sourceTree = "<group>"; };
BCE99EC20DCA624100182683 /* JSXSLTProcessorConstructor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSXSLTProcessorConstructor.h; sourceTree = "<group>"; };
BCEA477C097CAAC80094C9E4 /* CSSComputedStyleDeclaration.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CSSComputedStyleDeclaration.cpp; sourceTree = "<group>"; };
BCEA477D097CAAC80094C9E4 /* CSSComputedStyleDeclaration.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSComputedStyleDeclaration.h; sourceTree = "<group>"; };
BCEA477E097CAAC80094C9E4 /* CSSGrammar.y */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.yacc; path = CSSGrammar.y; sourceTree = "<group>"; };
......@@ -8141,6 +8143,10 @@
BCEF3432087B563E00BBF833 /* HTMLElementFactory.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLElementFactory.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
BCEF3433087B563E00BBF833 /* HTMLElementFactory.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = HTMLElementFactory.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
BCEFAF4D0C317E6900FA81F6 /* JSEventCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventCustom.cpp; sourceTree = "<group>"; };
BCEFE1DC0DCA5CFD00739219 /* XSLTProcessor.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = XSLTProcessor.idl; sourceTree = "<group>"; };
BCEFE1E40DCA5F3300739219 /* JSXSLTProcessorCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXSLTProcessorCustom.cpp; sourceTree = "<group>"; };
BCEFE1E80DCA5F6400739219 /* JSXSLTProcessor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXSLTProcessor.cpp; sourceTree = "<group>"; };
BCEFE1E90DCA5F6400739219 /* JSXSLTProcessor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSXSLTProcessor.h; sourceTree = "<group>"; };
BCFB2E5D0979E46400BA703D /* CachedResourceClient.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CachedResourceClient.h; sourceTree = "<group>"; };
BCFB2F74097A2E1A00BA703D /* Arena.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Arena.cpp; sourceTree = "<group>"; };
BCFB2F75097A2E1A00BA703D /* Arena.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Arena.h; sourceTree = "<group>"; };
......@@ -11162,7 +11168,8 @@
F916C48C0DB510F80076CD83 /* JSXMLHttpRequestProgressEvent.h */,
1ACE53F40A8D19470022947D /* JSXMLSerializer.cpp */,
1ACE53F50A8D19470022947D /* JSXMLSerializer.h */,
656581D909D1508D000E61D7 /* JSXSLTProcessor.lut.h */,
BCEFE1E80DCA5F6400739219 /* JSXSLTProcessor.cpp */,
BCEFE1E90DCA5F6400739219 /* JSXSLTProcessor.h */,
);
name = XML;
sourceTree = "<group>";
......@@ -12062,8 +12069,8 @@
B21127A50B3186770009BE53 /* JSSVGPODTypeWrapper.h */,
BC348BE70DB80354004ABAB9 /* JSXMLHttpRequestConstructor.cpp */,
BC348BE80DB80354004ABAB9 /* JSXMLHttpRequestConstructor.h */,
93B70D4509EB0C7C009D8468 /* JSXSLTProcessor.cpp */,
93B70D4609EB0C7C009D8468 /* JSXSLTProcessor.h */,
BCE99EC10DCA624100182683 /* JSXSLTProcessorConstructor.cpp */,
BCE99EC20DCA624100182683 /* JSXSLTProcessorConstructor.h */,
93B70D4709EB0C7C009D8468 /* kjs_binding.cpp */,
93B70D4809EB0C7C009D8468 /* kjs_binding.h */,
93B70D4D09EB0C7C009D8468 /* kjs_events.cpp */,
......@@ -12186,6 +12193,7 @@
516BB7920CE91E6800512F79 /* JSTreeWalkerCustom.cpp */,
A766F3520D6BDE3500ABDDB3 /* JSCanvasPixelArrayCustom.cpp */,
BC348BBD0DB7F531004ABAB9 /* JSXMLHttpRequestCustom.cpp */,
BCEFE1E40DCA5F3300739219 /* JSXSLTProcessorCustom.cpp */,
);
name = Custom;
sourceTree = "<group>";
......@@ -12462,6 +12470,7 @@
E1F1E82E0C3C2BB9006DB391 /* XSLTExtensions.h */,
BC06F24B06D18A7E004A6FA3 /* XSLTProcessor.cpp */,
BC06F24C06D18A7E004A6FA3 /* XSLTProcessor.h */,
BCEFE1DC0DCA5CFD00739219 /* XSLTProcessor.idl */,
E1BE512B0CF6C512002EA959 /* XSLTUnicodeSort.cpp */,
E1BE512C0CF6C512002EA959 /* XSLTUnicodeSort.h */,
);
......@@ -14320,8 +14329,6 @@
1A762C760A074F2600989F5B /* JSXPathExpression.h in Headers */,
1A762C780A074F2600989F5B /* JSXPathNSResolver.h in Headers */,
1A762C7A0A074F2600989F5B /* JSXPathResult.h in Headers */,
93B70D6209EB0C7C009D8468 /* JSXSLTProcessor.h in Headers */,
656581F009D1508D000E61D7 /* JSXSLTProcessor.lut.h in Headers */,
93309DF4099E64920056E581 /* JoinTextNodesCommand.h in Headers */,
6593923809AE4346002C531F /* KURL.h in Headers */,
85031B440A44EFC700F992E0 /* KeyboardEvent.h in Headers */,
......@@ -14977,6 +14984,8 @@
1A2AAC590DC2A3B100A20D9A /* ApplicationCacheStorage.h in Headers */,
BCA846D70DC67A350026C309 /* RenderReplica.h in Headers */,
1A219B3B0DCA87AB0040E3A0 /* npfunctions.h in Headers */,
BCEFE1EB0DCA5F6400739219 /* JSXSLTProcessor.h in Headers */,
BCE99EC40DCA624100182683 /* JSXSLTProcessorConstructor.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -15090,6 +15099,7 @@
85136CA80AED665900F90A3D /* westResizeCursor.png in Resources */,
1AB1AE7A0C051FDE00139F4F /* zoomInCursor.png in Resources */,
1AB1AE7B0C051FDE00139F4F /* zoomOutCursor.png in Resources */,
BCEFE1DD0DCA5CFD00739219 /* XSLTProcessor.idl in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -16044,7 +16054,6 @@
1A762C750A074F2600989F5B /* JSXPathExpression.cpp in Sources */,
1A762C770A074F2600989F5B /* JSXPathNSResolver.cpp in Sources */,
1A762C790A074F2600989F5B /* JSXPathResult.cpp in Sources */,
93B70D6109EB0C7C009D8468 /* JSXSLTProcessor.cpp in Sources */,
93309DF3099E64920056E581 /* JoinTextNodesCommand.cpp in Sources */,
6593923709AE4346002C531F /* KURL.cpp in Sources */,
1A98956B0AA78F80005EF5EF /* KURLCFNet.cpp in Sources */,
......@@ -16677,6 +16686,9 @@
BC5A12DF0DC0414800C9AFAD /* CSSReflectValue.cpp in Sources */,
1A2AAC580DC2A3B100A20D9A /* ApplicationCacheStorage.cpp in Sources */,
BCA846D60DC67A350026C309 /* RenderReplica.cpp in Sources */,
BCEFE1E50DCA5F3300739219 /* JSXSLTProcessorCustom.cpp in Sources */,
BCEFE1EA0DCA5F6400739219 /* JSXSLTProcessor.cpp in Sources */,
BCE99EC30DCA624100182683 /* JSXSLTProcessorConstructor.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -100,7 +100,8 @@ This file contains the list of files needed to build WebCore.
bindings/js/JSTreeWalkerCustom.cpp
bindings/js/JSXMLHttpRequestConstructor.cpp
bindings/js/JSXMLHttpRequestCustom.cpp
bindings/js/JSXSLTProcessor.cpp
bindings/js/JSXSLTProcessorConstructor.cpp
bindings/js/JSXSLTProcessorCustom.cpp
bindings/js/kjs_binding.cpp
bindings/js/kjs_events.cpp
bindings/js/kjs_html.cpp
......@@ -326,6 +327,7 @@ This file contains the list of files needed to build WebCore.
DerivedSources/WebCore/JSXPathExpression.cpp
DerivedSources/WebCore/JSXPathNSResolver.cpp
DerivedSources/WebCore/JSXPathResult.cpp
DerivedSources/WebCore/JSXSLTProcessor.cpp
DerivedSources/WebCore/UserAgentStyleSheetsData.cpp
DerivedSources/WebCore/XLinkNames.cpp
DerivedSources/WebCore/XMLNames.cpp
......
......@@ -65,7 +65,7 @@
#include <wtf/MathExtras.h>
#if ENABLE(XSLT)
#include "JSXSLTProcessor.h"
#include "JSXSLTProcessorConstructor.h"
#endif
#include "JSDOMWindowBase.lut.h"
......@@ -190,7 +190,7 @@ const ClassInfo JSDOMWindowBase::s_info = { "Window", 0, &JSDOMWindowBaseTable,
Image WebCore::JSDOMWindowBase::Image DontDelete
Option WebCore::JSDOMWindowBase::Option DontDelete
XMLHttpRequest WebCore::JSDOMWindowBase::XMLHttpRequest DontDelete
XSLTProcessor WebCore::JSDOMWindowBase::XSLTProcessor_ DontDelete
XSLTProcessor WebCore::JSDOMWindowBase::XSLTProcessor DontDelete
@end
*/
......@@ -449,7 +449,7 @@ JSValue *JSDOMWindowBase::getValueProperty(ExecState *exec, int token) const
#else
return jsUndefined();
#endif
case XSLTProcessor_:
case XSLTProcessor:
#if ENABLE(XSLT)
if (!allowsAccessFrom(exec))
return jsUndefined();
......
......@@ -133,7 +133,7 @@ namespace WebCore {
// Constructors
DOMException, Audio, Image, Option, XMLHttpRequest,
XSLTProcessor_
XSLTProcessor
};
private:
......
/*
* Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#if ENABLE(XSLT)
#include "JSXSLTProcessor.h"
#include "Document.h"
#include "DocumentFragment.h"
#include "JSDocument.h"
#include "XSLTProcessor.h"
using namespace KJS;
using namespace WebCore;
#include "JSXSLTProcessor.lut.h"
namespace WebCore {
const ClassInfo JSXSLTProcessor::s_info = { "XSLTProcessor", 0, 0, 0 };
/*
@begin JSXSLTProcessorPrototypeTable 7
importStylesheet jsXSLTProcessorPrototypeFunctionImportStylesheet DontDelete|Function 1
transformToFragment jsXSLTProcessorPrototypeFunctionTransformToFragment DontDelete|Function 2
transformToDocument jsXSLTProcessorPrototypeFunctionTransformToDocument DontDelete|Function 2
setParameter jsXSLTProcessorPrototypeFunctionSetParameter DontDelete|Function 3
getParameter jsXSLTProcessorPrototypeFunctionGetParameter DontDelete|Function 2
removeParameter jsXSLTProcessorPrototypeFunctionRemoveParameter DontDelete|Function 2
clearParameters jsXSLTProcessorPrototypeFunctionClearParameters DontDelete|Function 0
reset jsXSLTProcessorPrototypeFunctionReset DontDelete|Function 0
@end
*/
KJS_DEFINE_PROTOTYPE(JSXSLTProcessorPrototype)
KJS_IMPLEMENT_PROTOTYPE("XSLTProcessor", JSXSLTProcessorPrototype)
JSXSLTProcessor::JSXSLTProcessor(JSObject* prototype)
: DOMObject(prototype)
, m_impl(XSLTProcessor::create())
{
}
JSXSLTProcessor::~JSXSLTProcessor()
{
ScriptInterpreter::forgetDOMObject(m_impl.get());
}
JSValue* jsXSLTProcessorPrototypeFunctionImportStylesheet(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
JSValue *nodeVal = args[0];
if (nodeVal->isObject(&JSNode::s_info)) {
JSNode* node = static_cast<JSNode*>(nodeVal);
processor.importStylesheet(node->impl());
return jsUndefined();
}
// Throw exception?
return jsUndefined();
}
JSValue* jsXSLTProcessorPrototypeFunctionTransformToFragment(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
JSValue *nodeVal = args[0];
JSValue *docVal = args[1];
if (nodeVal->isObject(&JSNode::s_info) && docVal->isObject(&JSDocument::s_info)) {
WebCore::Node* node = static_cast<JSNode*>(nodeVal)->impl();
Document* doc = static_cast<Document*>(static_cast<JSDocument *>(docVal)->impl());
return toJS(exec, processor.transformToFragment(node, doc).get());
}
// Throw exception?
return jsUndefined();
}
JSValue* jsXSLTProcessorPrototypeFunctionTransformToDocument(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
JSValue *nodeVal = args[0];
if (nodeVal->isObject(&JSNode::s_info)) {
JSNode* node = static_cast<JSNode*>(nodeVal);
RefPtr<Document> resultDocument = processor.transformToDocument(node->impl());
if (resultDocument)
return toJS(exec, resultDocument.get());
return jsUndefined();
}
// Throw exception?
return jsUndefined();
}
JSValue* jsXSLTProcessorPrototypeFunctionSetParameter(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
if (args[1]->isUndefinedOrNull() || args[2]->isUndefinedOrNull())
return jsUndefined(); // Throw exception?
String namespaceURI = args[0]->toString(exec);
String localName = args[1]->toString(exec);
String value = args[2]->toString(exec);
processor.setParameter(namespaceURI, localName, value);
return jsUndefined();
}
JSValue* jsXSLTProcessorPrototypeFunctionGetParameter(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
if (args[1]->isUndefinedOrNull())
return jsUndefined();
String namespaceURI = args[0]->toString(exec);
String localName = args[1]->toString(exec);
String value = processor.getParameter(namespaceURI, localName);
if (!value.isNull())
return jsString(value);
return jsUndefined();
}
JSValue* jsXSLTProcessorPrototypeFunctionRemoveParameter(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
if (args[1]->isUndefinedOrNull())
return jsUndefined();
String namespaceURI = args[0]->toString(exec);
String localName = args[1]->toString(exec);
processor.removeParameter(namespaceURI, localName);
return jsUndefined();
}
JSValue* jsXSLTProcessorPrototypeFunctionClearParameters(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
processor.clearParameters();
return jsUndefined();
}
JSValue* jsXSLTProcessorPrototypeFunctionReset(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSXSLTProcessor::s_info))
return throwError(exec, TypeError);
XSLTProcessor& processor = *static_cast<JSXSLTProcessor*>(thisObj)->impl();
processor.reset();
return jsUndefined();
}
const ClassInfo JSXSLTProcessorConstructor::s_info = { "XSLTProcessorConsructor", 0, 0, 0 };
JSXSLTProcessorConstructor::JSXSLTProcessorConstructor(ExecState* exec)
: DOMObject(exec->lexicalGlobalObject()->objectPrototype())
{
putDirect(exec->propertyNames().prototype, JSXSLTProcessorPrototype::self(exec), None);
}
bool JSXSLTProcessorConstructor::implementsConstruct() const
{
return true;
}
JSObject* JSXSLTProcessorConstructor::construct(ExecState* exec, const List& args)
{
return new JSXSLTProcessor(JSXSLTProcessorPrototype::self(exec));
}
} // namespace WebCore
#endif // ENABLE(XSLT)
/*
* Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#if ENABLE(XSLT)
#include "JSXSLTProcessorConstructor.h"
#include "JSXSLTProcessor.h"
#include "XSLTProcessor.h"
#include <wtf/RefPtr.h>
using namespace KJS;
namespace WebCore {
const ClassInfo JSXSLTProcessorConstructor::s_info = { "XSLTProcessorConsructor", 0, 0, 0 };
JSXSLTProcessorConstructor::JSXSLTProcessorConstructor(ExecState* exec)
: DOMObject(exec->lexicalGlobalObject()->objectPrototype())
{
putDirect(exec->propertyNames().prototype, JSXSLTProcessorPrototype::self(exec), None);
}
bool JSXSLTProcessorConstructor::implementsConstruct() const
{
return true;
}
JSObject* JSXSLTProcessorConstructor::construct(ExecState* exec, const List& args)
{
RefPtr<XSLTProcessor> xsltProcessor = XSLTProcessor::create();
return new JSXSLTProcessor(JSXSLTProcessorPrototype::self(exec), xsltProcessor.get());
}
} // namespace WebCore
#endif // ENABLE(XSLT)
......@@ -23,8 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef JSXSLTProcessor_h
#define JSXSLTProcessor_h
#ifndef JSXSLTProcessorConstructor_h
#define JSXSLTProcessorConstructor_h
#if ENABLE(XSLT)
......@@ -32,48 +32,19 @@
namespace WebCore {
class XSLTProcessor;