Commit a211a4ba authored by weinig's avatar weinig
Browse files

LayoutTests:

        Reviewed by Geoff.

        - update results to account for new JSHTMLElements that are being
          auto-generated and can now produce Constructors.

        * fast/dom/Window/element-constructors-on-window-expected.txt:
        * fast/dom/Window/window-properties-expected.txt:

WebCore:

        Reviewed by Geoff.

        Autogenerate the JS bindings for the HTMLTableElement, HTMLTableCaptionElement,
        HTMLTableCellElement, HTMLTableColElement, HTMLTableRowElement, HTMLTableSectionElement.

        * DerivedSources.make:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSHTMLElementWrapperFactory.cpp:
        (WebCore::createJSHTMLWrapper):
        * bindings/js/kjs_html.cpp:
        (KJS::):
        (KJS::JSHTMLElement::classInfo):
        (KJS::JSHTMLElement::accessors):
        (KJS::HTMLElementFunction::callAsFunction):
        * bindings/js/kjs_html.h:
        (KJS::JSHTMLElement::):
        * html/HTMLTableCaptionElement.idl:
        * html/HTMLTableCellElement.idl:
        * html/HTMLTableColElement.idl:
        * html/HTMLTableElement.idl:
        * html/HTMLTableRowElement.idl:
        * html/HTMLTableSectionElement.idl:
        * page/DOMWindow.idl:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c0da6ab1
2007-05-18 Sam Weinig <sam@webkit.org>
Reviewed by Geoff.
- update results to account for new JSHTMLElements that are being
auto-generated and can now produce Constructors.
* fast/dom/Window/element-constructors-on-window-expected.txt:
* fast/dom/Window/window-properties-expected.txt:
2007-05-17 Maciej Stachowiak <mjs@apple.com>
 
Not Reviewed, buildbot test fix.
......@@ -88,17 +88,17 @@ HTMLSelectElement: [object HTMLSelectElementConstructor]
HTMLStyleElement: [object HTMLStyleElementConstructor]
HTMLTableCaptionElement: undefined
HTMLTableCaptionElement: [object HTMLTableCaptionElementConstructor]
HTMLTableCellElement: undefined
HTMLTableCellElement: [object HTMLTableCellElementConstructor]
HTMLTableColElement: undefined
HTMLTableColElement: [object HTMLTableColElementConstructor]
HTMLTableElement: undefined
HTMLTableElement: [object HTMLTableElementConstructor]
HTMLTableRowElement: undefined
HTMLTableRowElement: [object HTMLTableRowElementConstructor]
HTMLTableSectionElement: undefined
HTMLTableSectionElement: [object HTMLTableSectionElementConstructor]
HTMLTextAreaElement: [object HTMLTextAreaElementConstructor]
......
......@@ -577,6 +577,18 @@ window.HTMLSelectElement [object HTMLSelectElementConstructor]
window.HTMLSelectElement.prototype [printed above as window.Element.prototype]
window.HTMLStyleElement [object HTMLStyleElementConstructor]
window.HTMLStyleElement.prototype [printed above as window.Element.prototype]
window.HTMLTableCaptionElement [object HTMLTableCaptionElementConstructor]
window.HTMLTableCaptionElement.prototype [printed above as window.Element.prototype]
window.HTMLTableCellElement [object HTMLTableCellElementConstructor]
window.HTMLTableCellElement.prototype [printed above as window.Element.prototype]
window.HTMLTableColElement [object HTMLTableColElementConstructor]
window.HTMLTableColElement.prototype [printed above as window.Element.prototype]
window.HTMLTableElement [object HTMLTableElementConstructor]
window.HTMLTableElement.prototype [printed above as window.Element.prototype]
window.HTMLTableRowElement [object HTMLTableRowElementConstructor]
window.HTMLTableRowElement.prototype [printed above as window.Element.prototype]
window.HTMLTableSectionElement [object HTMLTableSectionElementConstructor]
window.HTMLTableSectionElement.prototype [printed above as window.Element.prototype]
window.HTMLTextAreaElement [object HTMLTextAreaElementConstructor]
window.HTMLTextAreaElement.prototype [printed above as window.Element.prototype]
window.HTMLTitleElement [object HTMLTitleElementConstructor]
......
2007-05-18 Sam Weinig <sam@webkit.org>
Reviewed by Geoff.
Autogenerate the JS bindings for the HTMLTableElement, HTMLTableCaptionElement,
HTMLTableCellElement, HTMLTableColElement, HTMLTableRowElement, HTMLTableSectionElement.
* DerivedSources.make:
* WebCore.pro:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSHTMLElementWrapperFactory.cpp:
(WebCore::createJSHTMLWrapper):
* bindings/js/kjs_html.cpp:
(KJS::):
(KJS::JSHTMLElement::classInfo):
(KJS::JSHTMLElement::accessors):
(KJS::HTMLElementFunction::callAsFunction):
* bindings/js/kjs_html.h:
(KJS::JSHTMLElement::):
* html/HTMLTableCaptionElement.idl:
* html/HTMLTableCellElement.idl:
* html/HTMLTableColElement.idl:
* html/HTMLTableElement.idl:
* html/HTMLTableRowElement.idl:
* html/HTMLTableSectionElement.idl:
* page/DOMWindow.idl:
2007-05-18 Oliver Hunt <oliver@apple.com>
 
