+2006-05-18 Anders Carlsson <acarlsson@apple.com>
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=8964
+ Autogenerate more HTML classes
+
+ * fast/dom/prototype-chain-expected.txt:
+ Update test result.
+
2006-05-17 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
[object HTMLDocument]
------ [object DIV] (7 prototypes) -----
+----- [object DIV] (8 prototypes) -----
[object Object]
[object HTMLElement]
+[object HTMLDivElement]
+
----- [object UIEvent] (4 prototypes) -----
[object Object]
+2006-05-18 Anders Carlsson <acarlsson@apple.com>
+
+ Reviewed by Darin.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=8964
+ Autogenerate more HTML classes
+
+ * DerivedSources.make:
+ * WebCore.xcodeproj/project.pbxproj:
+ Add new files.
+
+ * bindings/js/JSHTMLElementWrapperFactory.cpp:
+ (WebCore::createAnchorWrapper):
+ (WebCore::createAppletWrapper):
+ (WebCore::createDivWrapper):
+ (WebCore::createDirectoryWrapper):
+ (WebCore::createDListWrapper):
+ (WebCore::createHtmlWrapper):
+ (WebCore::createOListWrapper):
+ (WebCore::createUListWrapper):
+ (WebCore::createJSWrapper):
+ Add wrappers.
+
+ * bindings/js/kjs_html.cpp:
+ (KJS::):
+ (KJS::JSHTMLElement::classInfo):
+ (KJS::JSHTMLElement::accessors):
+ (KJS::HTMLElementFunction::callAsFunction):
+ * bindings/js/kjs_html.h:
+ (KJS::JSHTMLElement::):
+ Delete the old implementations.
+
+ * html/HTMLAnchorElement.cpp:
+ (WebCore::HTMLAnchorElement::hash):
+ (WebCore::HTMLAnchorElement::host):
+ (WebCore::HTMLAnchorElement::hostname):
+ (WebCore::HTMLAnchorElement::pathname):
+ (WebCore::HTMLAnchorElement::port):
+ (WebCore::HTMLAnchorElement::protocol):
+ (WebCore::HTMLAnchorElement::search):
+ (WebCore::HTMLAnchorElement::text):
+ * html/HTMLAnchorElement.h:
+ Add some new accessor methods which used to be in kjs_html.cpp.
+
+ * html/HTMLAnchorElement.idl: Added.
+ * html/HTMLAppletElement.idl: Added.
+ * html/HTMLDListElement.idl: Added.
+ * html/HTMLDirectoryElement.idl: Added.
+ * html/HTMLDivElement.idl: Added.
+ * html/HTMLHtmlElement.idl: Added.
+ * html/HTMLOListElement.idl: Added.
+ * html/HTMLUListElement.idl: Added.
+
2006-05-17 David Hyatt <hyatt@apple.com>
Convert the width map for glyphs into the same new HashMap-style as the
JSElement.h \
JSEvent.h \
JSEntity.h \
+ JSHTMLAppletElement.h \
+ JSHTMLAnchorElement.h \
JSHTMLButtonElement.h \
JSHTMLBaseElement.h \
JSHTMLCanvasElement.h \
JSHTMLDocument.h \
+ JSHTMLDirectoryElement.h \
+ JSHTMLDivElement.h \
+ JSHTMLDListElement.h \
JSHTMLElement.h \
JSHTMLHeadElement.h \
+ JSHTMLHtmlElement.h \
JSHTMLInputElement.h \
JSHTMLInputElementBaseTable.cpp \
JSHTMLLinkElement.h \
JSHTMLOptionElement.h \
JSHTMLOptGroupElement.h \
JSHTMLMetaElement.h \
+ JSHTMLOListElement.h \
JSHTMLStyleElement.h \
JSHTMLTextAreaElement.h \
JSHTMLTitleElement.h \
+ JSHTMLUListElement.h \
JSKeyboardEvent.h \
JSMouseEvent.h \
JSMutationEvent.h \
1A494ED60A123F1A00FDAFC1 /* DocumentFragment.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A494ED50A123F1A00FDAFC1 /* DocumentFragment.idl */; };
1A494EDE0A123F4C00FDAFC1 /* JSDocumentFragment.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A494EDC0A123F4C00FDAFC1 /* JSDocumentFragment.cpp */; };
1A494EDF0A123F4C00FDAFC1 /* JSDocumentFragment.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A494EDD0A123F4C00FDAFC1 /* JSDocumentFragment.h */; };
+ 1A4A2DBB0A1B83A800C807F8 /* HTMLAppletElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A4A2DBA0A1B83A800C807F8 /* HTMLAppletElement.idl */; };
+ 1A4A2DD40A1B845100C807F8 /* HTMLAnchorElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A4A2DD30A1B845100C807F8 /* HTMLAnchorElement.idl */; };
+ 1A4A2DEF0A1B852A00C807F8 /* JSHTMLAnchorElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A4A2DEB0A1B852A00C807F8 /* JSHTMLAnchorElement.cpp */; };
+ 1A4A2DF00A1B852A00C807F8 /* JSHTMLAnchorElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A4A2DEC0A1B852A00C807F8 /* JSHTMLAnchorElement.h */; };
+ 1A4A2DF10A1B852A00C807F8 /* JSHTMLAppletElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A4A2DED0A1B852A00C807F8 /* JSHTMLAppletElement.cpp */; };
+ 1A4A2DF20A1B852A00C807F8 /* JSHTMLAppletElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A4A2DEE0A1B852A00C807F8 /* JSHTMLAppletElement.h */; };
1A5D938E0A0B9ACC00B1121F /* XPathParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A5D938C0A0B9ACC00B1121F /* XPathParser.cpp */; };
1A5D938F0A0B9ACC00B1121F /* XPathParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A5D938D0A0B9ACC00B1121F /* XPathParser.h */; };
1A6931760A0CD4FA00C127FE /* XPathValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A6931740A0CD4FA00C127FE /* XPathValue.h */; };
1A762C7A0A074F2600989F5B /* JSXPathResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A762C720A074F2600989F5B /* JSXPathResult.h */; };
1A820D910A13EBA600AF843C /* ImageDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A820D8F0A13EBA600AF843C /* ImageDocument.cpp */; settings = {COMPILER_FLAGS = "-xobjective-c++"; }; };
1A820D920A13EBA600AF843C /* ImageDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A820D900A13EBA600AF843C /* ImageDocument.h */; };
+ 1A85B17E0A1B183600D8C87C /* HTMLHtmlElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A85B17D0A1B183600D8C87C /* HTMLHtmlElement.idl */; };
+ 1A85B18F0A1B18A200D8C87C /* JSHTMLHtmlElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A85B18D0A1B18A200D8C87C /* JSHTMLHtmlElement.cpp */; };
+ 1A85B1900A1B18A200D8C87C /* JSHTMLHtmlElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A85B18E0A1B18A200D8C87C /* JSHTMLHtmlElement.h */; };
+ 1A85B1CC0A1B22DC00D8C87C /* HTMLOListElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A85B1CB0A1B22DC00D8C87C /* HTMLOListElement.idl */; };
+ 1A85B1D20A1B235B00D8C87C /* HTMLDListElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */; };
+ 1A85B1D60A1B236C00D8C87C /* HTMLUListElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A85B1D50A1B236C00D8C87C /* HTMLUListElement.idl */; };
+ 1A85B1DA0A1B23A400D8C87C /* HTMLDirectoryElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A85B1D90A1B23A400D8C87C /* HTMLDirectoryElement.idl */; };
+ 1A85B1E60A1B240500D8C87C /* JSHTMLDirectoryElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A85B1E00A1B240500D8C87C /* JSHTMLDirectoryElement.cpp */; };
+ 1A85B1E70A1B240500D8C87C /* JSHTMLDirectoryElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A85B1E10A1B240500D8C87C /* JSHTMLDirectoryElement.h */; };
+ 1A85B1E80A1B240500D8C87C /* JSHTMLDListElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A85B1E20A1B240500D8C87C /* JSHTMLDListElement.cpp */; };
+ 1A85B1E90A1B240500D8C87C /* JSHTMLDListElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A85B1E30A1B240500D8C87C /* JSHTMLDListElement.h */; };
+ 1A85B1EA0A1B240500D8C87C /* JSHTMLOListElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A85B1E40A1B240500D8C87C /* JSHTMLOListElement.cpp */; };
+ 1A85B1EB0A1B240500D8C87C /* JSHTMLOListElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A85B1E50A1B240500D8C87C /* JSHTMLOListElement.h */; };
+ 1A85B2100A1B258700D8C87C /* JSHTMLUListElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A85B20E0A1B258700D8C87C /* JSHTMLUListElement.cpp */; };
+ 1A85B2110A1B258700D8C87C /* JSHTMLUListElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A85B20F0A1B258700D8C87C /* JSHTMLUListElement.h */; };
+ 1A85B2AE0A1B2A6D00D8C87C /* HTMLDivElement.idl in Resources */ = {isa = PBXBuildFile; fileRef = 1A85B2AD0A1B2A6D00D8C87C /* HTMLDivElement.idl */; };
+ 1A85B2B60A1B2AC700D8C87C /* JSHTMLDivElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A85B2B40A1B2AC700D8C87C /* JSHTMLDivElement.cpp */; };
+ 1A85B2B70A1B2AC700D8C87C /* JSHTMLDivElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A85B2B50A1B2AC700D8C87C /* JSHTMLDivElement.h */; };
1A9EF4570A1B957D00332B63 /* JSCanvasRenderingContext2DCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A9EF4560A1B957D00332B63 /* JSCanvasRenderingContext2DCustom.cpp */; };
550A0BC9085F6039007353D6 /* QualifiedName.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 550A0BC7085F6039007353D6 /* QualifiedName.cpp */; };
550A0BCA085F6039007353D6 /* QualifiedName.h in Headers */ = {isa = PBXBuildFile; fileRef = 550A0BC8085F6039007353D6 /* QualifiedName.h */; };
1A494ED50A123F1A00FDAFC1 /* DocumentFragment.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DocumentFragment.idl; sourceTree = "<group>"; };
1A494EDC0A123F4C00FDAFC1 /* JSDocumentFragment.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSDocumentFragment.cpp; sourceTree = "<group>"; };
1A494EDD0A123F4C00FDAFC1 /* JSDocumentFragment.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSDocumentFragment.h; sourceTree = "<group>"; };
+ 1A4A2DBA0A1B83A800C807F8 /* HTMLAppletElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLAppletElement.idl; sourceTree = "<group>"; };
+ 1A4A2DD30A1B845100C807F8 /* HTMLAnchorElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLAnchorElement.idl; sourceTree = "<group>"; };
+ 1A4A2DEB0A1B852A00C807F8 /* JSHTMLAnchorElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLAnchorElement.cpp; sourceTree = "<group>"; };
+ 1A4A2DEC0A1B852A00C807F8 /* JSHTMLAnchorElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLAnchorElement.h; sourceTree = "<group>"; };
+ 1A4A2DED0A1B852A00C807F8 /* JSHTMLAppletElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLAppletElement.cpp; sourceTree = "<group>"; };
+ 1A4A2DEE0A1B852A00C807F8 /* JSHTMLAppletElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLAppletElement.h; sourceTree = "<group>"; };
1A5D938C0A0B9ACC00B1121F /* XPathParser.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = XPathParser.cpp; sourceTree = "<group>"; };
1A5D938D0A0B9ACC00B1121F /* XPathParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = XPathParser.h; sourceTree = "<group>"; };
1A6931740A0CD4FA00C127FE /* XPathValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPathValue.h; sourceTree = "<group>"; };
1A762C720A074F2600989F5B /* JSXPathResult.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSXPathResult.h; sourceTree = "<group>"; };
1A820D8F0A13EBA600AF843C /* ImageDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ImageDocument.cpp; sourceTree = "<group>"; };
1A820D900A13EBA600AF843C /* ImageDocument.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ImageDocument.h; sourceTree = "<group>"; };
+ 1A85B17D0A1B183600D8C87C /* HTMLHtmlElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLHtmlElement.idl; sourceTree = "<group>"; };
+ 1A85B18D0A1B18A200D8C87C /* JSHTMLHtmlElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLHtmlElement.cpp; sourceTree = "<group>"; };
+ 1A85B18E0A1B18A200D8C87C /* JSHTMLHtmlElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLHtmlElement.h; sourceTree = "<group>"; };
+ 1A85B1CB0A1B22DC00D8C87C /* HTMLOListElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLOListElement.idl; sourceTree = "<group>"; };
+ 1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDListElement.idl; sourceTree = "<group>"; };
+ 1A85B1D50A1B236C00D8C87C /* HTMLUListElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLUListElement.idl; sourceTree = "<group>"; };
+ 1A85B1D90A1B23A400D8C87C /* HTMLDirectoryElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDirectoryElement.idl; sourceTree = "<group>"; };
+ 1A85B1E00A1B240500D8C87C /* JSHTMLDirectoryElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDirectoryElement.cpp; sourceTree = "<group>"; };
+ 1A85B1E10A1B240500D8C87C /* JSHTMLDirectoryElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLDirectoryElement.h; sourceTree = "<group>"; };
+ 1A85B1E20A1B240500D8C87C /* JSHTMLDListElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDListElement.cpp; sourceTree = "<group>"; };
+ 1A85B1E30A1B240500D8C87C /* JSHTMLDListElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLDListElement.h; sourceTree = "<group>"; };
+ 1A85B1E40A1B240500D8C87C /* JSHTMLOListElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLOListElement.cpp; sourceTree = "<group>"; };
+ 1A85B1E50A1B240500D8C87C /* JSHTMLOListElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLOListElement.h; sourceTree = "<group>"; };
+ 1A85B20E0A1B258700D8C87C /* JSHTMLUListElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLUListElement.cpp; sourceTree = "<group>"; };
+ 1A85B20F0A1B258700D8C87C /* JSHTMLUListElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLUListElement.h; sourceTree = "<group>"; };
+ 1A85B2AD0A1B2A6D00D8C87C /* HTMLDivElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDivElement.idl; sourceTree = "<group>"; };
+ 1A85B2B40A1B2AC700D8C87C /* JSHTMLDivElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLDivElement.cpp; sourceTree = "<group>"; };
+ 1A85B2B50A1B2AC700D8C87C /* JSHTMLDivElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSHTMLDivElement.h; sourceTree = "<group>"; };
1A9EF4560A1B957D00332B63 /* JSCanvasRenderingContext2DCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCanvasRenderingContext2DCustom.cpp; sourceTree = "<group>"; };
2D90660B0665D937006B6F1A /* ClipboardMac.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = ClipboardMac.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
2D90660C0665D937006B6F1A /* ClipboardMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ClipboardMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
65DF322E09D1DDBC000BE325 /* JSEntity.h */,
14E8378309F85D1C00B85AE4 /* JSEvent.cpp */,
14E8378D09F85D4F00B85AE4 /* JSEvent.h */,
+ 1A4A2DEB0A1B852A00C807F8 /* JSHTMLAnchorElement.cpp */,
+ 1A4A2DEC0A1B852A00C807F8 /* JSHTMLAnchorElement.h */,
+ 1A4A2DED0A1B852A00C807F8 /* JSHTMLAppletElement.cpp */,
+ 1A4A2DEE0A1B852A00C807F8 /* JSHTMLAppletElement.h */,
A80E7B080A19D606007FB8C5 /* JSHTMLBaseElement.cpp */,
A80E7B070A19D606007FB8C5 /* JSHTMLBaseElement.h */,
A80E7E960A1A83E3007FB8C5 /* JSHTMLButtonElement.cpp */,
A80E7E950A1A83E3007FB8C5 /* JSHTMLButtonElement.h */,
938E665F09F09B81008A48EC /* JSHTMLCanvasElement.cpp */,
938E666109F09B87008A48EC /* JSHTMLCanvasElement.h */,
+ 1A85B1E00A1B240500D8C87C /* JSHTMLDirectoryElement.cpp */,
+ 1A85B1E10A1B240500D8C87C /* JSHTMLDirectoryElement.h */,
+ 1A85B2B40A1B2AC700D8C87C /* JSHTMLDivElement.cpp */,
+ 1A85B2B50A1B2AC700D8C87C /* JSHTMLDivElement.h */,
+ 1A85B1E20A1B240500D8C87C /* JSHTMLDListElement.cpp */,
+ 1A85B1E30A1B240500D8C87C /* JSHTMLDListElement.h */,
1A494E320A12358A00FDAFC1 /* JSHTMLDocument.cpp */,
1A494E330A12358B00FDAFC1 /* JSHTMLDocument.h */,
1A494BF80A122F4400FDAFC1 /* JSHTMLElement.cpp */,
1A494BF90A122F4400FDAFC1 /* JSHTMLElement.h */,
A80E7B0A0A19D606007FB8C5 /* JSHTMLHeadElement.cpp */,
A80E7B0B0A19D606007FB8C5 /* JSHTMLHeadElement.h */,
+ 1A85B18D0A1B18A200D8C87C /* JSHTMLHtmlElement.cpp */,
+ 1A85B18E0A1B18A200D8C87C /* JSHTMLHtmlElement.h */,
A80E7E8E0A1A83E3007FB8C5 /* JSHTMLInputElement.cpp */,
A80E7E8D0A1A83E3007FB8C5 /* JSHTMLInputElement.h */,
A80E7B060A19D606007FB8C5 /* JSHTMLLinkElement.cpp */,
A80E7B030A19D606007FB8C5 /* JSHTMLLinkElement.h */,
A80E7A150A19C3D6007FB8C5 /* JSHTMLMetaElement.cpp */,
A80E7A160A19C3D6007FB8C5 /* JSHTMLMetaElement.h */,
+ 1A85B1E40A1B240500D8C87C /* JSHTMLOListElement.cpp */,
+ 1A85B1E50A1B240500D8C87C /* JSHTMLOListElement.h */,
A80E7E920A1A83E3007FB8C5 /* JSHTMLOptGroupElement.cpp */,
A80E7E910A1A83E3007FB8C5 /* JSHTMLOptGroupElement.h */,
A80E7E900A1A83E3007FB8C5 /* JSHTMLOptionElement.cpp */,
A80E7E930A1A83E3007FB8C5 /* JSHTMLTextAreaElement.h */,
A80E7B090A19D606007FB8C5 /* JSHTMLTitleElement.cpp */,
A80E7B020A19D606007FB8C5 /* JSHTMLTitleElement.h */,
+ 1A85B20E0A1B258700D8C87C /* JSHTMLUListElement.cpp */,
+ 1A85B20F0A1B258700D8C87C /* JSHTMLUListElement.h */,
A86629CE09DA2B47009633A5 /* JSKeyboardEvent.cpp */,
A86629CD09DA2B47009633A5 /* JSKeyboardEvent.h */,
A86629CC09DA2B47009633A5 /* JSMouseEvent.cpp */,
A8136D360973A8E700D74463 /* FormDataList.h */,
A8CFF79A0A156978000A4234 /* HTMLAnchorElement.cpp */,
A8CFF7A10A156978000A4234 /* HTMLAnchorElement.h */,
+ 1A4A2DD30A1B845100C807F8 /* HTMLAnchorElement.idl */,
A871D4540A127CBC00B12A68 /* HTMLAppletElement.cpp */,
A871D4530A127CBC00B12A68 /* HTMLAppletElement.h */,
+ 1A4A2DBA0A1B83A800C807F8 /* HTMLAppletElement.idl */,
A8EA7D270A19385500A8EF5F /* HTMLAreaElement.cpp */,
A8EA7D260A19385500A8EF5F /* HTMLAreaElement.h */,
A871DC1E0A15205700B12A68 /* HTMLBaseElement.cpp */,
A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */,
A8EA79ED0A1916DF00A8EF5F /* HTMLDirectoryElement.cpp */,
A8EA79EE0A1916DF00A8EF5F /* HTMLDirectoryElement.h */,
+ 1A85B1D90A1B23A400D8C87C /* HTMLDirectoryElement.idl */,
A8EA7CA30A192B9C00A8EF5F /* HTMLDivElement.cpp */,
A8EA7CA90A192B9C00A8EF5F /* HTMLDivElement.h */,
+ 1A85B2AD0A1B2A6D00D8C87C /* HTMLDivElement.idl */,
A8EA79E90A1916DF00A8EF5F /* HTMLDListElement.cpp */,
A8EA79EB0A1916DF00A8EF5F /* HTMLDListElement.h */,
+ 1A85B1D10A1B235B00D8C87C /* HTMLDListElement.idl */,
F523D23B02DE4396018635CA /* HTMLDocument.cpp */,
F523D23C02DE4396018635CA /* HTMLDocument.h */,
1A494E290A12354300FDAFC1 /* HTMLDocument.idl */,
A8EA7CA10A192B9C00A8EF5F /* HTMLHRElement.h */,
A871DE1A0A152AC800B12A68 /* HTMLHtmlElement.cpp */,
A871DE1B0A152AC800B12A68 /* HTMLHtmlElement.h */,
+ 1A85B17D0A1B183600D8C87C /* HTMLHtmlElement.idl */,
A871DE180A152AC800B12A68 /* HTMLIFrameElement.cpp */,
A871DE1E0A152AC800B12A68 /* HTMLIFrameElement.h */,
A8EA7D290A19385500A8EF5F /* HTMLImageElement.cpp */,
A871D4500A127CBC00B12A68 /* HTMLObjectElement.h */,
A8EA79EF0A1916DF00A8EF5F /* HTMLOListElement.cpp */,
A8EA79E50A1916DF00A8EF5F /* HTMLOListElement.h */,
+ 1A85B1CB0A1B22DC00D8C87C /* HTMLOListElement.idl */,
A81369C3097374F500D74463 /* HTMLOptGroupElement.cpp */,
A81369C2097374F500D74463 /* HTMLOptGroupElement.h */,
A80E7E190A1A7CCB007FB8C5 /* HTMLOptGroupElement.idl */,
F523D25302DE4396018635CA /* HTMLTokenizer.h */,
A8EA79E70A1916DF00A8EF5F /* HTMLUListElement.cpp */,
A8EA79E60A1916DF00A8EF5F /* HTMLUListElement.h */,
+ 1A85B1D50A1B236C00D8C87C /* HTMLUListElement.idl */,
);
path = html;
sourceTree = "<group>";
A80E7B0E0A19D606007FB8C5 /* JSHTMLStyleElement.h in Headers */,
A80E7B110A19D606007FB8C5 /* JSHTMLBaseElement.h in Headers */,
A80E7B150A19D606007FB8C5 /* JSHTMLHeadElement.h in Headers */,
+ 1A85B1900A1B18A200D8C87C /* JSHTMLHtmlElement.h in Headers */,
+ 1A85B1E70A1B240500D8C87C /* JSHTMLDirectoryElement.h in Headers */,
+ 1A85B1E90A1B240500D8C87C /* JSHTMLDListElement.h in Headers */,
+ 1A85B1EB0A1B240500D8C87C /* JSHTMLOListElement.h in Headers */,
+ 1A85B2110A1B258700D8C87C /* JSHTMLUListElement.h in Headers */,
+ 1A85B2B70A1B2AC700D8C87C /* JSHTMLDivElement.h in Headers */,
+ 1A4A2DF00A1B852A00C807F8 /* JSHTMLAnchorElement.h in Headers */,
+ 1A4A2DF20A1B852A00C807F8 /* JSHTMLAppletElement.h in Headers */,
A80E7E650A1A82EC007FB8C5 /* JSHTMLInputElementBase.h in Headers */,
A80E7E970A1A83E3007FB8C5 /* JSHTMLInputElement.h in Headers */,
A80E7E990A1A83E3007FB8C5 /* JSHTMLOptionElement.h in Headers */,
A80E7AB50A19D1F1007FB8C5 /* HTMLLinkElement.idl in Resources */,
A80E7AB60A19D1F1007FB8C5 /* HTMLHeadElement.idl in Resources */,
A80E7AB70A19D1F1007FB8C5 /* HTMLStyleElement.idl in Resources */,
+ 1A85B17E0A1B183600D8C87C /* HTMLHtmlElement.idl in Resources */,
+ 1A85B1CC0A1B22DC00D8C87C /* HTMLOListElement.idl in Resources */,
+ 1A85B1D20A1B235B00D8C87C /* HTMLDListElement.idl in Resources */,
+ 1A85B1D60A1B236C00D8C87C /* HTMLUListElement.idl in Resources */,
+ 1A85B1DA0A1B23A400D8C87C /* HTMLDirectoryElement.idl in Resources */,
+ 1A85B2AE0A1B2A6D00D8C87C /* HTMLDivElement.idl in Resources */,
+ 1A4A2DBB0A1B83A800C807F8 /* HTMLAppletElement.idl in Resources */,
+ 1A4A2DD40A1B845100C807F8 /* HTMLAnchorElement.idl in Resources */,
A80E7E1A0A1A7CCB007FB8C5 /* HTMLTextAreaElement.idl in Resources */,
A80E7E1B0A1A7CCB007FB8C5 /* HTMLInputElement.idl in Resources */,
A80E7E1C0A1A7CCB007FB8C5 /* HTMLOptionElement.idl in Resources */,
A80E7B120A19D606007FB8C5 /* JSHTMLBaseElement.cpp in Sources */,
A80E7B130A19D606007FB8C5 /* JSHTMLTitleElement.cpp in Sources */,
A80E7B140A19D606007FB8C5 /* JSHTMLHeadElement.cpp in Sources */,
+ 1A85B18F0A1B18A200D8C87C /* JSHTMLHtmlElement.cpp in Sources */,
+ 1A85B1E60A1B240500D8C87C /* JSHTMLDirectoryElement.cpp in Sources */,
+ 1A85B1E80A1B240500D8C87C /* JSHTMLDListElement.cpp in Sources */,
+ 1A85B1EA0A1B240500D8C87C /* JSHTMLOListElement.cpp in Sources */,
+ 1A85B2100A1B258700D8C87C /* JSHTMLUListElement.cpp in Sources */,
+ 1A85B2B60A1B2AC700D8C87C /* JSHTMLDivElement.cpp in Sources */,
+ 1A4A2DEF0A1B852A00C807F8 /* JSHTMLAnchorElement.cpp in Sources */,
+ 1A4A2DF10A1B852A00C807F8 /* JSHTMLAppletElement.cpp in Sources */,
A80E7E660A1A82EC007FB8C5 /* JSHTMLInputElementBase.cpp in Sources */,
A80E7E980A1A83E3007FB8C5 /* JSHTMLInputElement.cpp in Sources */,
A80E7E9A0A1A83E3007FB8C5 /* JSHTMLOptionElement.cpp in Sources */,
#include "config.h"
#include "JSHTMLElementWrapperFactory.h"
+#include "HTMLAnchorElement.h"
+#include "HTMLAppletElement.h"
#include "HTMLBaseElement.h"
#include "HTMLButtonElement.h"
#include "HTMLCanvasElement.h"
+#include "HTMLDivElement.h"
+#include "HTMLDirectoryElement.h"
+#include "HTMLDListElement.h"
#include "HTMLHeadElement.h"
+#include "HTMLHtmlElement.h"
#include "HTMLInputElement.h"
#include "HTMLLinkElement.h"
#include "HTMLMetaElement.h"
+#include "HTMLOListElement.h"
#include "HTMLOptGroupElement.h"
#include "HTMLOptionElement.h"
#include "HTMLStyleElement.h"
#include "HTMLTextAreaElement.h"
#include "HTMLTitleElement.h"
+#include "HTMLUListElement.h"
#include "HTMLNames.h"
+#include "JSHTMLAnchorElement.h"
+#include "JSHTMLAppletElement.h"
#include "JSHTMLBaseElement.h"
#include "JSHTMLButtonElement.h"
#include "JSHTMLCanvasElement.h"
+#include "JSHTMLDirectoryElement.h"
+#include "JSHTMLDivElement.h"
+#include "JSHTMLDListElement.h"
#include "JSHTMLHeadElement.h"
+#include "JSHTMLHtmlElement.h"
#include "JSHTMLInputElement.h"
#include "JSHTMLLinkElement.h"
#include "JSHTMLMetaElement.h"
+#include "JSHTMLOListElement.h"
#include "JSHTMLOptGroupElement.h"
#include "JSHTMLOptionElement.h"
#include "JSHTMLStyleElement.h"
#include "JSHTMLTextAreaElement.h"
#include "JSHTMLTitleElement.h"
+#include "JSHTMLUListElement.h"
#include "kjs_html.h"
typedef DOMNode* (*CreateHTMLElementWrapperFunction)(ExecState*, PassRefPtr<HTMLElement>);
+static DOMNode* createAnchorWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLAnchorElement(exec, static_cast<HTMLAnchorElement*>(element.get()));
+}
+
+static DOMNode* createAppletWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLAppletElement(exec, static_cast<HTMLAppletElement*>(element.get()));
+}
+
static DOMNode* createBaseWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
{
return new JSHTMLBaseElement(exec, static_cast<HTMLBaseElement*>(element.get()));
return new JSHTMLCanvasElement(exec, static_cast<HTMLCanvasElement*>(element.get()));
}
+static DOMNode* createDivWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLDivElement(exec, static_cast<HTMLDivElement*>(element.get()));
+}
+
+static DOMNode* createDirectoryWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLDirectoryElement(exec, static_cast<HTMLDirectoryElement*>(element.get()));
+}
+
+static DOMNode* createDListWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLDListElement(exec, static_cast<HTMLDListElement*>(element.get()));
+}
+
static DOMNode* createHeadWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
{
return new JSHTMLHeadElement(exec, static_cast<HTMLHeadElement*>(element.get()));
}
+static DOMNode* createHtmlWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLHtmlElement(exec, static_cast<HTMLHtmlElement*>(element.get()));
+}
+
static DOMNode* createLinkWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
{
return new JSHTMLLinkElement(exec, static_cast<HTMLLinkElement*>(element.get()));
return new JSHTMLMetaElement(exec, static_cast<HTMLMetaElement*>(element.get()));
}
+static DOMNode* createOListWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLOListElement(exec, static_cast<HTMLOListElement*>(element.get()));
+}
+
static DOMNode* createOptGroupWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
{
return new JSHTMLOptGroupElement(exec, static_cast<HTMLOptGroupElement*>(element.get()));
return new JSHTMLTitleElement(exec, static_cast<HTMLTitleElement*>(element.get()));
}
+static DOMNode* createUListWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
+{
+ return new JSHTMLUListElement(exec, static_cast<HTMLUListElement*>(element.get()));
+}
+
DOMNode* createJSWrapper(ExecState* exec, PassRefPtr<HTMLElement> element)
{
static HashMap<WebCore::AtomicStringImpl*, CreateHTMLElementWrapperFunction> map;
if (map.isEmpty()) {
+ map.set(aTag.localName().impl(), createAnchorWrapper);
+ map.set(appletTag.localName().impl(), createAppletWrapper);
map.set(baseTag.localName().impl(), createBaseWrapper);
map.set(buttonTag.localName().impl(), createButtonWrapper);
map.set(canvasTag.localName().impl(), createCanvasWrapper);
+ map.set(dirTag.localName().impl(), createDirectoryWrapper);
+ map.set(divTag.localName().impl(), createDivWrapper);
+ map.set(dlTag.localName().impl(), createDListWrapper);
map.set(headTag.localName().impl(), createHeadWrapper);
+ map.set(htmlTag.localName().impl(), createHtmlWrapper);
map.set(inputTag.localName().impl(), createInputWrapper);
map.set(linkTag.localName().impl(), createLinkWrapper);
map.set(metaTag.localName().impl(), createMetaWrapper);
+ map.set(olTag.localName().impl(), createOListWrapper);
map.set(optgroupTag.localName().impl(), createOptGroupWrapper);
map.set(optionTag.localName().impl(), createOptionWrapper);
map.set(styleTag.localName().impl(), createStyleWrapper);
map.set(textareaTag.localName().impl(), createTextAreaWrapper);
map.set(titleTag.localName().impl(), createTitleWrapper);
+ map.set(ulTag.localName().impl(), createUListWrapper);
}
CreateHTMLElementWrapperFunction f = map.get(element->localName().impl());
if (f)
#include "DocLoader.h"
#include "EventNames.h"
#include "Frame.h"
-#include "HTMLAnchorElement.h"
#include "HTMLAppletElement.h"
#include "HTMLAreaElement.h"
#include "HTMLBaseFontElement.h"
#include "HTMLBlockquoteElement.h"
#include "HTMLBodyElement.h"
#include "HTMLBRElement.h"
-#include "HTMLDirectoryElement.h"
-#include "HTMLDivElement.h"
-#include "HTMLDListElement.h"
#include "HTMLDocument.h"
#include "HTMLEmbedElement.h"
#include "HTMLFieldSetElement.h"
#include "HTMLModElement.h"
#include "HTMLNames.h"
#include "HTMLObjectElement.h"
-#include "HTMLOListElement.h"
#include "HTMLOptionElement.h"
#include "HTMLOptionsCollection.h"
#include "HTMLParagraphElement.h"
#include "HTMLTableRowElement.h"
#include "HTMLTableSectionElement.h"
#include "HTMLQuoteElement.h"
-#include "HTMLUListElement.h"
#include "NameNodeList.h"
#include "RenderLayer.h"
#include "Text.h"
// -------------------------------------------------------------------------
-const ClassInfo JSHTMLElement::a_info = { "HTMLAnchorElement", &JSHTMLElement::info, &HTMLAnchorElementTable, 0 };
-const ClassInfo JSHTMLElement::applet_info = { "HTMLAppletElement", &JSHTMLElement::info, &HTMLAppletElementTable, 0 };
const ClassInfo JSHTMLElement::area_info = { "HTMLAreaElement", &JSHTMLElement::info, &HTMLAreaElementTable, 0 };
const ClassInfo JSHTMLElement::baseFont_info = { "HTMLBaseFontElement", &JSHTMLElement::info, &HTMLBaseFontElementTable, 0 };
const ClassInfo JSHTMLElement::blockQuote_info = { "HTMLBlockQuoteElement", &JSHTMLElement::info, &HTMLBlockQuoteElementTable, 0 };
const ClassInfo JSHTMLElement::br_info = { "HTMLBRElement", &JSHTMLElement::info, &HTMLBRElementTable, 0 };
const ClassInfo JSHTMLElement::caption_info = { "HTMLTableCaptionElement", &JSHTMLElement::info, &HTMLTableCaptionElementTable, 0 };
const ClassInfo JSHTMLElement::col_info = { "HTMLTableColElement", &JSHTMLElement::info, &HTMLTableColElementTable, 0 };
-const ClassInfo JSHTMLElement::dir_info = { "HTMLDirectoryElement", &JSHTMLElement::info, &HTMLDirectoryElementTable, 0 };
-const ClassInfo JSHTMLElement::div_info = { "HTMLDivElement", &JSHTMLElement::info, &HTMLDivElementTable, 0 };
-const ClassInfo JSHTMLElement::dl_info = { "HTMLDListElement", &JSHTMLElement::info, &HTMLDListElementTable, 0 };
const ClassInfo JSHTMLElement::embed_info = { "HTMLEmbedElement", &JSHTMLElement::info, &HTMLEmbedElementTable, 0 };
const ClassInfo JSHTMLElement::fieldSet_info = { "HTMLFieldSetElement", &JSHTMLElement::info, &HTMLFieldSetElementTable, 0 };
const ClassInfo JSHTMLElement::font_info = { "HTMLFontElement", &JSHTMLElement::info, &HTMLFontElementTable, 0 };
const ClassInfo JSHTMLElement::frame_info = { "HTMLFrameElement", &JSHTMLElement::info, &HTMLFrameElementTable, 0 };
const ClassInfo JSHTMLElement::heading_info = { "HTMLHeadingElement", &JSHTMLElement::info, &HTMLHeadingElementTable, 0 };
const ClassInfo JSHTMLElement::hr_info = { "HTMLHRElement", &JSHTMLElement::info, &HTMLHRElementTable, 0 };
-const ClassInfo JSHTMLElement::html_info = { "HTMLHtmlElement", &JSHTMLElement::info, &HTMLHtmlElementTable, 0 };
const ClassInfo JSHTMLElement::iFrame_info = { "HTMLIFrameElement", &JSHTMLElement::info, &HTMLIFrameElementTable, 0 };
const ClassInfo JSHTMLElement::img_info = { "HTMLImageElement", &JSHTMLElement::info, &HTMLImageElementTable, 0 };
const ClassInfo JSHTMLElement::info = { "HTMLElement", &JSElement::info, &HTMLElementTable, 0 };
const ClassInfo JSHTMLElement::menu_info = { "HTMLMenuElement", &JSHTMLElement::info, &HTMLMenuElementTable, 0 };
const ClassInfo JSHTMLElement::mod_info = { "HTMLModElement", &JSHTMLElement::info, &HTMLModElementTable, 0 };
const ClassInfo JSHTMLElement::object_info = { "HTMLObjectElement", &JSHTMLElement::info, &HTMLObjectElementTable, 0 };
-const ClassInfo JSHTMLElement::ol_info = { "HTMLOListElement", &JSHTMLElement::info, &HTMLOListElementTable, 0 };
const ClassInfo JSHTMLElement::p_info = { "HTMLParagraphElement", &JSHTMLElement::info, &HTMLParagraphElementTable, 0 };
const ClassInfo JSHTMLElement::param_info = { "HTMLParamElement", &JSHTMLElement::info, &HTMLParamElementTable, 0 };
const ClassInfo JSHTMLElement::pre_info = { "HTMLPreElement", &JSHTMLElement::info, &HTMLPreElementTable, 0 };
const ClassInfo JSHTMLElement::tablecell_info = { "HTMLTableCellElement", &JSHTMLElement::info, &HTMLTableCellElementTable, 0 };
const ClassInfo JSHTMLElement::tablesection_info = { "HTMLTableSectionElement", &JSHTMLElement::info, &HTMLTableSectionElementTable, 0 };
const ClassInfo JSHTMLElement::tr_info = { "HTMLTableRowElement", &JSHTMLElement::info, &HTMLTableRowElementTable, 0 };
-const ClassInfo JSHTMLElement::ul_info = { "HTMLUListElement", &JSHTMLElement::info, &HTMLUListElementTable, 0 };
const ClassInfo* JSHTMLElement::classInfo() const
{
static HashMap<WebCore::AtomicStringImpl*, const ClassInfo*> classInfoMap;
if (classInfoMap.isEmpty()) {
- classInfoMap.set(appletTag.localName().impl(), &applet_info);
classInfoMap.set(areaTag.localName().impl(), &area_info);
classInfoMap.set(basefontTag.localName().impl(), &baseFont_info);
classInfoMap.set(blockquoteTag.localName().impl(), &blockQuote_info);
classInfoMap.set(colTag.localName().impl(), &col_info);
classInfoMap.set(colgroupTag.localName().impl(), &col_info);
classInfoMap.set(delTag.localName().impl(), &mod_info);
- classInfoMap.set(dirTag.localName().impl(), &dir_info);
- classInfoMap.set(divTag.localName().impl(), &div_info);
- classInfoMap.set(dlTag.localName().impl(), &dl_info);
classInfoMap.set(embedTag.localName().impl(), &embed_info);
classInfoMap.set(fieldsetTag.localName().impl(), &fieldSet_info);
classInfoMap.set(fontTag.localName().impl(), &font_info);
classInfoMap.set(h5Tag.localName().impl(), &heading_info);
classInfoMap.set(h6Tag.localName().impl(), &heading_info);
classInfoMap.set(hrTag.localName().impl(), &hr_info);
- classInfoMap.set(htmlTag.localName().impl(), &html_info);
classInfoMap.set(iframeTag.localName().impl(), &iFrame_info);
classInfoMap.set(imgTag.localName().impl(), &img_info);
classInfoMap.set(insTag.localName().impl(), &mod_info);
classInfoMap.set(marqueeTag.localName().impl(), &marquee_info);
classInfoMap.set(menuTag.localName().impl(), &menu_info);
classInfoMap.set(objectTag.localName().impl(), &object_info);
- classInfoMap.set(olTag.localName().impl(), &ol_info);
classInfoMap.set(pTag.localName().impl(), &p_info);
classInfoMap.set(paramTag.localName().impl(), ¶m_info);
classInfoMap.set(preTag.localName().impl(), &pre_info);
classInfoMap.set(thTag.localName().impl(), &tablecell_info);
classInfoMap.set(theadTag.localName().impl(), &tablesection_info);
classInfoMap.set(trTag.localName().impl(), &tr_info);
- classInfoMap.set(ulTag.localName().impl(), &ul_info);
- classInfoMap.set(aTag.localName().impl(), &a_info);
}
HTMLElement* element = static_cast<HTMLElement*>(impl());
return &info;
}
-const JSHTMLElement::Accessors JSHTMLElement::html_accessors = { &JSHTMLElement::htmlGetter, &JSHTMLElement::htmlSetter };
const JSHTMLElement::Accessors JSHTMLElement::isIndex_accessors = { &JSHTMLElement::isIndexGetter, &JSHTMLElement::isIndexSetter };
const JSHTMLElement::Accessors JSHTMLElement::body_accessors = { &JSHTMLElement::bodyGetter, &JSHTMLElement::bodySetter };
const JSHTMLElement::Accessors JSHTMLElement::form_accessors = { &JSHTMLElement::formGetter, &JSHTMLElement::formSetter };
const JSHTMLElement::Accessors JSHTMLElement::label_accessors = { &JSHTMLElement::labelGetter, &JSHTMLElement::labelSetter };
const JSHTMLElement::Accessors JSHTMLElement::fieldSet_accessors = { &JSHTMLElement::fieldSetGetter, &JSHTMLElement::fieldSetSetter };
const JSHTMLElement::Accessors JSHTMLElement::legend_accessors = { &JSHTMLElement::legendGetter, &JSHTMLElement::legendSetter };
-const JSHTMLElement::Accessors JSHTMLElement::ul_accessors = { &JSHTMLElement::uListGetter, &JSHTMLElement::uListSetter };
-const JSHTMLElement::Accessors JSHTMLElement::ol_accessors = { &JSHTMLElement::oListGetter, &JSHTMLElement::oListSetter };
-const JSHTMLElement::Accessors JSHTMLElement::dl_accessors = { &JSHTMLElement::dListGetter, &JSHTMLElement::dListSetter };
-const JSHTMLElement::Accessors JSHTMLElement::dir_accessors = { &JSHTMLElement::dirGetter, &JSHTMLElement::dirSetter };
const JSHTMLElement::Accessors JSHTMLElement::menu_accessors = { &JSHTMLElement::menuGetter, &JSHTMLElement::menuSetter };
const JSHTMLElement::Accessors JSHTMLElement::li_accessors = { &JSHTMLElement::liGetter, &JSHTMLElement::liSetter };
-const JSHTMLElement::Accessors JSHTMLElement::div_accessors = { &JSHTMLElement::divGetter, &JSHTMLElement::divSetter };
const JSHTMLElement::Accessors JSHTMLElement::p_accessors = { &JSHTMLElement::paragraphGetter, &JSHTMLElement::paragraphSetter };
const JSHTMLElement::Accessors JSHTMLElement::heading_accessors = { &JSHTMLElement::headingGetter, &JSHTMLElement::headingSetter };
const JSHTMLElement::Accessors JSHTMLElement::blockQuote_accessors = { &JSHTMLElement::blockQuoteGetter, &JSHTMLElement::blockQuoteSetter };
const JSHTMLElement::Accessors JSHTMLElement::font_accessors = { &JSHTMLElement::fontGetter, &JSHTMLElement::fontSetter };
const JSHTMLElement::Accessors JSHTMLElement::hr_accessors = { &JSHTMLElement::hrGetter, &JSHTMLElement::hrSetter };
const JSHTMLElement::Accessors JSHTMLElement::mod_accessors = { &JSHTMLElement::modGetter, &JSHTMLElement::modSetter };
-const JSHTMLElement::Accessors JSHTMLElement::a_accessors = { &JSHTMLElement::anchorGetter, &JSHTMLElement::anchorSetter };
const JSHTMLElement::Accessors JSHTMLElement::img_accessors = { &JSHTMLElement::imageGetter, &JSHTMLElement::imageSetter };
const JSHTMLElement::Accessors JSHTMLElement::object_accessors = { &JSHTMLElement::objectGetter, &JSHTMLElement::objectSetter };
const JSHTMLElement::Accessors JSHTMLElement::param_accessors = { &JSHTMLElement::paramGetter, &JSHTMLElement::paramSetter };
-const JSHTMLElement::Accessors JSHTMLElement::applet_accessors = { &JSHTMLElement::appletGetter, &JSHTMLElement::appletSetter };
const JSHTMLElement::Accessors JSHTMLElement::embed_accessors = { &JSHTMLElement::embedGetter, &JSHTMLElement::embedSetter };
const JSHTMLElement::Accessors JSHTMLElement::map_accessors = { &JSHTMLElement::mapGetter, &JSHTMLElement::mapSetter };
const JSHTMLElement::Accessors JSHTMLElement::area_accessors = { &JSHTMLElement::areaGetter, &JSHTMLElement::areaSetter };
{
static HashMap<WebCore::AtomicStringImpl*, const Accessors*> accessorMap;
if (accessorMap.isEmpty()) {
- accessorMap.add(aTag.localName().impl(), &a_accessors);
- accessorMap.add(appletTag.localName().impl(), &applet_accessors);
accessorMap.add(areaTag.localName().impl(), &area_accessors);
accessorMap.add(basefontTag.localName().impl(), &baseFont_accessors);
accessorMap.add(blockquoteTag.localName().impl(), &blockQuote_accessors);
accessorMap.add(colTag.localName().impl(), &col_accessors);
accessorMap.add(colgroupTag.localName().impl(), &col_accessors);
accessorMap.add(delTag.localName().impl(), &mod_accessors);
- accessorMap.add(dirTag.localName().impl(), &dir_accessors);
- accessorMap.add(divTag.localName().impl(), &div_accessors);
- accessorMap.add(dlTag.localName().impl(), &dl_accessors);
accessorMap.add(embedTag.localName().impl(), &embed_accessors);
accessorMap.add(fieldsetTag.localName().impl(), &fieldSet_accessors);
accessorMap.add(fontTag.localName().impl(), &font_accessors);
accessorMap.add(h5Tag.localName().impl(), &heading_accessors);
accessorMap.add(h6Tag.localName().impl(), &heading_accessors);
accessorMap.add(hrTag.localName().impl(), &hr_accessors);
- accessorMap.add(htmlTag.localName().impl(), &html_accessors);
accessorMap.add(iframeTag.localName().impl(), &iFrame_accessors);
accessorMap.add(imgTag.localName().impl(), &img_accessors);
accessorMap.add(insTag.localName().impl(), &mod_accessors);
accessorMap.add(marqueeTag.localName().impl(), &marquee_accessors);
accessorMap.add(menuTag.localName().impl(), &menu_accessors);
accessorMap.add(objectTag.localName().impl(), &object_accessors);
- accessorMap.add(olTag.localName().impl(), &ol_accessors);
accessorMap.add(pTag.localName().impl(), &p_accessors);
accessorMap.add(paramTag.localName().impl(), ¶m_accessors);
accessorMap.add(preTag.localName().impl(), &pre_accessors);
accessorMap.add(theadTag.localName().impl(), &tablesection_accessors);
accessorMap.add(tfootTag.localName().impl(), &tablesection_accessors);
accessorMap.add(trTag.localName().impl(), &tr_accessors);
- accessorMap.add(ulTag.localName().impl(), &ul_accessors);
}
HTMLElement* element = static_cast<HTMLElement*>(impl());
contentEditable KJS::JSHTMLElement::ElementContentEditable DontDelete
isContentEditable KJS::JSHTMLElement::ElementIsContentEditable DontDelete|ReadOnly
@end
-@begin HTMLHtmlElementTable 1
- version KJS::JSHTMLElement::HtmlVersion DontDelete
-@end
@begin HTMLIsIndexElementTable 2
form KJS::JSHTMLElement::IsIndexForm DontDelete|ReadOnly
prompt KJS::JSHTMLElement::IsIndexPrompt DontDelete
align KJS::JSHTMLElement::LegendAlign DontDelete
focus KJS::JSHTMLElement::LegendFocus DontDelete|Function 0
@end
-@begin HTMLUListElementTable 2
- compact KJS::JSHTMLElement::UListCompact DontDelete
- type KJS::JSHTMLElement::UListType DontDelete
-@end
-@begin HTMLOListElementTable 3
- compact KJS::JSHTMLElement::OListCompact DontDelete
- start KJS::JSHTMLElement::OListStart DontDelete
- type KJS::JSHTMLElement::OListType DontDelete
-@end
-@begin HTMLDListElementTable 1
- compact KJS::JSHTMLElement::DListCompact DontDelete
-@end
-@begin HTMLDirectoryElementTable 1
- compact KJS::JSHTMLElement::DirectoryCompact DontDelete
-@end
@begin HTMLMenuElementTable 1
compact KJS::JSHTMLElement::MenuCompact DontDelete
@end
type KJS::JSHTMLElement::LIType DontDelete
value KJS::JSHTMLElement::LIValue DontDelete
@end
-@begin HTMLDivElementTable 1
- align KJS::JSHTMLElement::DivAlign DontDelete
-@end
@begin HTMLParagraphElementTable 1
align KJS::JSHTMLElement::ParagraphAlign DontDelete
@end
cite KJS::JSHTMLElement::ModCite DontDelete
dateTime KJS::JSHTMLElement::ModDateTime DontDelete
@end
-@begin HTMLAnchorElementTable 24
- accessKey KJS::JSHTMLElement::AnchorAccessKey DontDelete
- charset KJS::JSHTMLElement::AnchorCharset DontDelete
- coords KJS::JSHTMLElement::AnchorCoords DontDelete
- href KJS::JSHTMLElement::AnchorHref DontDelete
- hreflang KJS::JSHTMLElement::AnchorHrefLang DontDelete
- hash KJS::JSHTMLElement::AnchorHash DontDelete|ReadOnly
- host KJS::JSHTMLElement::AnchorHost DontDelete|ReadOnly
- hostname KJS::JSHTMLElement::AnchorHostname DontDelete|ReadOnly
- name KJS::JSHTMLElement::AnchorName DontDelete
- pathname KJS::JSHTMLElement::AnchorPathName DontDelete|ReadOnly
- port KJS::JSHTMLElement::AnchorPort DontDelete|ReadOnly
- protocol KJS::JSHTMLElement::AnchorProtocol DontDelete|ReadOnly
- rel KJS::JSHTMLElement::AnchorRel DontDelete
- rev KJS::JSHTMLElement::AnchorRev DontDelete
- search KJS::JSHTMLElement::AnchorSearch DontDelete|ReadOnly
- shape KJS::JSHTMLElement::AnchorShape DontDelete
- tabIndex KJS::JSHTMLElement::AnchorTabIndex DontDelete
- target KJS::JSHTMLElement::AnchorTarget DontDelete
- text KJS::JSHTMLElement::AnchorText DontDelete|ReadOnly
- type KJS::JSHTMLElement::AnchorType DontDelete
- blur KJS::JSHTMLElement::AnchorBlur DontDelete|Function 0
- focus KJS::JSHTMLElement::AnchorFocus DontDelete|Function 0
- toString KJS::JSHTMLElement::AnchorToString DontDelete|Function 0
-@end
@begin HTMLImageElementTable 14
name KJS::JSHTMLElement::ImageName DontDelete
align KJS::JSHTMLElement::ImageAlign DontDelete
value KJS::JSHTMLElement::ParamValue DontDelete
valueType KJS::JSHTMLElement::ParamValueType DontDelete
@end
-@begin HTMLAppletElementTable 11
- align KJS::JSHTMLElement::AppletAlign DontDelete
- alt KJS::JSHTMLElement::AppletAlt DontDelete
- archive KJS::JSHTMLElement::AppletArchive DontDelete
- code KJS::JSHTMLElement::AppletCode DontDelete
- codeBase KJS::JSHTMLElement::AppletCodeBase DontDelete
- height KJS::JSHTMLElement::AppletHeight DontDelete
- hspace KJS::JSHTMLElement::AppletHspace DontDelete
- name KJS::JSHTMLElement::AppletName DontDelete
- object KJS::JSHTMLElement::AppletObject DontDelete
- vspace KJS::JSHTMLElement::AppletVspace DontDelete
- width KJS::JSHTMLElement::AppletWidth DontDelete
@end
@begin HTMLEmbedElementTable 6
align KJS::JSHTMLElement::EmbedAlign DontDelete
return jsUndefined();
}
-JSValue *JSHTMLElement::htmlGetter(ExecState* exec, int token) const
-{
- HTMLHtmlElement& html = *static_cast<HTMLHtmlElement*>(impl());
- if (token == HtmlVersion)
- return jsString(html.version());
- return jsUndefined();
-}
-
JSValue *JSHTMLElement::isIndexGetter(ExecState* exec, int token) const
{
HTMLIsIndexElement& isindex = *static_cast<HTMLIsIndexElement*>(impl());
return jsUndefined();
}
-JSValue *JSHTMLElement::uListGetter(ExecState* exec, int token) const
-{
- HTMLUListElement& uList = *static_cast<HTMLUListElement*>(impl());
- switch (token) {
- case UListCompact: return jsBoolean(uList.compact());
- case UListType: return jsString(uList.type());
- }
- return jsUndefined();
-}
-
-JSValue *JSHTMLElement::oListGetter(ExecState* exec, int token) const
-{
- HTMLOListElement& oList = *static_cast<HTMLOListElement*>(impl());
- switch (token) {
- case OListCompact: return jsBoolean(oList.compact());
- case OListStart: return jsNumber(oList.start());
- case OListType: return jsString(oList.type());
- }
- return jsUndefined();
-}
-
-JSValue *JSHTMLElement::dListGetter(ExecState* exec, int token) const
-{
- HTMLDListElement& dList = *static_cast<HTMLDListElement*>(impl());
- if (token == DListCompact)
- return jsBoolean(dList.compact());
- return jsUndefined();
-}
-
-JSValue *JSHTMLElement::dirGetter(ExecState* exec, int token) const
-{
- HTMLDirectoryElement& dir = *static_cast<HTMLDirectoryElement*>(impl());
- if (token == DirectoryCompact)
- return jsBoolean(dir.compact());
- return jsUndefined();
-}
-
JSValue *JSHTMLElement::menuGetter(ExecState* exec, int token) const
{
HTMLMenuElement& menu = *static_cast<HTMLMenuElement*>(impl());
return jsUndefined();
}
-JSValue *JSHTMLElement::divGetter(ExecState* exec, int token) const
-{
- HTMLDivElement& div = *static_cast<HTMLDivElement*>(impl());
- if (token == DivAlign)
- return jsString(div.align());
- return jsUndefined();
-}
-
JSValue *JSHTMLElement::paragraphGetter(ExecState* exec, int token) const
{
HTMLParagraphElement& p = *static_cast<HTMLParagraphElement*>(impl());
return jsUndefined();
}
-JSValue *JSHTMLElement::anchorGetter(ExecState* exec, int token) const
-{
- HTMLAnchorElement& anchor = *static_cast<HTMLAnchorElement*>(impl());
- switch (token) {
- case AnchorAccessKey: return jsString(anchor.accessKey());
- case AnchorCharset: return jsString(anchor.charset());
- case AnchorCoords: return jsString(anchor.coords());
- case AnchorHref: return jsString(anchor.href());
- case AnchorHrefLang: return jsString(anchor.hreflang());
- case AnchorHash: return jsString('#'+KURL(anchor.href().deprecatedString()).ref());
- case AnchorHost: return jsString(KURL(anchor.href().deprecatedString()).host());
- case AnchorHostname: {
- KURL url(anchor.href().deprecatedString());
- if (url.port()==0)
- return jsString(url.host());
- else
- return jsString(url.host() + ":" + DeprecatedString::number(url.port()));
- }
- case AnchorPathName: return jsString(KURL(anchor.href().deprecatedString()).path());
- case AnchorPort: return jsString(DeprecatedString::number(KURL(anchor.href().deprecatedString()).port()));
- case AnchorProtocol: return jsString(KURL(anchor.href().deprecatedString()).protocol()+":");
- case AnchorSearch: return jsString(KURL(anchor.href().deprecatedString()).query());
- case AnchorName: return jsString(anchor.name());
- case AnchorRel: return jsString(anchor.rel());
- case AnchorRev: return jsString(anchor.rev());
- case AnchorShape: return jsString(anchor.shape());
- case AnchorTabIndex: return jsNumber(anchor.tabIndex());
- case AnchorTarget: return jsString(anchor.target());
- case AnchorType: return jsString(anchor.type());
- case AnchorText:
- anchor.document()->updateLayoutIgnorePendingStylesheets();
- return jsString(anchor.innerText());
- }
- return jsUndefined();
-}
-
JSValue *JSHTMLElement::imageGetter(ExecState* exec, int token) const
{
HTMLImageElement& image = *static_cast<HTMLImageElement*>(impl());
return jsUndefined();
}
-JSValue *JSHTMLElement::appletGetter(ExecState* exec, int token) const
-{
- HTMLAppletElement& applet = *static_cast<HTMLAppletElement*>(impl());
- switch (token) {
- case AppletAlign: return jsString(applet.align());
- case AppletAlt: return jsString(applet.alt());
- case AppletArchive: return jsString(applet.archive());
- case AppletCode: return jsString(applet.code());
- case AppletCodeBase: return jsString(applet.codeBase());
- case AppletHeight: return jsString(applet.height());
- case AppletHspace: return jsString(applet.hspace());
- case AppletName: return jsString(applet.name());
- case AppletObject: return jsString(applet.object());
- case AppletVspace: return jsString(applet.vspace());
- case AppletWidth: return jsString(applet.width());
- }
- return jsUndefined();
-}
-
JSValue *JSHTMLElement::embedGetter(ExecState* exec, int token) const
{
HTMLEmbedElement& embed = *static_cast<HTMLEmbedElement*>(impl());
return jsUndefined();
}
}
- else if (element.hasLocalName(aTag)) {
- HTMLAnchorElement &anchor = static_cast<HTMLAnchorElement &>(element);
- if (id == JSHTMLElement::AnchorBlur) {
- anchor.blur();
- return jsUndefined();
- }
- else if (id == JSHTMLElement::AnchorFocus) {
- anchor.focus();
- return jsUndefined();
- }
- else if (id == JSHTMLElement::AnchorToString)
- return jsString(thisObj->toString(exec));
- }
else if (element.hasLocalName(tableTag)) {
HTMLTableElement &table = static_cast<HTMLTableElement &>(element);
if (id == JSHTMLElement::TableCreateTHead)
lookupPut<JSHTMLElement, JSElement>(exec, propertyName, value, attr, &HTMLElementTable, this);
}
-void JSHTMLElement::htmlSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLHtmlElement& html = *static_cast<HTMLHtmlElement*>(impl());
- if (token == HtmlVersion)
- html.setVersion(str);
-}
-
void JSHTMLElement::isIndexSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
{
HTMLIsIndexElement& isindex = *static_cast<HTMLIsIndexElement*>(impl());
}
}
-void JSHTMLElement::uListSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLUListElement& uList = *static_cast<HTMLUListElement*>(impl());
- switch (token) {
- case UListCompact: { uList.setCompact(value->toBoolean(exec)); return; }
- case UListType: { uList.setType(str); return; }
- }
-}
-
-void JSHTMLElement::oListSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLOListElement& oList = *static_cast<HTMLOListElement*>(impl());
- switch (token) {
- case OListCompact: { oList.setCompact(value->toBoolean(exec)); return; }
- case OListStart: { oList.setStart(value->toInt32(exec)); return; }
- case OListType: { oList.setType(str); return; }
- }
-}
-
-void JSHTMLElement::dListSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLDListElement& dList = *static_cast<HTMLDListElement*>(impl());
- if (token == DListCompact)
- dList.setCompact(value->toBoolean(exec));
-}
-
-void JSHTMLElement::dirSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLDirectoryElement& directory = *static_cast<HTMLDirectoryElement*>(impl());
- if (token == DirectoryCompact)
- directory.setCompact(value->toBoolean(exec));
-}
-
void JSHTMLElement::menuSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
{
HTMLMenuElement& menu = *static_cast<HTMLMenuElement*>(impl());
}
}
-void JSHTMLElement::divSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLDivElement& div = *static_cast<HTMLDivElement*>(impl());
- if (token == DivAlign)
- div.setAlign(str);
-}
-
void JSHTMLElement::paragraphSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
{
HTMLParagraphElement& paragraph = *static_cast<HTMLParagraphElement*>(impl());
}
}
-void JSHTMLElement::anchorSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLAnchorElement& anchor = *static_cast<HTMLAnchorElement*>(impl());
- switch (token) {
- case AnchorAccessKey: { anchor.setAccessKey(str); return; }
- case AnchorCharset: { anchor.setCharset(str); return; }
- case AnchorCoords: { anchor.setCoords(str); return; }
- case AnchorHref: { anchor.setHref(str); return; }
- case AnchorHrefLang: { anchor.setHreflang(str); return; }
- case AnchorName: { anchor.setName(str); return; }
- case AnchorRel: { anchor.setRel(str); return; }
- case AnchorRev: { anchor.setRev(str); return; }
- case AnchorShape: { anchor.setShape(str); return; }
- case AnchorTabIndex: { anchor.setTabIndex(value->toInt32(exec)); return; }
- case AnchorTarget: { anchor.setTarget(str); return; }
- case AnchorType: { anchor.setType(str); return; }
- }
-}
-
void JSHTMLElement::imageSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
{
HTMLImageElement& image = *static_cast<HTMLImageElement*>(impl());
}
}
-void JSHTMLElement::appletSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str)
-{
- HTMLAppletElement& applet = *static_cast<HTMLAppletElement*>(impl());
- switch (token) {
- case AppletAlign: { applet.setAlign(str); return; }
- case AppletAlt: { applet.setAlt(str); return; }
- case AppletArchive: { applet.setArchive(str); return; }
- case AppletCode: { applet.setCode(str); return; }
- case AppletCodeBase: { applet.setCodeBase(str); return; }
- case AppletHeight: { applet.setHeight(str); return; }
- case AppletHspace: { applet.setHspace(str); return; }
- case AppletName: { applet.setName(str); return; }
- case AppletObject: { applet.setObject(str); return; }
- case AppletVspace: { applet.setVspace(str); return; }
- case AppletWidth: { applet.setWidth(str); return; }
- }
-}
-
void JSHTMLElement::embedSetter(ExecState*, int token, JSValue*, const WebCore::String& str)
{
HTMLEmbedElement& embed = *static_cast<HTMLEmbedElement*>(impl());
virtual const ClassInfo* classInfo() const;
static const ClassInfo info;
- static const ClassInfo html_info, isIndex_info, body_info, form_info,
- select_info, label_info, fieldSet_info, legend_info, ul_info, ol_info,
- dl_info, dir_info, menu_info, li_info, div_info, p_info, heading_info,
+ static const ClassInfo isIndex_info, body_info, form_info,
+ select_info, optGroup_info, option_info, input_info, textArea_info,
+ button_info, label_info, fieldSet_info, legend_info,
+ menu_info, li_info, p_info, heading_info,
blockQuote_info, q_info, pre_info, br_info, baseFont_info, font_info,
- hr_info, mod_info, a_info, img_info, object_info, param_info,
- applet_info, embed_info, map_info, area_info, script_info, table_info,
+ hr_info, mod_info, img_info, object_info, param_info,
+ embed_info, map_info, area_info, script_info, table_info,
caption_info, col_info, tablesection_info, tr_info,
tablecell_info, frameSet_info, frame_info, iFrame_info, marquee_info;
typedef void (JSHTMLElement::*SetterFunction)(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
struct Accessors { GetterFunction m_getter; SetterFunction m_setter; };
const Accessors* accessors() const;
- static const Accessors html_accessors, isIndex_accessors, body_accessors, form_accessors,
- select_accessors, label_accessors, fieldSet_accessors, legend_accessors, ul_accessors, ol_accessors,
- dl_accessors, dir_accessors, menu_accessors, li_accessors, div_accessors, p_accessors, heading_accessors,
+ static const Accessors isIndex_accessors, body_accessors, form_accessors,
+ select_accessors, optGroup_accessors, option_accessors, input_accessors, textArea_accessors,
+ button_accessors, label_accessors, fieldSet_accessors, legend_accessors,
+ menu_accessors, li_accessors, p_accessors, heading_accessors,
blockQuote_accessors, q_accessors, pre_accessors, br_accessors, baseFont_accessors, font_accessors,
- hr_accessors, mod_accessors, a_accessors, img_accessors, object_accessors, param_accessors,
- applet_accessors, embed_accessors, map_accessors, area_accessors, script_accessors, table_accessors,
+ hr_accessors, mod_accessors, img_accessors, object_accessors, param_accessors,
+ embed_accessors, map_accessors, area_accessors, script_accessors, table_accessors,
caption_accessors, col_accessors, tablesection_accessors, tr_accessors,
tablecell_accessors, frameSet_accessors, frame_accessors, iFrame_accessors, marquee_accessors;
- JSValue *htmlGetter(ExecState* exec, int token) const;
- void htmlSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *isIndexGetter(ExecState* exec, int token) const;
void isIndexSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *bodyGetter(ExecState* exec, int token) const;
void fieldSetSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *legendGetter(ExecState* exec, int token) const;
void legendSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- JSValue *uListGetter(ExecState* exec, int token) const;
- void uListSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- JSValue *oListGetter(ExecState* exec, int token) const;
- void oListSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- JSValue *dListGetter(ExecState* exec, int token) const;
- void dListSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- JSValue *dirGetter(ExecState* exec, int token) const;
- void dirSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *menuGetter(ExecState* exec, int token) const;
void menuSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *liGetter(ExecState* exec, int token) const;
void liSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- JSValue *divGetter(ExecState* exec, int token) const;
- void divSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *paragraphGetter(ExecState* exec, int token) const;
void paragraphSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *headingGetter(ExecState* exec, int token) const;
void hrSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *modGetter(ExecState* exec, int token) const;
void modSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- JSValue *anchorGetter(ExecState* exec, int token) const;
- void anchorSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *imageGetter(ExecState* exec, int token) const;
void imageSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *objectGetter(ExecState* exec, int token) const;
void objectSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *paramGetter(ExecState* exec, int token) const;
void paramSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- JSValue *appletGetter(ExecState* exec, int token) const;
- void appletSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
JSValue *embedGetter(ExecState*, int token) const;
void embedSetter(ExecState*, int token, JSValue*, const WebCore::String&);
JSValue *mapGetter(ExecState* exec, int token) const;
JSValue *marqueeGetter(ExecState* exec, int token) const;
void marqueeSetter(ExecState *exec, int token, JSValue *value, const WebCore::String& str);
- enum { HtmlVersion, IsIndexForm, IsIndexPrompt,
- BodyBackground, BodyVLink, BodyText,
+ enum { IsIndexForm, IsIndexPrompt, BodyBackground, BodyVLink, BodyText,
BodyLink, BodyALink, BodyBgColor, BodyScrollLeft, BodyScrollTop, BodyScrollHeight, BodyScrollWidth,
FormAction, FormEncType, FormElements, FormLength, FormAcceptCharset,
FormReset, FormTarget, FormName, FormMethod, FormSubmit, SelectAdd,
SelectDisabled, SelectMultiple, SelectName, SelectSize, SelectFocus,
LabelHtmlFor,
LabelForm, LabelFocus, LabelAccessKey, FieldSetForm, LegendForm, LegendAccessKey,
- LegendAlign, LegendFocus, UListType, UListCompact, OListStart, OListCompact,
- OListType, DListCompact, DirectoryCompact, MenuCompact, LIType,
- LIValue, DivAlign, ParagraphAlign, HeadingAlign, BlockQuoteCite,
+ LegendAlign, LegendFocus, MenuCompact, LIType,
+ LIValue, ParagraphAlign, HeadingAlign, BlockQuoteCite,
QuoteCite, PreWidth, PreWrap, BRClear, BaseFontColor, BaseFontSize,
BaseFontFace, FontColor, FontSize, FontFace, HRWidth, HRNoShade,
- HRAlign, HRSize, ModCite, ModDateTime, AnchorShape, AnchorRel,
- AnchorAccessKey, AnchorCoords, AnchorHref, AnchorProtocol, AnchorHost,
- AnchorCharset, AnchorHrefLang, AnchorHostname, AnchorType, AnchorFocus,
- AnchorPort, AnchorPathName, AnchorHash, AnchorSearch, AnchorName,
- AnchorRev, AnchorTabIndex, AnchorTarget, AnchorText, AnchorBlur, AnchorToString,
+ HRAlign, HRSize, ModCite, ModDateTime,
ImageName, ImageAlign, ImageHspace, ImageVspace, ImageUseMap, ImageAlt,
ImageLowSrc, ImageWidth, ImageIsMap, ImageBorder, ImageHeight, ImageComplete,
ImageLongDesc, ImageSrc, ImageX, ImageY, ObjectHspace, ObjectHeight, ObjectAlign,
ObjectBorder, ObjectCode, ObjectType, ObjectVspace, ObjectArchive,
ObjectDeclare, ObjectForm, ObjectCodeBase, ObjectCodeType, ObjectData,
ObjectName, ObjectStandby, ObjectTabIndex, ObjectUseMap, ObjectWidth, ObjectContentDocument,
- ParamName, ParamType, ParamValueType, ParamValue, AppletArchive,
- AppletAlt, AppletCode, AppletWidth, AppletAlign, AppletCodeBase,
- AppletName, AppletHeight, AppletHspace, AppletObject, AppletVspace,
+ ParamName, ParamType, ParamValueType, ParamValue,
EmbedAlign, EmbedHeight, EmbedName, EmbedSrc, EmbedType, EmbedWidth,
MapAreas, MapName, AreaHash, AreaHref, AreaTarget, AreaPort, AreaShape,
AreaCoords, AreaAlt, AreaAccessKey, AreaNoHref, AreaHost, AreaProtocol,
document()->setFocusNode(this);
}
+String HTMLAnchorElement::hash() const
+{
+ return '#' + KURL(href().deprecatedString()).ref();
+}
+
+String HTMLAnchorElement::host() const
+{
+ return KURL(href().deprecatedString()).host();
+}
+
+String HTMLAnchorElement::hostname() const
+{
+ KURL url(href().deprecatedString());
+ if (url.port()==0)
+ return url.host();
+ else
+ return url.host() + ":" + String::number(url.port());
+}
+
+String HTMLAnchorElement::pathname() const
+{
+ return KURL(href().deprecatedString()).path();
+}
+
+String HTMLAnchorElement::port() const
+{
+ return DeprecatedString::number(KURL(href().deprecatedString()).port());
+}
+
+String HTMLAnchorElement::protocol() const
+{
+ return KURL(href().deprecatedString()).protocol() + ":";
+}
+
+String HTMLAnchorElement::search() const
+{
+ return KURL(href().deprecatedString()).query();
+}
+
+String HTMLAnchorElement::text() const
+{
+ document()->updateLayoutIgnorePendingStylesheets();
+ return innerText();
+}
+
+
}
void blur();
void focus();
+ String hash() const;
+ String host() const;
+ String hostname() const;
+ String pathname() const;
+ String port() const;
+ String protocol() const;
+ String search() const;
+ String text() const;
+
protected:
bool m_hasTarget : 1;
};
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLAnchorElement : HTMLElement {
+ attribute DOMString accessKey;
+ attribute DOMString charset;
+ attribute DOMString coords;
+ attribute DOMString href;
+ attribute DOMString hreflang;
+ attribute DOMString name;
+ attribute DOMString rel;
+ attribute DOMString rev;
+ attribute DOMString shape;
+ attribute long tabIndex;
+ attribute DOMString target;
+ attribute DOMString type;
+
+ void blur();
+ void focus();
+
+ // IE Extensions
+ readonly attribute DOMString hash;
+ readonly attribute DOMString host;
+ readonly attribute DOMString hostname;
+ readonly attribute DOMString pathname;
+ readonly attribute DOMString port;
+ readonly attribute DOMString protocol;
+ readonly attribute DOMString search;
+ readonly attribute DOMString text;
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLAppletElement : HTMLElement {
+ attribute DOMString align;
+ attribute DOMString alt;
+ attribute DOMString archive;
+ attribute DOMString code;
+ attribute DOMString codeBase;
+ attribute DOMString height;
+ attribute DOMString hspace;
+ attribute DOMString name;
+ attribute DOMString object;
+ attribute DOMString vspace;
+ attribute DOMString width;
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLDListElement : HTMLElement {
+ attribute boolean compact;
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLDirectoryElement : HTMLElement {
+ attribute boolean compact;
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLDivElement : HTMLElement {
+ attribute DOMString align;
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLHtmlElement : HTMLElement {
+
+ attribute DOMString version;
+
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLOListElement : HTMLElement {
+ attribute boolean compact;
+ attribute long start;
+ attribute DOMString type;
+ };
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+module html {
+
+ interface [LegacyParent=KJS::JSHTMLElement] HTMLUListElement : HTMLElement {
+ attribute boolean compact;
+ attribute DOMString type;
+ };
+
+}