Reviewed by Sam.
......@@ -366,6 +366,12 @@ all : \
JSHTMLScriptElement.h \
JSHTMLSelectElement.h \
JSHTMLStyleElement.h \
JSHTMLTableCaptionElement.h \
JSHTMLTableCellElement.h \
JSHTMLTableColElement.h \
JSHTMLTableElement.h \
JSHTMLTableRowElement.h \
JSHTMLTableSectionElement.h \
JSHTMLTextAreaElement.h \
JSHTMLTitleElement.h \
JSHTMLUListElement.h \
......@@ -671,7 +677,7 @@ OBJC_BINDINGS_SCRIPTS = \
#
DOM%.h : %.idl $(OBJC_BINDINGS_SCRIPTS) bindings/objc/PublicDOMInterfaces.h
perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --include dom --include html --include css --include page --include xml --include /ksvg2/svg --include /ksvg2/events --outputdir . $<
perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --include dom --include html --include css --include page --include xml --include ksvg2/svg --include ksvg2/events --outputdir . $<
# new-style JavaScript bindings
......@@ -684,4 +690,4 @@ JS_BINDINGS_SCRIPTS = \
#
JS%.h : %.idl $(JS_BINDINGS_SCRIPTS)
perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --include css --include page --include xml --include ksvg2/svg --include /ksvg2/events --outputdir . $<
perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --include css --include page --include xml --include ksvg2/svg --include ksvg2/events --outputdir . $<
......@@ -244,6 +244,12 @@ IDL_BINDINGS += \
html/HTMLScriptElement.idl \
html/HTMLSelectElement.idl \
html/HTMLStyleElement.idl \
html/HTMLTableCaptionElement.idl \
html/HTMLTableCellElement.idl \
html/HTMLTableColElement.idl \
html/HTMLTableElement.idl \
html/HTMLTableRowElement.idl \
html/HTMLTableSectionElement.idl \
html/HTMLTextAreaElement.idl \
html/HTMLTitleElement.idl \
html/HTMLUListElement.idl \
......
......@@ -2729,6 +2729,16 @@
B2FA3E180AB75A6F000E5AC4 /* JSSVGZoomEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B2FA3D300AB75A6F000E5AC4 /* JSSVGZoomEvent.cpp */; };
B2FA3E190AB75A6F000E5AC4 /* JSSVGZoomEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = B2FA3D310AB75A6F000E5AC4 /* JSSVGZoomEvent.h */; };
BC066F6F09FEB2FA00C589A7 /* WebCoreTextRenderer.h in Headers */ = {isa = PBXBuildFile; fileRef = BC066F6C09FEB2FA00C589A7 /* WebCoreTextRenderer.h */; settings = {ATTRIBUTES = (Private, ); }; };
BC06ED060BFD5BAE00856E9D /* JSHTMLTableSectionElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC06ED040BFD5BAE00856E9D /* JSHTMLTableSectionElement.cpp */; };
BC06ED070BFD5BAE00856E9D /* JSHTMLTableSectionElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC06ED050BFD5BAE00856E9D /* JSHTMLTableSectionElement.h */; };
BC06ED9D0BFD660600856E9D /* JSHTMLTableColElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC06ED990BFD660600856E9D /* JSHTMLTableColElement.cpp */; };
BC06ED9E0BFD660600856E9D /* JSHTMLTableColElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC06ED9A0BFD660600856E9D /* JSHTMLTableColElement.h */; };
BC06ED9F0BFD660600856E9D /* JSHTMLTableRowElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC06ED9B0BFD660600856E9D /* JSHTMLTableRowElement.cpp */; };
BC06EDA00BFD660600856E9D /* JSHTMLTableRowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC06ED9C0BFD660600856E9D /* JSHTMLTableRowElement.h */; };
BC06EDE30BFD6D0D00856E9D /* JSHTMLTableCellElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC06EDE10BFD6D0D00856E9D /* JSHTMLTableCellElement.cpp */; };
BC06EDE40BFD6D0D00856E9D /* JSHTMLTableCellElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC06EDE20BFD6D0D00856E9D /* JSHTMLTableCellElement.h */; };
BC06EE040BFD71AA00856E9D /* JSHTMLTableElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC06EE020BFD71AA00856E9D /* JSHTMLTableElement.cpp */; };
BC06EE050BFD71AA00856E9D /* JSHTMLTableElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BC06EE030BFD71AA00856E9D /* JSHTMLTableElement.h */; };
BC17F9660B64EBB8004A65CB /* JSHTMLSelectElementCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC17F9650B64EBB8004A65CB /* JSHTMLSelectElementCustom.cpp */; };
BC18C5D00B2A886F0018461D /* TextBreakIterator.h in Headers */ = {isa = PBXBuildFile; fileRef = BC18C5CE0B2A886F0018461D /* TextBreakIterator.h */; };
BC18C5D10B2A886F0018461D /* TextBreakIteratorICU.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC18C5CF0B2A886F0018461D /* TextBreakIteratorICU.cpp */; };
......@@ -2762,6 +2772,8 @@
BC6DB4740A1A90FB00E5CD14 /* GlyphPageTreeNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC6DB4730A1A90FB00E5CD14 /* GlyphPageTreeNode.cpp */; };
BC6DB4D40A1AFEEF00E5CD14 /* GlyphPageTreeNodeMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC6DB4D30A1AFEEF00E5CD14 /* GlyphPageTreeNodeMac.cpp */; };
BC7F44A80B9E324E00A9D081 /* ImageObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = BC7F44A70B9E324E00A9D081 /* ImageObserver.h */; settings = {ATTRIBUTES = (Private, ); }; };
BCA169A20BFD55B40019CA76 /* JSHTMLTableCaptionElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCA169A00BFD55B40019CA76 /* JSHTMLTableCaptionElement.cpp */; };
BCA169A30BFD55B40019CA76 /* JSHTMLTableCaptionElement.h in Headers */ = {isa = PBXBuildFile; fileRef = BCA169A10BFD55B40019CA76 /* JSHTMLTableCaptionElement.h */; };
BCAA90C30A7EBA60008B1229 /* ScrollBar.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCAA90C20A7EBA60008B1229 /* ScrollBar.cpp */; };
BCB16B8B0979B01400467741 /* DeprecatedArray.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB16B880979B01400467741 /* DeprecatedArray.h */; settings = {ATTRIBUTES = (Private, ); }; };
BCB16B8C0979B01400467741 /* ArrayImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCB16B890979B01400467741 /* ArrayImpl.cpp */; };
......@@ -5934,6 +5946,16 @@
B2FA3D300AB75A6F000E5AC4 /* JSSVGZoomEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSSVGZoomEvent.cpp; sourceTree = "<group>"; };
B2FA3D310AB75A6F000E5AC4 /* JSSVGZoomEvent.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSSVGZoomEvent.h; sourceTree = "<group>"; };
BC066F6C09FEB2FA00C589A7 /* WebCoreTextRenderer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebCoreTextRenderer.h; sourceTree = "<group>"; };
BC06ED040BFD5BAE00856E9D /* JSHTMLTableSectionElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableSectionElement.cpp; sourceTree = "<group>"; };
BC06ED050BFD5BAE00856E9D /* JSHTMLTableSectionElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableSectionElement.h; sourceTree = "<group>"; };
BC06ED990BFD660600856E9D /* JSHTMLTableColElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableColElement.cpp; sourceTree = "<group>"; };
BC06ED9A0BFD660600856E9D /* JSHTMLTableColElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableColElement.h; sourceTree = "<group>"; };
BC06ED9B0BFD660600856E9D /* JSHTMLTableRowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableRowElement.cpp; sourceTree = "<group>"; };
BC06ED9C0BFD660600856E9D /* JSHTMLTableRowElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableRowElement.h; sourceTree = "<group>"; };
BC06EDE10BFD6D0D00856E9D /* JSHTMLTableCellElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableCellElement.cpp; sourceTree = "<group>"; };
BC06EDE20BFD6D0D00856E9D /* JSHTMLTableCellElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableCellElement.h; sourceTree = "<group>"; };
BC06EE020BFD71AA00856E9D /* JSHTMLTableElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableElement.cpp; sourceTree = "<group>"; };
BC06EE030BFD71AA00856E9D /* JSHTMLTableElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableElement.h; sourceTree = "<group>"; };
BC06F24906D18A7E004A6FA3 /* XSLStyleSheet.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XSLStyleSheet.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
BC06F24A06D18A7E004A6FA3 /* XSLStyleSheet.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = XSLStyleSheet.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
BC06F24B06D18A7E004A6FA3 /* XSLTProcessor.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XSLTProcessor.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
......@@ -5975,6 +5997,8 @@
BC7B2AF80450824100A8000F /* ScrollBar.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = ScrollBar.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
BC7B2AF90450824100A8000F /* PlatformScrollBarMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PlatformScrollBarMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
BC7F44A70B9E324E00A9D081 /* ImageObserver.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ImageObserver.h; sourceTree = "<group>"; };
BCA169A00BFD55B40019CA76 /* JSHTMLTableCaptionElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLTableCaptionElement.cpp; sourceTree = "<group>"; };
BCA169A10BFD55B40019CA76 /* JSHTMLTableCaptionElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLTableCaptionElement.h; sourceTree = "<group>"; };
BCAA90C20A7EBA60008B1229 /* ScrollBar.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = ScrollBar.cpp; path = platform/ScrollBar.cpp; sourceTree = SOURCE_ROOT; };
BCB16B880979B01400467741 /* DeprecatedArray.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DeprecatedArray.h; sourceTree = "<group>"; };
BCB16B890979B01400467741 /* ArrayImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ArrayImpl.cpp; sourceTree = "<group>"; };
......@@ -6442,6 +6466,18 @@
E1E6EEA70B628DB3005F2F70 /* JSHTMLSelectElement.h */,
A80E7B050A19D606007FB8C5 /* JSHTMLStyleElement.cpp */,
A80E7B040A19D606007FB8C5 /* JSHTMLStyleElement.h */,
BCA169A00BFD55B40019CA76 /* JSHTMLTableCaptionElement.cpp */,
BCA169A10BFD55B40019CA76 /* JSHTMLTableCaptionElement.h */,
BC06EDE10BFD6D0D00856E9D /* JSHTMLTableCellElement.cpp */,
BC06EDE20BFD6D0D00856E9D /* JSHTMLTableCellElement.h */,
BC06ED990BFD660600856E9D /* JSHTMLTableColElement.cpp */,
BC06ED9A0BFD660600856E9D /* JSHTMLTableColElement.h */,
BC06EE020BFD71AA00856E9D /* JSHTMLTableElement.cpp */,
BC06EE030BFD71AA00856E9D /* JSHTMLTableElement.h */,
BC06ED9B0BFD660600856E9D /* JSHTMLTableRowElement.cpp */,
BC06ED9C0BFD660600856E9D /* JSHTMLTableRowElement.h */,
BC06ED040BFD5BAE00856E9D /* JSHTMLTableSectionElement.cpp */,
BC06ED050BFD5BAE00856E9D /* JSHTMLTableSectionElement.h */,
A80E7E940A1A83E3007FB8C5 /* JSHTMLTextAreaElement.cpp */,
A80E7E930A1A83E3007FB8C5 /* JSHTMLTextAreaElement.h */,
A80E7B090A19D606007FB8C5 /* JSHTMLTitleElement.cpp */,
......@@ -11281,6 +11317,12 @@
93799EF90BF2743600D0F230 /* RenderWordBreak.h in Headers */,
37919C1D0BF3762800956998 /* ShapeArabic.h in Headers */,
BC588AF00BFA6CF900EE679E /* HTMLParserErrorCodes.h in Headers */,
BCA169A30BFD55B40019CA76 /* JSHTMLTableCaptionElement.h in Headers */,
BC06ED070BFD5BAE00856E9D /* JSHTMLTableSectionElement.h in Headers */,
BC06ED9E0BFD660600856E9D /* JSHTMLTableColElement.h in Headers */,
BC06EDA00BFD660600856E9D /* JSHTMLTableRowElement.h in Headers */,
BC06EDE40BFD6D0D00856E9D /* JSHTMLTableCellElement.h in Headers */,
BC06EE050BFD71AA00856E9D /* JSHTMLTableElement.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -12657,6 +12699,12 @@
37919C190BF375DD00956998 /* ShapeArabic.c in Sources */,
BC588B4B0BFA723C00EE679E /* HTMLParserErrorCodes.cpp in Sources */,
BCF411780BFCC76A00125622 /* JSHTMLAnchorElementCustom.cpp in Sources */,
BCA169A20BFD55B40019CA76 /* JSHTMLTableCaptionElement.cpp in Sources */,
BC06ED060BFD5BAE00856E9D /* JSHTMLTableSectionElement.cpp in Sources */,
BC06ED9D0BFD660600856E9D /* JSHTMLTableColElement.cpp in Sources */,
BC06ED9F0BFD660600856E9D /* JSHTMLTableRowElement.cpp in Sources */,
BC06EDE30BFD6D0D00856E9D /* JSHTMLTableCellElement.cpp in Sources */,
BC06EE040BFD71AA00856E9D /* JSHTMLTableElement.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006, 2007 Apple Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -22,29 +22,29 @@
#include "HTMLAnchorElement.h"
#include "HTMLAppletElement.h"
#include "HTMLAreaElement.h"
#include "HTMLBRElement.h"
#include "HTMLBaseElement.h"
#include "HTMLBaseFontElement.h"
#include "HTMLBlockquoteElement.h"
#include "HTMLBodyElement.h"
#include "HTMLBRElement.h"
#include "HTMLButtonElement.h"
#include "HTMLCanvasElement.h"
#include "HTMLDListElement.h"
#include "HTMLDirectoryElement.h"
#include "HTMLDivElement.h"
#include "HTMLDListElement.h"
#include "HTMLFieldSetElement.h"
#include "HTMLFontElement.h"
#include "HTMLFormElement.h"
#include "HTMLHRElement.h"
#include "HTMLHeadElement.h"
#include "HTMLHeadingElement.h"
#include "HTMLHRElement.h"
#include "HTMLHtmlElement.h"
#include "HTMLImageElement.h"
#include "HTMLInputElement.h"
#include "HTMLIsIndexElement.h"
#include "HTMLLIElement.h"
#include "HTMLLabelElement.h"
#include "HTMLLegendElement.h"
#include "HTMLLIElement.h"
#include "HTMLLinkElement.h"
#include "HTMLMapElement.h"
#include "HTMLMenuElement.h"
......@@ -60,6 +60,12 @@
#include "HTMLScriptElement.h"
#include "HTMLSelectElement.h"
#include "HTMLStyleElement.h"
#include "HTMLTableCaptionElement.h"
#include "HTMLTableCellElement.h"
#include "HTMLTableColElement.h"
#include "HTMLTableElement.h"
#include "HTMLTableRowElement.h"
#include "HTMLTableSectionElement.h"
#include "HTMLTextAreaElement.h"
#include "HTMLTitleElement.h"
#include "HTMLUListElement.h"
......@@ -69,29 +75,29 @@
#include "JSHTMLAnchorElement.h"
#include "JSHTMLAppletElement.h"
#include "JSHTMLAreaElement.h"
#include "JSHTMLBRElement.h"
#include "JSHTMLBaseElement.h"
#include "JSHTMLBaseFontElement.h"
#include "JSHTMLBlockquoteElement.h"
#include "JSHTMLBodyElement.h"
#include "JSHTMLBRElement.h"
#include "JSHTMLButtonElement.h"
#include "JSHTMLCanvasElement.h"
#include "JSHTMLDListElement.h"
#include "JSHTMLDirectoryElement.h"
#include "JSHTMLDivElement.h"
#include "JSHTMLDListElement.h"
#include "JSHTMLFieldSetElement.h"
#include "JSHTMLFontElement.h"
#include "JSHTMLFormElement.h"
#include "JSHTMLHRElement.h"
#include "JSHTMLHeadElement.h"
#include "JSHTMLHeadingElement.h"
#include "JSHTMLHRElement.h"
#include "JSHTMLHtmlElement.h"
#include "JSHTMLImageElement.h"
#include "JSHTMLInputElement.h"
#include "JSHTMLIsIndexElement.h"
#include "JSHTMLLIElement.h"
#include "JSHTMLLabelElement.h"
#include "JSHTMLLegendElement.h"
#include "JSHTMLLIElement.h"
#include "JSHTMLLinkElement.h"
#include "JSHTMLMapElement.h"
#include "JSHTMLMenuElement.h"
......@@ -107,6 +113,12 @@
#include "JSHTMLScriptElement.h"
#include "JSHTMLSelectElement.h"
#include "JSHTMLStyleElement.h"
#include "JSHTMLTableCaptionElement.h"
#include "JSHTMLTableCellElement.h"
#include "JSHTMLTableColElement.h"
#include "JSHTMLTableElement.h"
#include "JSHTMLTableRowElement.h"
#include "JSHTMLTableSectionElement.h"
#include "JSHTMLTextAreaElement.h"
#include "JSHTMLTitleElement.h"
#include "JSHTMLUListElement.h"
......@@ -133,7 +145,9 @@ typedef DOMNode* (*CreateHTMLElementWrapperFunction)(ExecState*, PassRefPtr<HTML
macro(body, Body) \
macro(br, BR) \
macro(button, Button) \
macro(caption, TableCaption) \
macro(canvas, Canvas) \
macro(col, TableCol) \
macro(del, Mod) \
macro(dir, Directory) \
macro(div, Div) \
......@@ -165,7 +179,11 @@ typedef DOMNode* (*CreateHTMLElementWrapperFunction)(ExecState*, PassRefPtr<HTML
macro(script, Script) \
macro(select, Select) \
macro(style, Style) \
macro(table, Table) \
macro(tbody, TableSection) \
macro(td, TableCell) \
macro(textarea, TextArea) \
macro(tr, TableRow) \
macro(title, Title) \
macro(ul, UList) \
// end of macro
......@@ -185,6 +203,7 @@ DOMNode* createJSHTMLWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
#define ADD_TO_HASH_MAP(tag, name) map.set(tag##Tag.localName().impl(), create##name##Wrapper);
FOR_EACH_TAG(ADD_TO_HASH_MAP)
#undef ADD_TO_HASH_MAP
map.set(colgroupTag.localName().impl(), createTableColWrapper);
map.set(h2Tag.localName().impl(), createHeadingWrapper);
map.set(h3Tag.localName().impl(), createHeadingWrapper);
map.set(h4Tag.localName().impl(), createHeadingWrapper);
......@@ -194,6 +213,9 @@ FOR_EACH_TAG(ADD_TO_HASH_MAP)
map.set(insTag.localName().impl(), createModWrapper);
map.set(keygenTag.localName().impl(), createSelectWrapper);
map.set(listingTag.localName().impl(), createPreWrapper);
map.set(tfootTag.localName().impl(), createTableSectionWrapper);
map.set(thTag.localName().impl(), createTableCellWrapper);
map.set(theadTag.localName().impl(), createTableSectionWrapper);
map.set(xmpTag.localName().impl(), createPreWrapper);
}
CreateHTMLElementWrapperFunction createWrapperFunction = map.get(element->localName().impl());
......
This diff is collapsed.
......@@ -2,7 +2,7 @@
/*
* This file is part of the KDE libraries
* Copyright (C) 1999 Harri Porten (porten@kde.org)
* Copyright (C) 2004, 2006 Apple Computer, Inc.
* Copyright (C) 2004, 2006, 2007 Apple Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -31,8 +31,6 @@ namespace WebCore {
class HTMLDocument;
class HTMLElement;
class HTMLOptionsCollection;
class HTMLTableCaptionElement;
class HTMLTableSectionElement;
}
namespace KJS {
......@@ -79,9 +77,8 @@ namespace KJS {
static const ClassInfo info;
static const ClassInfo
object_info,
embed_info, table_info, caption_info, col_info, tablesection_info, tr_info,
tablecell_info, frameSet_info, frame_info, iFrame_info, marquee_info;
object_info, embed_info,
frameSet_info, frame_info, iFrame_info, marquee_info;
// FIXME: Might make sense to combine this with ClassInfo some day.
typedef JSValue* (JSHTMLElement::*GetterFunction)(ExecState*, int token) const;
......@@ -89,26 +86,13 @@ namespace KJS {
struct Accessors { GetterFunction m_getter; SetterFunction m_setter; };
const Accessors* accessors() const;
static const Accessors
object_accessors, embed_accessors, table_accessors,
caption_accessors, col_accessors, tablesection_accessors, tr_accessors,
tablecell_accessors, frameSet_accessors, frame_accessors, iFrame_accessors, marquee_accessors;
object_accessors, embed_accessors,
frameSet_accessors, frame_accessors, iFrame_accessors, marquee_accessors;
JSValue* objectGetter(ExecState* exec, int token) const;
void objectSetter(ExecState*, int token, JSValue*);
JSValue* embedGetter(ExecState*, int token) const;
void embedSetter(ExecState*, int token, JSValue*);
JSValue* tableGetter(ExecState* exec, int token) const;
void tableSetter(ExecState*, int token, JSValue*);
JSValue* tableCaptionGetter(ExecState* exec, int token) const;
void tableCaptionSetter(ExecState*, int token, JSValue*);
JSValue* tableColGetter(ExecState* exec, int token) const;
void tableColSetter(ExecState*, int token, JSValue*);
JSValue* tableSectionGetter(ExecState* exec, int token) const;
void tableSectionSetter(ExecState*, int token, JSValue*);
JSValue* tableRowGetter(ExecState* exec, int token) const;
void tableRowSetter(ExecState*, int token, JSValue*);
JSValue* tableCellGetter(ExecState* exec, int token) const;
void tableCellSetter(ExecState*, int token, JSValue*);
JSValue* frameSetGetter(ExecState* exec, int token) const;
void frameSetSetter(ExecState*, int token, JSValue*);
JSValue* frameGetter(ExecState* exec, int token) const;
......@@ -124,23 +108,7 @@ namespace KJS {
ObjectDeclare, ObjectForm, ObjectCodeBase, ObjectCodeType, ObjectData,
ObjectName, ObjectStandby, ObjectTabIndex, ObjectUseMap, ObjectWidth, ObjectContentDocument, ObjectGetSVGDocument,
EmbedAlign, EmbedHeight, EmbedName, EmbedSrc, EmbedType, EmbedWidth, EmbedGetSVGDocument,
TableSummary, TableTBodies, TableTHead, TableCellPadding,
TableDeleteCaption, TableCreateCaption, TableCaption, TableWidth,
TableCreateTFoot, TableAlign, TableTFoot, TableDeleteRow,
TableCellSpacing, TableRows, TableBgColor, TableBorder, TableFrame,
TableRules, TableCreateTHead, TableDeleteTHead, TableDeleteTFoot,
TableInsertRow, TableCaptionAlign, TableColCh, TableColChOff,
TableColAlign, TableColSpan, TableColVAlign, TableColWidth,
TableSectionCh, TableSectionDeleteRow, TableSectionChOff,
TableSectionRows, TableSectionAlign, TableSectionVAlign,
TableSectionInsertRow, TableRowSectionRowIndex, TableRowRowIndex,
TableRowChOff, TableRowCells, TableRowVAlign, TableRowCh,
TableRowAlign, TableRowBgColor, TableRowDeleteCell, TableRowInsertCell,
TableCellColSpan, TableCellNoWrap, TableCellAbbr, TableCellHeight,
TableCellWidth, TableCellCellIndex, TableCellChOff, TableCellBgColor,
TableCellCh, TableCellVAlign, TableCellRowSpan, TableCellHeaders,
TableCellAlign, TableCellAxis, TableCellScope, FrameSetCols,
FrameSetRows, FrameSrc, FrameLocation, FrameFrameBorder, FrameScrolling,
FrameSetCols, FrameSetRows, FrameSrc, FrameLocation, FrameFrameBorder, FrameScrolling,
FrameMarginWidth, FrameLongDesc, FrameMarginHeight, FrameName, FrameContentDocument, FrameContentWindow,
FrameNoResize, FrameWidth, FrameHeight, IFrameLongDesc, IFrameAlign,
IFrameFrameBorder, IFrameSrc, IFrameName, IFrameHeight,
......@@ -150,7 +118,7 @@ namespace KJS {
ElementInnerHTML, ElementId, ElementDir, ElementLang,
ElementClassName, ElementInnerText, ElementDocument, ElementChildren, ElementContentEditable,
ElementIsContentEditable, ElementOuterHTML, ElementOuterText
};
};
private:
static JSValue* framesetNameGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot&);
static JSValue* frameWindowPropertyGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot&);
......@@ -159,8 +127,6 @@ namespace KJS {
};
WebCore::HTMLElement* toHTMLElement(JSValue*); // returns 0 if passed-in value is not a JSHTMLElement object
WebCore::HTMLTableCaptionElement* toHTMLTableCaptionElement(JSValue*); // returns 0 if passed-in value is not a JSHTMLElement object for a HTMLTableCaptionElement
WebCore::HTMLTableSectionElement* toHTMLTableSectionElement(JSValue*); // returns 0 if passed-in value is not a JSHTMLElement object for a HTMLTableSectionElement
KJS_DEFINE_PROTOTYPE(JSHTMLCollectionPrototype)
......
/*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006, 2007 Apple Inc.
* Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
......@@ -20,7 +20,7 @@
module html {
interface HTMLTableCaptionElement : HTMLElement {
interface [LegacyParent=KJS::JSHTMLElement, GenerateNativeConverter, GenerateConstructor] HTMLTableCaptionElement : HTMLElement {
attribute [ConvertNullToNullString] DOMString align;
......
/*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006, 2007 Apple Inc.
* Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
......@@ -20,7 +20,7 @@
module html {
interface HTMLTableCellElement : HTMLElement {
interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLTableCellElement : HTMLElement {
readonly attribute long cellIndex;
attribute [ConvertNullToNullString] DOMString abbr;
......
/*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006, 2007 Apple Inc.
* Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
......@@ -20,7 +20,7 @@
module html {
interface HTMLTableColElement : HTMLElement {
interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLTableColElement : HTMLElement {
attribute [ConvertNullToNullString] DOMString align;
attribute [ConvertNullToNullString] DOMString ch;
......
/*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006, 2007 Apple Inc.
* Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
......@@ -20,16 +20,16 @@
module html {
interface HTMLTableElement : HTMLElement {
interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLTableElement : HTMLElement {
// FIXME: the dom spec states that the following 3 attributes
// could raise excepetions on setting.
attribute HTMLTableCaptionElement caption
/*setter raises (DOMException)*/;
/*setter raises(DOMException)*/;
attribute HTMLTableSectionElement tHead
/*setter raises (DOMException)*/;
/*setter raises(DOMException)*/;
attribute HTMLTableSectionElement tFoot
/*setter raises (DOMException)*/;
/*setter raises(DOMException)*/;
readonly attribute HTMLCollection rows;
readonly attribute HTMLCollection tBodies;
......@@ -54,10 +54,10 @@ module html {
void deleteCaption();
HTMLElement insertRow(in long index)
raises (DOMException);
raises(DOMException);
void deleteRow(in long index)
raises (DOMException);
raises(DOMException);
};
......
/*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006, 2007 Apple Inc.
* Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
......@@ -20,7 +20,7 @@
module html {
interface HTMLTableRowElement : HTMLElement {
interface [LegacyParent=KJS::JSHTMLElement, GenerateConstructor] HTMLTableRowElement : HTMLElement {
readonly attribute long rowIndex;
readonly attribute long sectionRowIndex;
......
/*
* Copyright (C) 2006 Apple Computer, Inc.
* Copyright (C) 2006, 2007 Apple Inc.
* Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
......@@ -20,7 +20,7 @@
module html {
interface HTMLTableSectionElement : HTMLElement {
interface [LegacyParent=KJS::JSHTMLElement, GenerateNativeConverter, GenerateConstructor] HTMLTableSectionElement : HTMLElement {
attribute [ConvertNullToNullString] DOMString align;
attribute [ConvertNullToNullString] DOMString ch;
......
/*
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
* Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -124,12 +124,12 @@ module window {
attribute HTMLScriptElementConstructor HTMLScriptElement;
attribute HTMLSelectElementConstructor HTMLSelectElement;
attribute HTMLStyleElementConstructor HTMLStyleElement;
// attribute HTMLTableCaptionElementConstructor HTMLTableCaptionElement;
// attribute HTMLTableCellElementConstructor HTMLTableCellElement;
// attribute HTMLTableColElementConstructor HTMLTableColElement;
// attribute HTMLTableElementConstructor HTMLTableElement;