[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:29:55 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit dbdb3ea2574773ffd937adeac990c532b9fd92b7
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Mar 16 18:35:20 2004 +0000
WebCore:
Reviewed by Ken.
- update for new DOM namespacing and header organization
* WebCore.pbproj/project.pbxproj:
* kwq/DOM-CSS.h: Removed.
* kwq/DOM-CSS.mm: Update for name changes.
* kwq/DOM.h: Changed to include the other DOM headers.
* kwq/DOM.mm: Update for name changes.
* kwq/DOMCSS.h: Added.
* kwq/DOMCore.h: Added.
* kwq/DOMEvents.h: Added.
* kwq/DOMHTML.h: Added.
* kwq/DOMInternal.h: Update for name changes.
* kwq/DOMRange.h: Added.
* kwq/DOMStylesheets.h: Added.
* kwq/DOMTraversal.h: Added.
* kwq/DOMViews.h: Added.
* kwq/HTMLDOM.h: Removed.
* kwq/HTMLDOM.mm: Update for name changes; add some missing setters.
WebKit:
Reviewed by Ken.
- update for new DOM namespacing and header organization
* DOM.subproj/DOM.h: Changed to include the other DOM headers.
* DOM.subproj/DOMCSS.h: Added.
* DOM.subproj/DOMCore.h: Added.
* DOM.subproj/DOMEvents.h: Added.
* DOM.subproj/DOMHTML.h: Added.
* DOM.subproj/DOMRange.h: Added.
* DOM.subproj/DOMStylesheets.h: Added.
* DOM.subproj/DOMTraversal.h: Added.
* DOM.subproj/DOMViews.h: Added.
* WebKit.pbproj/project.pbxproj: Added new files.
* WebView.subproj/WebDefaultEditingDelegate.m:
(-[WebDefaultEditingDelegate webView:shouldApplyStyle:toElementsInDOMRange:]):
(-[WebDefaultEditingDelegate webView:shouldChangeTypingStyle:toStyle:]):
Change class names from CSS to DOMCSS.
* WebView.subproj/WebViewPrivate.h: Ditto.
* copy-webcore-files-to-webkit: Add new files.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 6ceb9f8..2fb664b 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,26 @@
+2004-03-16 Darin Adler <darin at apple.com>
+
+ Reviewed by Ken.
+
+ - update for new DOM namespacing and header organization
+
+ * WebCore.pbproj/project.pbxproj:
+ * kwq/DOM-CSS.h: Removed.
+ * kwq/DOM-CSS.mm: Update for name changes.
+ * kwq/DOM.h: Changed to include the other DOM headers.
+ * kwq/DOM.mm: Update for name changes.
+ * kwq/DOMCSS.h: Added.
+ * kwq/DOMCore.h: Added.
+ * kwq/DOMEvents.h: Added.
+ * kwq/DOMHTML.h: Added.
+ * kwq/DOMInternal.h: Update for name changes.
+ * kwq/DOMRange.h: Added.
+ * kwq/DOMStylesheets.h: Added.
+ * kwq/DOMTraversal.h: Added.
+ * kwq/DOMViews.h: Added.
+ * kwq/HTMLDOM.h: Removed.
+ * kwq/HTMLDOM.mm: Update for name changes; add some missing setters.
+
2004-03-15 Maciej Stachowiak <mjs at apple.com>
Reviewed by Darin.
diff --git a/WebCore/WebCore.pbproj/project.pbxproj b/WebCore/WebCore.pbproj/project.pbxproj
index 475df7b..fe30aaa 100644
--- a/WebCore/WebCore.pbproj/project.pbxproj
+++ b/WebCore/WebCore.pbproj/project.pbxproj
@@ -522,9 +522,15 @@
BE94EB6705EFFE6B0032DCB5,
515B877605F5332F00EABBF9,
BE9970C305F7DD1C00611115,
- BE9CB65905F9546800514D9C,
BEF7EEA205FF8F0D009717EE,
- 845563E506014A9800609194,
+ 932127560606724900B62302,
+ 932127570606724900B62302,
+ 932127580606724900B62302,
+ 932127590606724900B62302,
+ 9321275A0606724900B62302,
+ 9321275B0606724900B62302,
+ 9321275C0606724900B62302,
+ 9321275D0606724900B62302,
);
isa = PBXHeadersBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -1196,14 +1202,6 @@
//842
//843
//844
- 845563E306014A9800609194 = {
- fileEncoding = 30;
- isa = PBXFileReference;
- lastKnownFileType = sourcecode.c.h;
- path = HTMLDOM.h;
- refType = 4;
- sourceTree = "<group>";
- };
845563E406014A9800609194 = {
fileEncoding = 30;
isa = PBXFileReference;
@@ -1212,12 +1210,6 @@
refType = 4;
sourceTree = "<group>";
};
- 845563E506014A9800609194 = {
- fileRef = 845563E306014A9800609194;
- isa = PBXBuildFile;
- settings = {
- };
- };
845563E606014A9800609194 = {
fileRef = 845563E406014A9800609194;
isa = PBXBuildFile;
@@ -1579,6 +1571,118 @@
settings = {
};
};
+ 9321274E0606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMHTML.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321274F0606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMRange.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932127500606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMEvents.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932127510606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMStylesheets.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932127520606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMCore.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932127530606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMTraversal.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932127540606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMViews.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932127550606724900B62302 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = DOMCSS.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932127560606724900B62302 = {
+ fileRef = 9321274E0606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 932127570606724900B62302 = {
+ fileRef = 9321274F0606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 932127580606724900B62302 = {
+ fileRef = 932127500606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 932127590606724900B62302 = {
+ fileRef = 932127510606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 9321275A0606724900B62302 = {
+ fileRef = 932127520606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 9321275B0606724900B62302 = {
+ fileRef = 932127530606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 9321275C0606724900B62302 = {
+ fileRef = 932127540606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 9321275D0606724900B62302 = {
+ fileRef = 932127550606724900B62302;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
9325AAB7041D0E9A00A9CAC5 = {
fileEncoding = 4;
isa = PBXFileReference;
@@ -2738,14 +2842,6 @@
settings = {
};
};
- BE9CB65705F9546800514D9C = {
- fileEncoding = 30;
- isa = PBXFileReference;
- lastKnownFileType = sourcecode.c.h;
- path = "DOM-CSS.h";
- refType = 4;
- sourceTree = "<group>";
- };
BE9CB65805F9546800514D9C = {
fileEncoding = 30;
isa = PBXFileReference;
@@ -2754,12 +2850,6 @@
refType = 4;
sourceTree = "<group>";
};
- BE9CB65905F9546800514D9C = {
- fileRef = BE9CB65705F9546800514D9C;
- isa = PBXBuildFile;
- settings = {
- };
- };
BE9CB65A05F9546800514D9C = {
fileRef = BE9CB65805F9546800514D9C;
isa = PBXBuildFile;
@@ -6352,13 +6442,19 @@
F565A2700352410501A80180 = {
children = (
BE94EB6305EFFE6B0032DCB5,
+ 9321274E0606724900B62302,
+ 9321274F0606724900B62302,
+ 932127500606724900B62302,
+ 932127510606724900B62302,
+ 932127520606724900B62302,
+ 932127530606724900B62302,
+ 932127540606724900B62302,
+ 932127550606724900B62302,
BE94EB6505EFFE6B0032DCB5,
BE16801805EDB91A00B87935,
- BE9CB65705F9546800514D9C,
BE9CB65805F9546800514D9C,
BE94EB6405EFFE6B0032DCB5,
BE9CB64D05F942CB00514D9C,
- 845563E306014A9800609194,
845563E406014A9800609194,
);
isa = PBXGroup;
diff --git a/WebCore/kwq/DOM-CSS.h b/WebCore/kwq/DOM-CSS.h
deleted file mode 100644
index 53b704f..0000000
--- a/WebCore/kwq/DOM-CSS.h
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Foundation/Foundation.h>
-
-#import "DOM.h"
-
-//=========================================================================
-//=========================================================================
-//=========================================================================
-
-// Important Note:
-// Though this file appears as an exported header from WebKit, the
-// version you should edit is in WebCore. The WebKit version is copied
-// to WebKit during the build process.
-
-//=========================================================================
-//=========================================================================
-//=========================================================================
-
-enum {
- //
- // CSSRule types
- //
- CSS_UNKNOWN_RULE = 0,
- CSS_STYLE_RULE = 1,
- CSS_CHARSET_RULE = 2,
- CSS_IMPORT_RULE = 3,
- CSS_MEDIA_RULE = 4,
- CSS_FONT_FACE_RULE = 5,
- CSS_PAGE_RULE = 6,
- //
- // CSSValue unit types
- //
- CSS_INHERIT = 0,
- CSS_PRIMITIVE_VALUE = 1,
- CSS_VALUE_LIST = 2,
- CSS_CUSTOM = 3,
- //
- // CSSPrimitiveValue unit types
- //
- CSS_UNKNOWN = 0,
- CSS_NUMBER = 1,
- CSS_PERCENTAGE = 2,
- CSS_EMS = 3,
- CSS_EXS = 4,
- CSS_PX = 5,
- CSS_CM = 6,
- CSS_MM = 7,
- CSS_IN = 8,
- CSS_PT = 9,
- CSS_PC = 10,
- CSS_DEG = 11,
- CSS_RAD = 12,
- CSS_GRAD = 13,
- CSS_MS = 14,
- CSS_S = 15,
- CSS_HZ = 16,
- CSS_KHZ = 17,
- CSS_DIMENSION = 18,
- CSS_STRING = 19,
- CSS_URI = 20,
- CSS_IDENT = 21,
- CSS_ATTR = 22,
- CSS_COUNTER = 23,
- CSS_RECT = 24,
- CSS_RGBCOLOR = 25,
-};
-
- at class CSSCounter;
- at class CSSMediaList;
- at class CSSRect;
- at class CSSRGBColor;
- at class CSSRule;
- at class CSSRuleList;
- at class CSSStyleDeclaration;
- at class CSSValue;
-
- at interface DOMStyleSheet : DOMObject
-- (NSString *)type;
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (DOMNode *)ownerNode;
-- (DOMStyleSheet *)parentStyleSheet;
-- (NSString *)href;
-- (NSString *)title;
-- (CSSMediaList *)media;
- at end
-
- at interface DOMStyleSheetList : DOMObject
-- (unsigned long)length;
-- (DOMStyleSheet *)item:(unsigned long)index;
- at end
-
- at interface CSSStyleSheet : DOMStyleSheet
-- (CSSRule *)ownerRule;
-- (CSSRuleList *)cssRules;
-- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index;
-- (void)deleteRule:(unsigned long)index;
- at end
-
- at interface CSSMediaList : DOMObject
-- (NSString *)mediaText;
-- (void)setMediaText:(NSString *)mediaText;
-- (unsigned long)length;
-- (NSString *)item:(unsigned long)index;
-- (void)deleteMedium:(NSString *)oldMedium;
-- (void)appendMedium:(NSString *)newMedium;
- at end
-
- at interface CSSRuleList : DOMObject
-- (unsigned long)length;
-- (CSSRule *)item:(unsigned long)index;
- at end
-
- at interface CSSRule : DOMObject
-- (unsigned short)type;
-- (NSString *)cssText;
-- (void)setCSSText:(NSString *)cssText;
-- (CSSStyleSheet *)parentStyleSheet;
-- (CSSRule *)parentRule;
- at end
-
- at interface CSSStyleRule : CSSRule
-- (NSString *)selectorText;
-- (void)setSelectorText:(NSString *)selectorText;
-- (CSSStyleDeclaration *)style;
- at end
-
- at interface CSSMediaRule : CSSRule
-- (CSSMediaList *)media;
-- (CSSRuleList *)cssRules;
-- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index;
-- (void)deleteRule:(unsigned long)index;
- at end
-
- at interface CSSFontFaceRule : CSSRule
-- (CSSStyleDeclaration *)style;
- at end
-
- at interface CSSPageRule : CSSRule
-- (NSString *)selectorText;
-- (void)setSelectorText:(NSString *)selectorText;
-- (CSSStyleDeclaration *)style;
- at end
-
- at interface CSSImportRule : CSSRule
-- (CSSMediaList *)media;
-- (NSString *)href;
-- (CSSStyleSheet *)styleSheet;
- at end
-
- at interface CSSCharsetRule : CSSRule
-- (NSString *)encoding;
- at end
-
- at interface CSSStyleDeclaration : DOMObject
-- (NSString *)cssText;
-- (void)setCSSText:(NSString *)cssText;
-- (NSString *)getPropertyValue:(NSString *)propertyName;
-- (CSSValue *)getPropertyCSSValue:(NSString *)propertyName;
-- (NSString *)removeProperty:(NSString *)propertyName;
-- (NSString *)getPropertyPriority:(NSString *)propertyName;
-- (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority;
-- (unsigned long)length;
-- (NSString *)item:(unsigned long)index;
-- (CSSRule *)parentRule;
- at end
-
- at interface CSSValue : DOMObject
-- (NSString *)cssText;
-- (void)setCSSText:(NSString *)cssText;
-- (unsigned short)cssValueType;
- at end
-
- at interface CSSPrimitiveValue : CSSValue
-- (unsigned short)primitiveType;
-- (void)setFloatValue:(unsigned short)unitType :(float)floatValue;
-- (float)getFloatValue:(unsigned short)unitType;
-- (void)setStringValue:(unsigned short)stringType :(NSString *)stringValue;
-- (NSString *)getStringValue;
-- (CSSCounter *)getCounterValue;
-- (CSSRect *)getRectValue;
-- (CSSRGBColor *)getRGBColorValue;
- at end
-
- at interface CSSValueList : CSSValue
-- (unsigned long)length;
-- (CSSValue *)item:(unsigned long)index;
- at end
-
- at interface CSSRGBColor : DOMObject
-- (CSSPrimitiveValue *)red;
-- (CSSPrimitiveValue *)green;
-- (CSSPrimitiveValue *)blue;
- at end
-
- at interface CSSRect : DOMObject
-- (CSSPrimitiveValue *)top;
-- (CSSPrimitiveValue *)right;
-- (CSSPrimitiveValue *)bottom;
-- (CSSPrimitiveValue *)left;
- at end
-
- at interface CSSCounter : DOMObject
-- (NSString *)identifier;
-- (NSString *)listStyle;
-- (NSString *)separator;
- at end
diff --git a/WebCore/kwq/DOM-CSS.mm b/WebCore/kwq/DOM-CSS.mm
index 6349b03..e7a9265 100644
--- a/WebCore/kwq/DOM-CSS.mm
+++ b/WebCore/kwq/DOM-CSS.mm
@@ -22,7 +22,8 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#import "DOM-CSS.h"
+
+#import "DOMCSS.h"
#include <objc/objc-class.h>
@@ -63,32 +64,32 @@ using DOM::StyleSheetListImpl;
+ (DOMStyleSheet *)_DOMStyleSheetWithImpl:(StyleSheetImpl *)impl;
@end
- at interface CSSMediaList (WebCoreInternal)
-+ (CSSMediaList *)_mediaListWithImpl:(MediaListImpl *)impl;
+ at interface DOMMediaList (WebCoreInternal)
++ (DOMMediaList *)_mediaListWithImpl:(MediaListImpl *)impl;
@end
- at interface CSSRuleList (WebCoreInternal)
-+ (CSSRuleList *)_ruleListWithImpl:(CSSRuleListImpl *)impl;
+ at interface DOMCSSRuleList (WebCoreInternal)
++ (DOMCSSRuleList *)_ruleListWithImpl:(CSSRuleListImpl *)impl;
@end
- at interface CSSRule (WebCoreInternal)
-+ (CSSRule *)_ruleWithImpl:(CSSRuleImpl *)impl;
+ at interface DOMCSSRule (WebCoreInternal)
++ (DOMCSSRule *)_ruleWithImpl:(CSSRuleImpl *)impl;
@end
- at interface CSSValue (WebCoreInternal)
-+ (CSSValue *)_valueWithImpl:(CSSValueImpl *)impl;
+ at interface DOMCSSValue (WebCoreInternal)
++ (DOMCSSValue *)_valueWithImpl:(CSSValueImpl *)impl;
@end
- at interface CSSRGBColor (WebCoreInternal)
-+ (CSSRGBColor *)_RGBColorWithRGB:(QRgb)value;
+ at interface DOMRGBColor (WebCoreInternal)
++ (DOMRGBColor *)_RGBColorWithRGB:(QRgb)value;
@end
- at interface CSSRect (WebCoreInternal)
-+ (CSSRect *)_rectWithImpl:(RectImpl *)impl;
+ at interface DOMRect (WebCoreInternal)
++ (DOMRect *)_rectWithImpl:(RectImpl *)impl;
@end
- at interface CSSCounter (WebCoreInternal)
-+ (CSSCounter *)_counterWithImpl:(CounterImpl *)impl;
+ at interface DOMCounter (WebCoreInternal)
++ (DOMCounter *)_counterWithImpl:(CounterImpl *)impl;
@end
static inline int getPropertyID(NSString *string)
@@ -150,7 +151,7 @@ static inline int getPropertyID(NSString *string)
return [self _DOMStyleSheetImpl]->title();
}
-- (CSSMediaList *)media
+- (DOMMediaList *)media
{
return nil;
}
@@ -240,23 +241,23 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSStyleSheet
+// DOMCSSStyleSheet
- at implementation CSSStyleSheet
+ at implementation DOMCSSStyleSheet
- (CSSStyleSheetImpl *)_CSSStyleSheetImpl
{
return reinterpret_cast<CSSStyleSheetImpl *>(_internal);
}
-- (CSSRule *)ownerRule
+- (DOMCSSRule *)ownerRule
{
- return [CSSRule _ruleWithImpl:[self _CSSStyleSheetImpl]->ownerRule()];
+ return [DOMCSSRule _ruleWithImpl:[self _CSSStyleSheetImpl]->ownerRule()];
}
-- (CSSRuleList *)cssRules
+- (DOMCSSRuleList *)cssRules
{
- return [CSSRuleList _ruleListWithImpl:[self _CSSStyleSheetImpl]->cssRules().handle()];
+ return [DOMCSSRuleList _ruleListWithImpl:[self _CSSStyleSheetImpl]->cssRules().handle()];
}
- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index
@@ -276,7 +277,7 @@ static inline int getPropertyID(NSString *string)
@end
- at implementation CSSStyleSheet (WebCoreInternal)
+ at implementation DOMCSSStyleSheet (WebCoreInternal)
- (id)_initWithCSSStyleSheetImpl:(CSSStyleSheetImpl *)impl
{
@@ -287,7 +288,7 @@ static inline int getPropertyID(NSString *string)
return self;
}
-+ (CSSStyleSheet *)_CSSStyleSheetWithImpl:(CSSStyleSheetImpl *)impl
++ (DOMCSSStyleSheet *)_CSSStyleSheetWithImpl:(CSSStyleSheetImpl *)impl
{
if (!impl)
return nil;
@@ -303,9 +304,9 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSMediaList
+// DOMMediaList
- at implementation CSSMediaList
+ at implementation DOMMediaList
- (void)dealloc
{
@@ -352,7 +353,7 @@ static inline int getPropertyID(NSString *string)
@end
- at implementation CSSMediaList (WebCoreInternal)
+ at implementation DOMMediaList (WebCoreInternal)
- (id)_initWithMediaListImpl:(MediaListImpl *)impl
{
@@ -363,7 +364,7 @@ static inline int getPropertyID(NSString *string)
return self;
}
-+ (CSSMediaList *)_mediaListWithImpl:(MediaListImpl *)impl
++ (DOMMediaList *)_mediaListWithImpl:(MediaListImpl *)impl
{
if (!impl)
return nil;
@@ -379,9 +380,9 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSRuleList
+// DOMCSSRuleList
- at implementation CSSRuleList
+ at implementation DOMCSSRuleList
- (void)dealloc
{
@@ -401,14 +402,14 @@ static inline int getPropertyID(NSString *string)
return [self _ruleListImpl]->length();
}
-- (CSSRule *)item:(unsigned long)index
+- (DOMCSSRule *)item:(unsigned long)index
{
- return [CSSRule _ruleWithImpl:[self _ruleListImpl]->item(index)];
+ return [DOMCSSRule _ruleWithImpl:[self _ruleListImpl]->item(index)];
}
@end
- at implementation CSSRuleList (WebCoreInternal)
+ at implementation DOMCSSRuleList (WebCoreInternal)
- (id)_initWithRuleListImpl:(CSSRuleListImpl *)impl
{
@@ -419,7 +420,7 @@ static inline int getPropertyID(NSString *string)
return self;
}
-+ (CSSRuleList *)_ruleListWithImpl:(CSSRuleListImpl *)impl
++ (DOMCSSRuleList *)_ruleListWithImpl:(CSSRuleListImpl *)impl
{
if (!impl)
return nil;
@@ -435,9 +436,9 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSRule
+// DOMCSSRule
- at implementation CSSRule
+ at implementation DOMCSSRule
- (void)dealloc
{
@@ -462,24 +463,24 @@ static inline int getPropertyID(NSString *string)
return [self _ruleImpl]->cssText();
}
-- (void)setCSSText:(NSString *)cssText
+- (void)setCssText:(NSString *)cssText
{
[self _ruleImpl]->setCssText(cssText);
}
-- (CSSStyleSheet *)parentStyleSheet
+- (DOMCSSStyleSheet *)parentStyleSheet
{
- return [CSSStyleSheet _CSSStyleSheetWithImpl:[self _ruleImpl]->parentStyleSheet()];
+ return [DOMCSSStyleSheet _CSSStyleSheetWithImpl:[self _ruleImpl]->parentStyleSheet()];
}
-- (CSSRule *)parentRule
+- (DOMCSSRule *)parentRule
{
- return [CSSRule _ruleWithImpl:[self _ruleImpl]->parentRule()];
+ return [DOMCSSRule _ruleWithImpl:[self _ruleImpl]->parentRule()];
}
@end
- at implementation CSSRule (WebCoreInternal)
+ at implementation DOMCSSRule (WebCoreInternal)
- (id)_initWithRuleImpl:(CSSRuleImpl *)impl
{
@@ -490,7 +491,7 @@ static inline int getPropertyID(NSString *string)
return self;
}
-+ (CSSRule *)_ruleWithImpl:(CSSRuleImpl *)impl
++ (DOMCSSRule *)_ruleWithImpl:(CSSRuleImpl *)impl
{
if (!impl)
return nil;
@@ -502,26 +503,26 @@ static inline int getPropertyID(NSString *string)
Class wrapperClass = nil;
switch (impl->type()) {
- case CSS_UNKNOWN_RULE:
- wrapperClass = [CSSRule class];
+ case DOM_UNKNOWN_RULE:
+ wrapperClass = [DOMCSSRule class];
break;
- case CSS_STYLE_RULE:
- wrapperClass = [CSSStyleRule class];
+ case DOM_STYLE_RULE:
+ wrapperClass = [DOMCSSStyleRule class];
break;
- case CSS_CHARSET_RULE:
- wrapperClass = [CSSCharsetRule class];
+ case DOM_CHARSET_RULE:
+ wrapperClass = [DOMCSSCharsetRule class];
break;
- case CSS_IMPORT_RULE:
- wrapperClass = [CSSImportRule class];
+ case DOM_IMPORT_RULE:
+ wrapperClass = [DOMCSSImportRule class];
break;
- case CSS_MEDIA_RULE:
- wrapperClass = [CSSMediaRule class];
+ case DOM_MEDIA_RULE:
+ wrapperClass = [DOMCSSMediaRule class];
break;
- case CSS_FONT_FACE_RULE:
- wrapperClass = [CSSFontFaceRule class];
+ case DOM_FONT_FACE_RULE:
+ wrapperClass = [DOMCSSFontFaceRule class];
break;
- case CSS_PAGE_RULE:
- wrapperClass = [CSSPageRule class];
+ case DOM_PAGE_RULE:
+ wrapperClass = [DOMCSSPageRule class];
break;
}
return [[[wrapperClass alloc] _initWithRuleImpl:impl] autorelease];
@@ -530,9 +531,9 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSStyleRule
+// DOMCSSStyleRule
- at implementation CSSStyleRule
+ at implementation DOMCSSStyleRule
- (CSSStyleRuleImpl *)_styleRuleImpl
{
@@ -549,31 +550,31 @@ static inline int getPropertyID(NSString *string)
[self _styleRuleImpl]->setSelectorText(selectorText);
}
-- (CSSStyleDeclaration *)style
+- (DOMCSSStyleDeclaration *)style
{
- return [CSSStyleDeclaration _styleDeclarationWithImpl:[self _styleRuleImpl]->style()];
+ return [DOMCSSStyleDeclaration _styleDeclarationWithImpl:[self _styleRuleImpl]->style()];
}
@end
//------------------------------------------------------------------------------------------
-// CSSMediaRule
+// DOMCSSMediaRule
- at implementation CSSMediaRule
+ at implementation DOMCSSMediaRule
- (CSSMediaRuleImpl *)_mediaRuleImpl
{
return reinterpret_cast<CSSMediaRuleImpl *>(_internal);
}
-- (CSSMediaList *)media
+- (DOMMediaList *)media
{
- return [CSSMediaList _mediaListWithImpl:[self _mediaRuleImpl]->media()];
+ return [DOMMediaList _mediaListWithImpl:[self _mediaRuleImpl]->media()];
}
-- (CSSRuleList *)cssRules
+- (DOMCSSRuleList *)cssRules
{
- return [CSSRuleList _ruleListWithImpl:[self _mediaRuleImpl]->cssRules()];
+ return [DOMCSSRuleList _ruleListWithImpl:[self _mediaRuleImpl]->cssRules()];
}
- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index
@@ -589,26 +590,26 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSFontFaceRule
+// DOMCSSFontFaceRule
- at implementation CSSFontFaceRule
+ at implementation DOMCSSFontFaceRule
- (CSSFontFaceRuleImpl *)_fontFaceRuleImpl
{
return reinterpret_cast<CSSFontFaceRuleImpl *>(_internal);
}
-- (CSSStyleDeclaration *)style
+- (DOMCSSStyleDeclaration *)style
{
- return [CSSStyleDeclaration _styleDeclarationWithImpl:[self _fontFaceRuleImpl]->style()];
+ return [DOMCSSStyleDeclaration _styleDeclarationWithImpl:[self _fontFaceRuleImpl]->style()];
}
@end
//------------------------------------------------------------------------------------------
-// CSSPageRule
+// DOMCSSPageRule
- at implementation CSSPageRule
+ at implementation DOMCSSPageRule
- (CSSPageRuleImpl *)_pageRuleImpl
{
@@ -625,26 +626,26 @@ static inline int getPropertyID(NSString *string)
[self _pageRuleImpl]->setSelectorText(selectorText);
}
-- (CSSStyleDeclaration *)style
+- (DOMCSSStyleDeclaration *)style
{
- return [CSSStyleDeclaration _styleDeclarationWithImpl:[self _pageRuleImpl]->style()];
+ return [DOMCSSStyleDeclaration _styleDeclarationWithImpl:[self _pageRuleImpl]->style()];
}
@end
//------------------------------------------------------------------------------------------
-// CSSImportRule
+// DOMCSSImportRule
- at implementation CSSImportRule
+ at implementation DOMCSSImportRule
- (CSSImportRuleImpl *)_importRuleImpl
{
return reinterpret_cast<CSSImportRuleImpl *>(_internal);
}
-- (CSSMediaList *)media
+- (DOMMediaList *)media
{
- return [CSSMediaList _mediaListWithImpl:[self _importRuleImpl]->media()];
+ return [DOMMediaList _mediaListWithImpl:[self _importRuleImpl]->media()];
}
- (NSString *)href
@@ -652,17 +653,17 @@ static inline int getPropertyID(NSString *string)
return [self _importRuleImpl]->href();
}
-- (CSSStyleSheet *)styleSheet
+- (DOMCSSStyleSheet *)styleSheet
{
- return [CSSStyleSheet _CSSStyleSheetWithImpl:[self _importRuleImpl]->styleSheet()];
+ return [DOMCSSStyleSheet _CSSStyleSheetWithImpl:[self _importRuleImpl]->styleSheet()];
}
@end
//------------------------------------------------------------------------------------------
-// CSSCharsetRule
+// DOMCSSCharsetRule
- at implementation CSSCharsetRule
+ at implementation DOMCSSCharsetRule
- (CSSCharsetRuleImpl *)_importRuleImpl
{
@@ -677,9 +678,9 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSStyleDeclaration
+// DOMCSSStyleDeclaration
- at implementation CSSStyleDeclaration
+ at implementation DOMCSSStyleDeclaration
- (void)dealloc
{
@@ -699,7 +700,7 @@ static inline int getPropertyID(NSString *string)
return [self _styleDeclarationImpl]->cssText();
}
-- (void)setCSSText:(NSString *)cssText
+- (void)setCssText:(NSString *)cssText
{
[self _styleDeclarationImpl]->setCssText(cssText);
}
@@ -712,12 +713,12 @@ static inline int getPropertyID(NSString *string)
return [self _styleDeclarationImpl]->getPropertyValue(propid);
}
-- (CSSValue *)getPropertyCSSValue:(NSString *)propertyName
+- (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName
{
int propid = getPropertyID(propertyName);
if (!propid)
return nil;
- return [CSSValue _valueWithImpl:[self _styleDeclarationImpl]->getPropertyCSSValue(propid)];
+ return [DOMCSSValue _valueWithImpl:[self _styleDeclarationImpl]->getPropertyCSSValue(propid)];
}
- (NSString *)removeProperty:(NSString *)propertyName
@@ -757,14 +758,14 @@ static inline int getPropertyID(NSString *string)
return [self _styleDeclarationImpl]->item(index);
}
-- (CSSRule *)parentRule
+- (DOMCSSRule *)parentRule
{
- return [CSSRule _ruleWithImpl:[self _styleDeclarationImpl]->parentRule()];
+ return [DOMCSSRule _ruleWithImpl:[self _styleDeclarationImpl]->parentRule()];
}
@end
- at implementation CSSStyleDeclaration (WebCoreInternal)
+ at implementation DOMCSSStyleDeclaration (WebCoreInternal)
- (id)_initWithStyleDeclarationImpl:(CSSStyleDeclarationImpl *)impl
{
@@ -775,7 +776,7 @@ static inline int getPropertyID(NSString *string)
return self;
}
-+ (CSSStyleDeclaration *)_styleDeclarationWithImpl:(CSSStyleDeclarationImpl *)impl
++ (DOMCSSStyleDeclaration *)_styleDeclarationWithImpl:(CSSStyleDeclarationImpl *)impl
{
if (!impl)
return nil;
@@ -791,9 +792,9 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSValue
+// DOMCSSValue
- at implementation CSSValue
+ at implementation DOMCSSValue
- (void)dealloc
{
@@ -813,7 +814,7 @@ static inline int getPropertyID(NSString *string)
return [self _valueImpl]->cssText();
}
-- (void)setCSSText:(NSString *)cssText
+- (void)setCssText:(NSString *)cssText
{
ERROR("unimplemented");
}
@@ -825,7 +826,7 @@ static inline int getPropertyID(NSString *string)
@end
- at implementation CSSValue (WebCoreInternal)
+ at implementation DOMCSSValue (WebCoreInternal)
- (id)_initWithValueImpl:(CSSValueImpl *)impl
{
@@ -836,7 +837,7 @@ static inline int getPropertyID(NSString *string)
return self;
}
-+ (CSSValue *)_valueWithImpl:(CSSValueImpl *)impl
++ (DOMCSSValue *)_valueWithImpl:(CSSValueImpl *)impl
{
if (!impl)
return nil;
@@ -848,17 +849,17 @@ static inline int getPropertyID(NSString *string)
Class wrapperClass = nil;
switch (impl->cssValueType()) {
- case CSS_INHERIT:
- wrapperClass = [CSSValue class];
+ case DOM_CSS_INHERIT:
+ wrapperClass = [DOMCSSValue class];
break;
- case CSS_PRIMITIVE_VALUE:
- wrapperClass = [CSSPrimitiveValue class];
+ case DOM_CSS_PRIMITIVE_VALUE:
+ wrapperClass = [DOMCSSPrimitiveValue class];
break;
- case CSS_VALUE_LIST:
- wrapperClass = [CSSValueList class];
+ case DOM_CSS_VALUE_LIST:
+ wrapperClass = [DOMCSSValueList class];
break;
- case CSS_CUSTOM:
- wrapperClass = [CSSValue class];
+ case DOM_CSS_CUSTOM:
+ wrapperClass = [DOMCSSValue class];
break;
}
return [[[wrapperClass alloc] _initWithValueImpl:impl] autorelease];
@@ -867,9 +868,9 @@ static inline int getPropertyID(NSString *string)
@end
//------------------------------------------------------------------------------------------
-// CSSPrimitiveValue
+// DOMCSSPrimitiveValue
- at implementation CSSPrimitiveValue
+ at implementation DOMCSSPrimitiveValue
- (CSSPrimitiveValueImpl *)_primitiveValueImpl
{
@@ -906,27 +907,27 @@ static inline int getPropertyID(NSString *string)
return DOMString([self _primitiveValueImpl]->getStringValue());
}
-- (CSSCounter *)getCounterValue
+- (DOMCounter *)getCounterValue
{
- return [CSSCounter _counterWithImpl:[self _primitiveValueImpl]->getCounterValue()];
+ return [DOMCounter _counterWithImpl:[self _primitiveValueImpl]->getCounterValue()];
}
-- (CSSRect *)getRectValue
+- (DOMRect *)getRectValue
{
- return [CSSRect _rectWithImpl:[self _primitiveValueImpl]->getRectValue()];
+ return [DOMRect _rectWithImpl:[self _primitiveValueImpl]->getRectValue()];
}
-- (CSSRGBColor *)getRGBColorValue
+- (DOMRGBColor *)getRGBColorValue
{
- return [CSSRGBColor _RGBColorWithRGB:[self _primitiveValueImpl]->getRGBColorValue()];
+ return [DOMRGBColor _RGBColorWithRGB:[self _primitiveValueImpl]->getRGBColorValue()];
}
@end
//------------------------------------------------------------------------------------------
-// CSSValueList
+// DOMCSSValueList
- at implementation CSSValueList
+ at implementation DOMCSSValueList
- (CSSValueListImpl *)_valueListImpl
{
@@ -938,17 +939,15 @@ static inline int getPropertyID(NSString *string)
return [self _valueListImpl]->length();
}
-- (CSSValue *)item:(unsigned long)index
+- (DOMCSSValue *)item:(unsigned long)index
{
- return [CSSValue _valueWithImpl:[self _valueListImpl]->item(index)];
+ return [DOMCSSValue _valueWithImpl:[self _valueListImpl]->item(index)];
}
@end
//------------------------------------------------------------------------------------------
-// CSSRGBColor
-
-// Wrapping CSSRGBColor objects
+// DOMRGBColor
static CFMutableDictionaryRef wrapperCache = NULL;
@@ -976,7 +975,7 @@ void removeWrapperForRGB(QRgb value)
CFDictionaryRemoveValue(wrapperCache, reinterpret_cast<const void *>(value));
}
- at implementation CSSRGBColor
+ at implementation DOMRGBColor
- (void)dealloc
{
@@ -984,25 +983,25 @@ void removeWrapperForRGB(QRgb value)
[super dealloc];
}
-- (CSSPrimitiveValue *)red
+- (DOMCSSPrimitiveValue *)red
{
QRgb rgb = reinterpret_cast<QRgb>(_internal);
int value = (rgb >> 16) & 0xFF;
- return [CSSPrimitiveValue _valueWithImpl:new CSSPrimitiveValueImpl(value, DOM::CSSPrimitiveValue::CSS_NUMBER)];
+ return [DOMCSSPrimitiveValue _valueWithImpl:new CSSPrimitiveValueImpl(value, DOM::CSSPrimitiveValue::CSS_NUMBER)];
}
-- (CSSPrimitiveValue *)green
+- (DOMCSSPrimitiveValue *)green
{
QRgb rgb = reinterpret_cast<QRgb>(_internal);
int value = (rgb >> 8) & 0xFF;
- return [CSSPrimitiveValue _valueWithImpl:new CSSPrimitiveValueImpl(value, DOM::CSSPrimitiveValue::CSS_NUMBER)];
+ return [DOMCSSPrimitiveValue _valueWithImpl:new CSSPrimitiveValueImpl(value, DOM::CSSPrimitiveValue::CSS_NUMBER)];
}
-- (CSSPrimitiveValue *)blue
+- (DOMCSSPrimitiveValue *)blue
{
QRgb rgb = reinterpret_cast<QRgb>(_internal);
int value = rgb & 0xFF;
- return [CSSPrimitiveValue _valueWithImpl:new CSSPrimitiveValueImpl(value, DOM::CSSPrimitiveValue::CSS_NUMBER)];
+ return [DOMCSSPrimitiveValue _valueWithImpl:new CSSPrimitiveValueImpl(value, DOM::CSSPrimitiveValue::CSS_NUMBER)];
}
- (id)copyWithZone:(NSZone *)zone
@@ -1012,7 +1011,7 @@ void removeWrapperForRGB(QRgb value)
@end
- at implementation CSSRGBColor (WebCoreInternal)
+ at implementation DOMRGBColor (WebCoreInternal)
- (id)_initWithRGB:(QRgb)value
{
@@ -1022,7 +1021,7 @@ void removeWrapperForRGB(QRgb value)
return self;
}
-+ (CSSRGBColor *)_RGBColorWithRGB:(QRgb)value
++ (DOMRGBColor *)_RGBColorWithRGB:(QRgb)value
{
id cachedInstance;
cachedInstance = getWrapperForRGB(value);
@@ -1035,9 +1034,9 @@ void removeWrapperForRGB(QRgb value)
@end
//------------------------------------------------------------------------------------------
-// CSSRect
+// DOMRect
- at implementation CSSRect
+ at implementation DOMRect
- (void)dealloc
{
@@ -1052,24 +1051,24 @@ void removeWrapperForRGB(QRgb value)
return reinterpret_cast<RectImpl *>(_internal);
}
-- (CSSPrimitiveValue *)top
+- (DOMCSSPrimitiveValue *)top
{
- return [CSSPrimitiveValue _valueWithImpl:[self _rectImpl]->top()];
+ return [DOMCSSPrimitiveValue _valueWithImpl:[self _rectImpl]->top()];
}
-- (CSSPrimitiveValue *)right
+- (DOMCSSPrimitiveValue *)right
{
- return [CSSPrimitiveValue _valueWithImpl:[self _rectImpl]->right()];
+ return [DOMCSSPrimitiveValue _valueWithImpl:[self _rectImpl]->right()];
}
-- (CSSPrimitiveValue *)bottom
+- (DOMCSSPrimitiveValue *)bottom
{
- return [CSSPrimitiveValue _valueWithImpl:[self _rectImpl]->bottom()];
+ return [DOMCSSPrimitiveValue _valueWithImpl:[self _rectImpl]->bottom()];
}
-- (CSSPrimitiveValue *)left
+- (DOMCSSPrimitiveValue *)left
{
- return [CSSPrimitiveValue _valueWithImpl:[self _rectImpl]->left()];
+ return [DOMCSSPrimitiveValue _valueWithImpl:[self _rectImpl]->left()];
}
- (id)copyWithZone:(NSZone *)zone
@@ -1079,7 +1078,7 @@ void removeWrapperForRGB(QRgb value)
@end
- at implementation CSSRect (WebCoreInternal)
+ at implementation DOMRect (WebCoreInternal)
- (id)_initWithRectImpl:(RectImpl *)impl
{
@@ -1090,7 +1089,7 @@ void removeWrapperForRGB(QRgb value)
return self;
}
-+ (CSSRect *)_rectWithImpl:(RectImpl *)impl
++ (DOMRect *)_rectWithImpl:(RectImpl *)impl
{
if (!impl)
return nil;
@@ -1106,9 +1105,9 @@ void removeWrapperForRGB(QRgb value)
@end
//------------------------------------------------------------------------------------------
-// CSSCounter
+// DOMCounter
- at implementation CSSCounter
+ at implementation DOMCounter
- (void)dealloc
{
@@ -1145,7 +1144,7 @@ void removeWrapperForRGB(QRgb value)
@end
- at implementation CSSCounter (WebCoreInternal)
+ at implementation DOMCounter (WebCoreInternal)
- (id)_initWithCounterImpl:(CounterImpl *)impl
{
@@ -1156,7 +1155,7 @@ void removeWrapperForRGB(QRgb value)
return self;
}
-+ (CSSCounter *)_counterWithImpl:(CounterImpl *)impl
++ (DOMCounter *)_counterWithImpl:(CounterImpl *)impl
{
if (!impl)
return nil;
@@ -1172,4 +1171,3 @@ void removeWrapperForRGB(QRgb value)
@end
//------------------------------------------------------------------------------------------
-
diff --git a/WebCore/kwq/DOM.h b/WebCore/kwq/DOM.h
index 1aa343a..0f4c44a 100644
--- a/WebCore/kwq/DOM.h
+++ b/WebCore/kwq/DOM.h
@@ -23,8 +23,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#import <Foundation/Foundation.h>
-
//=========================================================================
//=========================================================================
//=========================================================================
@@ -38,313 +36,11 @@
//=========================================================================
//=========================================================================
-enum {
- //
- // DOM node types
- //
- DOM_ELEMENT_NODE = 1,
- DOM_ATTRIBUTE_NODE = 2,
- DOM_TEXT_NODE = 3,
- DOM_CDATA_SECTION_NODE = 4,
- DOM_ENTITY_REFERENCE_NODE = 5,
- DOM_ENTITY_NODE = 6,
- DOM_PROCESSING_INSTRUCTION_NODE = 7,
- DOM_COMMENT_NODE = 8,
- DOM_DOCUMENT_NODE = 9,
- DOM_DOCUMENT_TYPE_NODE = 10,
- DOM_DOCUMENT_FRAGMENT_NODE = 11,
- DOM_NOTATION_NODE = 12,
- //
- // DOM core exception codes
- //
- DOM_INDEX_SIZE_ERR = 1,
- DOM_DOMSTRING_SIZE_ERR = 2,
- DOM_HIERARCHY_REQUEST_ERR = 3,
- DOM_WRONG_DOCUMENT_ERR = 4,
- DOM_INVALID_CHARACTER_ERR = 5,
- DOM_NO_DATA_ALLOWED_ERR = 6,
- DOM_NO_MODIFICATION_ALLOWED_ERR = 7,
- DOM_NOT_FOUND_ERR = 8,
- DOM_NOT_SUPPORTED_ERR = 9,
- DOM_INUSE_ATTRIBUTE_ERR = 10,
- DOM_INVALID_STATE_ERR = 11,
- DOM_SYNTAX_ERR = 12,
- DOM_INVALID_MODIFICATION_ERR = 13,
- DOM_NAMESPACE_ERR = 14,
- DOM_INVALID_ACCESS_ERR = 15,
- //
- // DOM range exception codes
- //
- DOM_BAD_BOUNDARYPOINTS_ERR = 1,
- DOM_INVALID_NODE_TYPE_ERR = 2,
- //
- // DOM Range comparison codes
- //
- DOM_START_TO_START = 0,
- DOM_START_TO_END = 1,
- DOM_END_TO_END = 2,
- DOM_END_TO_START = 3,
-};
-
-extern NSString * const DOMException;
-extern NSString * const DOMRangeException;
-
- at class CSSStyleDeclaration;
- at class CSSStyleSheet;
- at class DOMAttr;
- at class DOMCDATASection;
- at class DOMComment;
- at class DOMDocument;
- at class DOMDocumentType;
- at class DOMElement;
- at class DOMEntityReference;
- at class DOMNamedNodeMap;
- at class DOMNodeList;
- at class DOMProcessingInstruction;
- at class DOMRange;
- at class DOMStyleSheetList;
- at class DOMText;
-
- at protocol DOMDocumentRange;
- at protocol DOMViewCSS;
- at protocol DOMDocumentCSS;
- at protocol DOMImplementationCSS;
- at protocol DOMElementCSSInlineStyle;
-
-typedef struct DOMObjectInternal DOMObjectInternal;
-
- at interface DOMObject : NSObject <NSCopying>
-{
- DOMObjectInternal *_internal;
-}
- at end
-
- at interface DOMNode : DOMObject
-- (NSString *)nodeName;
-- (NSString *)nodeValue;
-- (void)setNodeValue:(NSString *)string;
-- (unsigned short)nodeType;
-- (DOMNode *)parentNode;
-- (DOMNodeList *)childNodes;
-- (DOMNode *)firstChild;
-- (DOMNode *)lastChild;
-- (DOMNode *)previousSibling;
-- (DOMNode *)nextSibling;
-- (DOMNamedNodeMap *)attributes;
-- (DOMDocument *)ownerDocument;
-- (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild;
-- (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild;
-- (DOMNode *)removeChild:(DOMNode *)oldChild;
-- (DOMNode *)appendChild:(DOMNode *)newChild;
-- (BOOL)hasChildNodes;
-- (DOMNode *)cloneNode:(BOOL)deep;
-- (void)normalize;
-- (BOOL)isSupported:(NSString *)feature :(NSString *)version;
-- (NSString *)namespaceURI;
-- (NSString *)prefix;
-- (void)setPrefix:(NSString *)prefix;
-- (NSString *)localName;
-- (BOOL)hasAttributes;
-- (NSString *)HTMLString;
- at end
-
- at interface DOMNamedNodeMap : DOMObject
-- (DOMNode *)getNamedItem:(NSString *)name;
-- (DOMNode *)setNamedItem:(DOMNode *)arg;
-- (DOMNode *)removeNamedItem:(NSString *)name;
-- (DOMNode *)item:(unsigned long)index;
-- (unsigned long)length;
-- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMNode *)setNamedItemNS:(DOMNode *)arg;
-- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
- at end
-
-
- at interface DOMNodeList : DOMObject
-- (DOMNode *)item:(unsigned long)index;
-- (unsigned long)length;
- at end
-
-
- at interface DOMImplementation : DOMObject <DOMImplementationCSS>
-- (BOOL)hasFeature:(NSString *)feature :(NSString *)version;
-- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;
-- (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype;
-- (CSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;
- at end
-
-
- at interface DOMDocumentFragment : DOMNode
- at end
-
-
- at interface DOMDocument : DOMNode <DOMDocumentRange, DOMViewCSS, DOMDocumentCSS>
-- (DOMDocumentType *)doctype;
-- (DOMImplementation *)implementation;
-- (DOMElement *)documentElement;
-- (DOMElement *)createElement:(NSString *)tagName;
-- (DOMDocumentFragment *)createDocumentFragment;
-- (DOMText *)createTextNode:(NSString *)data;
-- (DOMComment *)createComment:(NSString *)data;
-- (DOMCDATASection *)createCDATASection:(NSString *)data;
-- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data;
-- (DOMAttr *)createAttribute:(NSString *)name;
-- (DOMEntityReference *)createEntityReference:(NSString *)name;
-- (DOMNodeList *)getElementsByTagName:(NSString *)tagname;
-- (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep;
-- (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
-- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
-- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMElement *)getElementById:(NSString *)elementId;
-- (DOMRange *)createRange;
-- (CSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
-- (CSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
-- (DOMStyleSheetList *)styleSheets;
- at end
-
-
- at interface DOMCharacterData : DOMNode
-- (NSString *)data;
-- (void)setData:(NSString *)data;
-- (unsigned long)length;
-- (NSString *)substringData:(unsigned long)offset :(unsigned long)count;
-- (void)appendData:(NSString *)arg;
-- (void)insertData:(unsigned long)offset :(NSString *)arg;
-- (void)deleteData:(unsigned long)offset :(unsigned long) count;
-- (void)replaceData:(unsigned long)offset :(unsigned long)count :(NSString *)arg;
- at end
-
-
- at interface DOMAttr : DOMNode
-- (NSString *)name;
-- (BOOL)specified;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
-- (DOMElement *)ownerElement;
- at end
-
-
- at interface DOMElement : DOMNode <DOMElementCSSInlineStyle>
-- (NSString *)tagName;
-- (NSString *)getAttribute:(NSString *)name;
-- (void)setAttribute:(NSString *)name :(NSString *)value;
-- (void)removeAttribute:(NSString *)name;
-- (DOMAttr *)getAttributeNode:(NSString *)name;
-- (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr;
-- (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr;
-- (DOMNodeList *)getElementsByTagName:(NSString *)name;
-- (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;
-- (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr;
-- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
-- (BOOL)hasAttribute:(NSString *)name;
-- (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (CSSStyleDeclaration *)style;
- at end
-
-
- at interface DOMText : DOMCharacterData
-- (DOMText *)splitText:(unsigned long)offset;
- at end
-
-
- at interface DOMComment : DOMCharacterData
- at end
-
-
- at interface DOMCDATASection : DOMText
- at end
-
-
- at interface DOMDocumentType : DOMNode
-- (NSString *)name;
-- (DOMNamedNodeMap *)entities;
-- (DOMNamedNodeMap *)notations;
-- (NSString *)publicId;
-- (NSString *)systemId;
-- (NSString *)internalSubset;
- at end
-
-
- at interface DOMNotation : DOMNode
-- (NSString *)publicId;
-- (NSString *)systemId;
- at end
-
-
- at interface DOMEntity : DOMNode
-- (NSString *)publicId;
-- (NSString *)systemId;
-- (NSString *)notationName;
- at end
-
-
- at interface DOMEntityReference : DOMNode
- at end
-
-
- at interface DOMProcessingInstruction : DOMNode
-- (NSString *)target;
-- (NSString *)data;
-- (void)setData:(NSString *)data;
- at end
-
-
- at interface DOMRange : DOMObject
-- (DOMNode *)startContainer;
-- (long)startOffset;
-- (DOMNode *)endContainer;
-- (long)endOffset;
-- (BOOL)collapsed;
-- (DOMNode *)commonAncestorContainer;
-- (void)setStart:(DOMNode *)refNode :(long)offset;
-- (void)setEnd:(DOMNode *)refNode :(long)offset;
-- (void)setStartBefore:(DOMNode *)refNode;
-- (void)setStartAfter:(DOMNode *)refNode;
-- (void)setEndBefore:(DOMNode *)refNode;
-- (void)setEndAfter:(DOMNode *)refNode;
-- (void)collapse:(BOOL)toStart;
-- (void)selectNode:(DOMNode *)refNode;
-- (void)selectNodeContents:(DOMNode *)refNode;
-- (short)compareBoundaryPoints:(unsigned short)how :(DOMRange *)sourceRange;
-- (void)deleteContents;
-- (DOMDocumentFragment *)extractContents;
-- (DOMDocumentFragment *)cloneContents;
-- (void)insertNode:(DOMNode *)newNode;
-- (void)surroundContents:(DOMNode *)newParent;
-- (DOMRange *)cloneRange;
-- (NSString *)toString;
-- (void)detach;
- at end
-
-
- at protocol DOMDocumentRange
-- (DOMRange *)createRange;
- at end
-
-
- at protocol DOMViewCSS
-- (CSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
- at end
-
-
- at protocol DOMDocumentStyle
-- (DOMStyleSheetList *)styleSheets;
- at end
-
-
- at protocol DOMDocumentCSS <DOMDocumentStyle>
-- (CSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
- at end
-
-
- at protocol DOMImplementationCSS
-- (CSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;
- at end
-
-
- at protocol DOMElementCSSInlineStyle
-- (CSSStyleDeclaration *)style;
- at end
+#import "DOMCore.h"
+#import "DOMViews.h"
+#import "DOMEvents.h"
+#import "DOMStylesheets.h"
+#import "DOMCSS.h"
+#import "DOMTraversal.h"
+#import "DOMRange.h"
+#import "DOMHTML.h"
diff --git a/WebCore/kwq/DOM.mm b/WebCore/kwq/DOM.mm
index 3a7d6af..e08cb63 100644
--- a/WebCore/kwq/DOM.mm
+++ b/WebCore/kwq/DOM.mm
@@ -45,7 +45,6 @@
#import <xml/dom2_rangeimpl.h>
#import <xml/dom2_viewsimpl.h>
-#import "DOM-CSS.h"
#import "DOMInternal.h"
#import "KWQAssertions.h"
@@ -668,7 +667,7 @@ inline Document DocumentImpl::createInstance(DocumentImpl *impl)
return static_cast<DOMDocument *>([DOMNode _nodeWithImpl:impl]);
}
-- (CSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media
+- (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media
{
ASSERT(title);
ASSERT(media);
@@ -676,7 +675,7 @@ inline Document DocumentImpl::createInstance(DocumentImpl *impl)
int exceptionCode = 0;
DOMString titleString(title);
DOMString mediaString(media);
- CSSStyleSheet *result = [CSSStyleSheet _CSSStyleSheetWithImpl:[self _DOMImplementationImpl]->createCSSStyleSheet(titleString.implementation(), mediaString.implementation(), exceptionCode)];
+ DOMCSSStyleSheet *result = [DOMCSSStyleSheet _CSSStyleSheetWithImpl:[self _DOMImplementationImpl]->createCSSStyleSheet(titleString.implementation(), mediaString.implementation(), exceptionCode)];
raiseOnDOMError(exceptionCode);
return result;
}
@@ -885,14 +884,14 @@ inline Document DocumentImpl::createInstance(DocumentImpl *impl)
return [DOMRange _rangeWithImpl:[self _documentImpl]->createRange()];
}
-- (CSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt
+- (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt
{
ElementImpl *elementImpl = [elt _elementImpl];
DOMString pseudoEltString(pseudoElt);
- return [CSSStyleDeclaration _styleDeclarationWithImpl:[self _documentImpl]->defaultView()->getComputedStyle(elementImpl, pseudoEltString.implementation())];
+ return [DOMCSSStyleDeclaration _styleDeclarationWithImpl:[self _documentImpl]->defaultView()->getComputedStyle(elementImpl, pseudoEltString.implementation())];
}
-- (CSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
+- (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
{
// FIXME: This is unimplemented by khtml,
// so for now, we just return the computed style
@@ -1236,11 +1235,11 @@ inline Document DocumentImpl::createInstance(DocumentImpl *impl)
return element.hasAttributeNS(namespaceURI, localName);
}
-- (CSSStyleDeclaration *)style
+- (DOMCSSStyleDeclaration *)style
{
ElementImpl *impl = [self _elementImpl];
if (impl->isHTMLElement())
- return [CSSStyleDeclaration _styleDeclarationWithImpl:static_cast<HTMLElementImpl *>(impl)->getInlineStyleDecl()];
+ return [DOMCSSStyleDeclaration _styleDeclarationWithImpl:static_cast<HTMLElementImpl *>(impl)->getInlineStyleDecl()];
return nil;
}
diff --git a/WebCore/kwq/DOMCSS.h b/WebCore/kwq/DOMCSS.h
new file mode 100644
index 0000000..5f20405
--- /dev/null
+++ b/WebCore/kwq/DOMCSS.h
@@ -0,0 +1,470 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMStylesheets.h"
+#import "DOMViews.h"
+
+ at class DOMCounter;
+ at class DOMCSSRule;
+ at class DOMCSSStyleDeclaration;
+ at class DOMCSSStyleSheet;
+ at class DOMCSSValue;
+ at class DOMRect;
+ at class DOMRGBColor;
+
+ at interface DOMCSSRuleList : DOMObject
+- (unsigned long)length;
+- (DOMCSSRule *)item:(unsigned long)index;
+ at end
+
+enum {
+ // DOMCSSRule RuleType
+ DOM_UNKNOWN_RULE = 0,
+ DOM_STYLE_RULE = 1,
+ DOM_CHARSET_RULE = 2,
+ DOM_IMPORT_RULE = 3,
+ DOM_MEDIA_RULE = 4,
+ DOM_FONT_FACE_RULE = 5,
+ DOM_PAGE_RULE = 6,
+};
+
+ at interface DOMCSSRule : DOMObject
+- (unsigned short)type;
+- (NSString *)cssText;
+- (void)setCssText:(NSString *)cssText;
+- (DOMCSSStyleSheet *)parentStyleSheet;
+- (DOMCSSRule *)parentRule;
+ at end
+
+ at interface DOMCSSStyleRule : DOMCSSRule
+- (NSString *)selectorText;
+- (void)setSelectorText:(NSString *)selectorText;
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSSMediaRule : DOMCSSRule
+- (DOMMediaList *)media;
+- (DOMCSSRuleList *)cssRules;
+- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index;
+- (void)deleteRule:(unsigned long)index;
+ at end
+
+ at interface DOMCSSFontFaceRule : DOMCSSRule
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSSPageRule : DOMCSSRule
+- (NSString *)selectorText;
+- (void)setSelectorText:(NSString *)selectorText;
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSSImportRule : DOMCSSRule
+- (DOMMediaList *)media;
+- (NSString *)href;
+- (DOMCSSStyleSheet *)styleSheet;
+ at end
+
+ at interface DOMCSSCharsetRule : DOMCSSRule
+- (NSString *)encoding;
+ at end
+
+ at interface DOMCSSUnknownRule : DOMCSSRule
+ at end
+
+ at interface DOMCSSStyleDeclaration : DOMObject
+- (NSString *)cssText;
+- (void)setCssText:(NSString *)cssText;
+- (NSString *)getPropertyValue:(NSString *)propertyName;
+- (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName;
+- (NSString *)removeProperty:(NSString *)propertyName;
+- (NSString *)getPropertyPriority:(NSString *)propertyName;
+- (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority;
+- (unsigned long)length;
+- (NSString *)item:(unsigned long)index;
+- (DOMCSSRule *)parentRule;
+ at end
+
+enum {
+ // DOMCSSValue UnitTypes
+ DOM_CSS_INHERIT = 0,
+ DOM_CSS_PRIMITIVE_VALUE = 1,
+ DOM_CSS_VALUE_LIST = 2,
+ DOM_CSS_CUSTOM = 3,
+};
+
+ at interface DOMCSSValue : DOMObject
+- (NSString *)cssText;
+- (void)setCssText:(NSString *)cssText;
+- (unsigned short)cssValueType;
+ at end
+
+enum {
+ // DOMCSSPrimitiveValue UnitTypes
+ DOM_CSS_UNKNOWN = 0,
+ DOM_CSS_NUMBER = 1,
+ DOM_CSS_PERCENTAGE = 2,
+ DOM_CSS_EMS = 3,
+ DOM_CSS_EXS = 4,
+ DOM_CSS_PX = 5,
+ DOM_CSS_CM = 6,
+ DOM_CSS_MM = 7,
+ DOM_CSS_IN = 8,
+ DOM_CSS_PT = 9,
+ DOM_CSS_PC = 10,
+ DOM_CSS_DEG = 11,
+ DOM_CSS_RAD = 12,
+ DOM_CSS_GRAD = 13,
+ DOM_CSS_MS = 14,
+ DOM_CSS_S = 15,
+ DOM_CSS_HZ = 16,
+ DOM_CSS_KHZ = 17,
+ DOM_CSS_DIMENSION = 18,
+ DOM_CSS_STRING = 19,
+ DOM_CSS_URI = 20,
+ DOM_CSS_IDENT = 21,
+ DOM_CSS_ATTR = 22,
+ DOM_CSS_COUNTER = 23,
+ DOM_CSS_RECT = 24,
+ DOM_CSS_RGBCOLOR = 25,
+};
+
+ at interface DOMCSSPrimitiveValue : DOMCSSValue
+- (unsigned short)primitiveType;
+- (void)setFloatValue:(unsigned short)unitType :(float)floatValue;
+- (float)getFloatValue:(unsigned short)unitType;
+- (void)setStringValue:(unsigned short)stringType :(NSString *)stringValue;
+- (NSString *)getStringValue;
+- (DOMCounter *)getCounterValue;
+- (DOMRect *)getRectValue;
+- (DOMRGBColor *)getRGBColorValue;
+ at end
+
+ at interface DOMCSSValueList : DOMCSSValue
+- (unsigned long)length;
+- (DOMCSSValue *)item:(unsigned long)index;
+ at end
+
+ at interface DOMRGBColor : DOMObject
+- (DOMCSSPrimitiveValue *)red;
+- (DOMCSSPrimitiveValue *)green;
+- (DOMCSSPrimitiveValue *)blue;
+ at end
+
+ at interface DOMRect : DOMObject
+- (DOMCSSPrimitiveValue *)top;
+- (DOMCSSPrimitiveValue *)right;
+- (DOMCSSPrimitiveValue *)bottom;
+- (DOMCSSPrimitiveValue *)left;
+ at end
+
+ at interface DOMCounter : DOMObject
+- (NSString *)identifier;
+- (NSString *)listStyle;
+- (NSString *)separator;
+ at end
+
+ at interface DOMElement (DOMElementCSSInlineStyle)
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSS2Properties : DOMObject
+- (NSString *)azimuth;
+- (void)setAzimuth:(NSString *)azimuth;
+- (NSString *)background;
+- (void)setBackground:(NSString *)background;
+- (NSString *)backgroundAttachment;
+- (void)setBackgroundAttachment:(NSString *)backgroundAttachment;
+- (NSString *)backgroundColor;
+- (void)setBackgroundColor:(NSString *)backgroundColor;
+- (NSString *)backgroundImage;
+- (void)setBackgroundImage:(NSString *)backgroundImage;
+- (NSString *)backgroundPosition;
+- (void)setBackgroundPosition:(NSString *)backgroundPosition;
+- (NSString *)backgroundRepeat;
+- (void)setBackgroundRepeat:(NSString *)backgroundRepeat;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)borderCollapse;
+- (void)setBorderCollapse:(NSString *)borderCollapse;
+- (NSString *)borderColor;
+- (void)setBorderColor:(NSString *)borderColor;
+- (NSString *)borderSpacing;
+- (void)setBorderSpacing:(NSString *)borderSpacing;
+- (NSString *)borderStyle;
+- (void)setBorderStyle:(NSString *)borderStyle;
+- (NSString *)borderTop;
+- (void)setBorderTop:(NSString *)borderTop;
+- (NSString *)borderRight;
+- (void)setBorderRight:(NSString *)borderRight;
+- (NSString *)borderBottom;
+- (void)setBorderBottom:(NSString *)borderBottom;
+- (NSString *)borderLeft;
+- (void)setBorderLeft:(NSString *)borderLeft;
+- (NSString *)borderTopColor;
+- (void)setBorderTopColor:(NSString *)borderTopColor;
+- (NSString *)borderRightColor;
+- (void)setBorderRightColor:(NSString *)borderRightColor;
+- (NSString *)borderBottomColor;
+- (void)setBorderBottomColor:(NSString *)borderBottomColor;
+- (NSString *)borderLeftColor;
+- (void)setBorderLeftColor:(NSString *)borderLeftColor;
+- (NSString *)borderTopStyle;
+- (void)setBorderTopStyle:(NSString *)borderTopStyle;
+- (NSString *)borderRightStyle;
+- (void)setBorderRightStyle:(NSString *)borderRightStyle;
+- (NSString *)borderBottomStyle;
+- (void)setBorderBottomStyle:(NSString *)borderBottomStyle;
+- (NSString *)borderLeftStyle;
+- (void)setBorderLeftStyle:(NSString *)borderLeftStyle;
+- (NSString *)borderTopWidth;
+- (void)setBorderTopWidth:(NSString *)borderTopWidth;
+- (NSString *)borderRightWidth;
+- (void)setBorderRightWidth:(NSString *)borderRightWidth;
+- (NSString *)borderBottomWidth;
+- (void)setBorderBottomWidth:(NSString *)borderBottomWidth;
+- (NSString *)borderLeftWidth;
+- (void)setBorderLeftWidth:(NSString *)borderLeftWidth;
+- (NSString *)borderWidth;
+- (void)setBorderWidth:(NSString *)borderWidth;
+- (NSString *)bottom;
+- (void)setBottom:(NSString *)bottom;
+- (NSString *)captionSide;
+- (void)setCaptionSide:(NSString *)captionSide;
+- (NSString *)clear;
+- (void)setClear:(NSString *)clear;
+- (NSString *)clip;
+- (void)setClip:(NSString *)clip;
+- (NSString *)color;
+- (void)setColor:(NSString *)color;
+- (NSString *)content;
+- (void)setContent:(NSString *)content;
+- (NSString *)counterIncrement;
+- (void)setCounterIncrement:(NSString *)counterIncrement;
+- (NSString *)counterReset;
+- (void)setCounterReset:(NSString *)counterReset;
+- (NSString *)cue;
+- (void)setCue:(NSString *)cue;
+- (NSString *)cueAfter;
+- (void)setCueAfter:(NSString *)cueAfter;
+- (NSString *)cueBefore;
+- (void)setCueBefore:(NSString *)cueBefore;
+- (NSString *)cursor;
+- (void)setCursor:(NSString *)cursor;
+- (NSString *)direction;
+- (void)setDirection:(NSString *)direction;
+- (NSString *)display;
+- (void)setDisplay:(NSString *)display;
+- (NSString *)elevation;
+- (void)setElevation:(NSString *)elevation;
+- (NSString *)emptyCells;
+- (void)setEmptyCells:(NSString *)emptyCells;
+- (NSString *)cssFloat;
+- (void)setCssFloat:(NSString *)cssFloat;
+- (NSString *)font;
+- (void)setFont:(NSString *)font;
+- (NSString *)fontFamily;
+- (void)setFontFamily:(NSString *)fontFamily;
+- (NSString *)fontSize;
+- (void)setFontSize:(NSString *)fontSize;
+- (NSString *)fontSizeAdjust;
+- (void)setFontSizeAdjust:(NSString *)fontSizeAdjust;
+- (NSString *)fontStretch;
+- (void)setFontStretch:(NSString *)fontStretch;
+- (NSString *)fontStyle;
+- (void)setFontStyle:(NSString *)fontStyle;
+- (NSString *)fontVariant;
+- (void)setFontVariant:(NSString *)fontVariant;
+- (NSString *)fontWeight;
+- (void)setFontWeight:(NSString *)fontWeight;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (NSString *)left;
+- (void)setLeft:(NSString *)left;
+- (NSString *)letterSpacing;
+- (void)setLetterSpacing:(NSString *)letterSpacing;
+- (NSString *)lineHeight;
+- (void)setLineHeight:(NSString *)lineHeight;
+- (NSString *)listStyle;
+- (void)setListStyle:(NSString *)listStyle;
+- (NSString *)listStyleImage;
+- (void)setListStyleImage:(NSString *)listStyleImage;
+- (NSString *)listStylePosition;
+- (void)setListStylePosition:(NSString *)listStylePosition;
+- (NSString *)listStyleType;
+- (void)setListStyleType:(NSString *)listStyleType;
+- (NSString *)margin;
+- (void)setMargin:(NSString *)margin;
+- (NSString *)marginTop;
+- (void)setMarginTop:(NSString *)marginTop;
+- (NSString *)marginRight;
+- (void)setMarginRight:(NSString *)marginRight;
+- (NSString *)marginBottom;
+- (void)setMarginBottom:(NSString *)marginBottom;
+- (NSString *)marginLeft;
+- (void)setMarginLeft:(NSString *)marginLeft;
+- (NSString *)markerOffset;
+- (void)setMarkerOffset:(NSString *)markerOffset;
+- (NSString *)marks;
+- (void)setMarks:(NSString *)marks;
+- (NSString *)maxHeight;
+- (void)setMaxHeight:(NSString *)maxHeight;
+- (NSString *)maxWidth;
+- (void)setMaxWidth:(NSString *)maxWidth;
+- (NSString *)minHeight;
+- (void)setMinHeight:(NSString *)minHeight;
+- (NSString *)minWidth;
+- (void)setMinWidth:(NSString *)minWidth;
+- (NSString *)orphans;
+- (void)setOrphans:(NSString *)orphans;
+- (NSString *)outline;
+- (void)setOutline:(NSString *)outline;
+- (NSString *)outlineColor;
+- (void)setOutlineColor:(NSString *)outlineColor;
+- (NSString *)outlineStyle;
+- (void)setOutlineStyle:(NSString *)outlineStyle;
+- (NSString *)outlineWidth;
+- (void)setOutlineWidth:(NSString *)outlineWidth;
+- (NSString *)overflow;
+- (void)setOverflow:(NSString *)overflow;
+- (NSString *)padding;
+- (void)setPadding:(NSString *)padding;
+- (NSString *)paddingTop;
+- (void)setPaddingTop:(NSString *)paddingTop;
+- (NSString *)paddingRight;
+- (void)setPaddingRight:(NSString *)paddingRight;
+- (NSString *)paddingBottom;
+- (void)setPaddingBottom:(NSString *)paddingBottom;
+- (NSString *)paddingLeft;
+- (void)setPaddingLeft:(NSString *)paddingLeft;
+- (NSString *)page;
+- (void)setPage:(NSString *)page;
+- (NSString *)pageBreakAfter;
+- (void)setPageBreakAfter:(NSString *)pageBreakAfter;
+- (NSString *)pageBreakBefore;
+- (void)setPageBreakBefore:(NSString *)pageBreakBefore;
+- (NSString *)pageBreakInside;
+- (void)setPageBreakInside:(NSString *)pageBreakInside;
+- (NSString *)pause;
+- (void)setPause:(NSString *)pause;
+- (NSString *)pauseAfter;
+- (void)setPauseAfter:(NSString *)pauseAfter;
+- (NSString *)pauseBefore;
+- (void)setPauseBefore:(NSString *)pauseBefore;
+- (NSString *)pitch;
+- (void)setPitch:(NSString *)pitch;
+- (NSString *)pitchRange;
+- (void)setPitchRange:(NSString *)pitchRange;
+- (NSString *)playDuring;
+- (void)setPlayDuring:(NSString *)playDuring;
+- (NSString *)position;
+- (void)setPosition:(NSString *)position;
+- (NSString *)quotes;
+- (void)setQuotes:(NSString *)quotes;
+- (NSString *)richness;
+- (void)setRichness:(NSString *)richness;
+- (NSString *)right;
+- (void)setRight:(NSString *)right;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+- (NSString *)speak;
+- (void)setSpeak:(NSString *)speak;
+- (NSString *)speakHeader;
+- (void)setSpeakHeader:(NSString *)speakHeader;
+- (NSString *)speakNumeral;
+- (void)setSpeakNumeral:(NSString *)speakNumeral;
+- (NSString *)speakPunctuation;
+- (void)setSpeakPunctuation:(NSString *)speakPunctuation;
+- (NSString *)speechRate;
+- (void)setSpeechRate:(NSString *)speechRate;
+- (NSString *)stress;
+- (void)setStress:(NSString *)stress;
+- (NSString *)tableLayout;
+- (void)setTableLayout:(NSString *)tableLayout;
+- (NSString *)textAlign;
+- (void)setTextAlign:(NSString *)textAlign;
+- (NSString *)textDecoration;
+- (void)setTextDecoration:(NSString *)textDecoration;
+- (NSString *)textIndent;
+- (void)setTextIndent:(NSString *)textIndent;
+- (NSString *)textShadow;
+- (void)setTextShadow:(NSString *)textShadow;
+- (NSString *)textTransform;
+- (void)setTextTransform:(NSString *)textTransform;
+- (NSString *)top;
+- (void)setTop:(NSString *)top;
+- (NSString *)unicodeBidi;
+- (void)setUnicodeBidi:(NSString *)unicodeBidi;
+- (NSString *)verticalAlign;
+- (void)setVerticalAlign:(NSString *)verticalAlign;
+- (NSString *)visibility;
+- (void)setVisibility:(NSString *)visibility;
+- (NSString *)voiceFamily;
+- (void)setVoiceFamily:(NSString *)voiceFamily;
+- (NSString *)volume;
+- (void)setVolume:(NSString *)volume;
+- (NSString *)whiteSpace;
+- (void)setWhiteSpace:(NSString *)whiteSpace;
+- (NSString *)widows;
+- (void)setWidows:(NSString *)widows;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (NSString *)wordSpacing;
+- (void)setWordSpacing:(NSString *)wordSpacing;
+- (NSString *)zIndex;
+- (void)setZIndex:(NSString *)zIndex;
+ at end
+
+ at interface DOMCSSStyleSheet : DOMStyleSheet
+- (DOMCSSRule *)ownerRule;
+- (DOMCSSRuleList *)cssRules;
+- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index;
+- (void)deleteRule:(unsigned long)index;
+ at end
+
+ at interface DOMDocument (DOMViewCSS)
+- (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
+ at end
+
+ at interface DOMDocument (DOMDocumentCSS)
+- (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
+ at end
+
+ at interface DOMImplementation (DOMImplementationCSS)
+- (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;
+ at end
diff --git a/WebCore/kwq/DOMCore.h b/WebCore/kwq/DOMCore.h
new file mode 100644
index 0000000..c86c0d0
--- /dev/null
+++ b/WebCore/kwq/DOMCore.h
@@ -0,0 +1,246 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import <Foundation/Foundation.h>
+
+ at class DOMDocument;
+ at class DOMDocumentType;
+ at class DOMElement;
+ at class DOMNamedNodeMap;
+ at class DOMNodeList;
+
+typedef struct DOMObjectInternal DOMObjectInternal;
+
+ at interface DOMObject : NSObject <NSCopying>
+{
+ DOMObjectInternal *_internal;
+}
+ at end
+
+typedef unsigned long long DOMTimeStamp;
+
+extern NSString * const DOMException;
+
+enum {
+ //
+ // DOM exception codes
+ //
+ DOM_INDEX_SIZE_ERR = 1,
+ DOM_DOMSTRING_SIZE_ERR = 2,
+ DOM_HIERARCHY_REQUEST_ERR = 3,
+ DOM_WRONG_DOCUMENT_ERR = 4,
+ DOM_INVALID_CHARACTER_ERR = 5,
+ DOM_NO_DATA_ALLOWED_ERR = 6,
+ DOM_NO_MODIFICATION_ALLOWED_ERR = 7,
+ DOM_NOT_FOUND_ERR = 8,
+ DOM_NOT_SUPPORTED_ERR = 9,
+ DOM_INUSE_ATTRIBUTE_ERR = 10,
+ DOM_INVALID_STATE_ERR = 11,
+ DOM_SYNTAX_ERR = 12,
+ DOM_INVALID_MODIFICATION_ERR = 13,
+ DOM_NAMESPACE_ERR = 14,
+ DOM_INVALID_ACCESS_ERR = 15,
+};
+
+ at interface DOMImplementation : DOMObject
+- (BOOL)hasFeature:(NSString *)feature :(NSString *)version;
+- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;
+- (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype;
+ at end
+
+enum {
+ //
+ // DOM node types
+ //
+ DOM_ELEMENT_NODE = 1,
+ DOM_ATTRIBUTE_NODE = 2,
+ DOM_TEXT_NODE = 3,
+ DOM_CDATA_SECTION_NODE = 4,
+ DOM_ENTITY_REFERENCE_NODE = 5,
+ DOM_ENTITY_NODE = 6,
+ DOM_PROCESSING_INSTRUCTION_NODE = 7,
+ DOM_COMMENT_NODE = 8,
+ DOM_DOCUMENT_NODE = 9,
+ DOM_DOCUMENT_TYPE_NODE = 10,
+ DOM_DOCUMENT_FRAGMENT_NODE = 11,
+ DOM_NOTATION_NODE = 12,
+};
+
+ at interface DOMNode : DOMObject
+- (NSString *)nodeName;
+- (NSString *)nodeValue;
+- (void)setNodeValue:(NSString *)string;
+- (unsigned short)nodeType;
+- (DOMNode *)parentNode;
+- (DOMNodeList *)childNodes;
+- (DOMNode *)firstChild;
+- (DOMNode *)lastChild;
+- (DOMNode *)previousSibling;
+- (DOMNode *)nextSibling;
+- (DOMNamedNodeMap *)attributes;
+- (DOMDocument *)ownerDocument;
+- (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild;
+- (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild;
+- (DOMNode *)removeChild:(DOMNode *)oldChild;
+- (DOMNode *)appendChild:(DOMNode *)newChild;
+- (BOOL)hasChildNodes;
+- (DOMNode *)cloneNode:(BOOL)deep;
+- (void)normalize;
+- (BOOL)isSupported:(NSString *)feature :(NSString *)version;
+- (NSString *)namespaceURI;
+- (NSString *)prefix;
+- (void)setPrefix:(NSString *)prefix;
+- (NSString *)localName;
+- (BOOL)hasAttributes;
+ at end
+
+ at interface DOMNodeList : DOMObject
+- (DOMNode *)item:(unsigned long)index;
+- (unsigned long)length;
+ at end
+
+ at interface DOMNamedNodeMap : DOMObject
+- (DOMNode *)getNamedItem:(NSString *)name;
+- (DOMNode *)setNamedItem:(DOMNode *)arg;
+- (DOMNode *)removeNamedItem:(NSString *)name;
+- (DOMNode *)item:(unsigned long)index;
+- (unsigned long)length;
+- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMNode *)setNamedItemNS:(DOMNode *)arg;
+- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+ at end
+
+ at interface DOMCharacterData : DOMNode
+- (NSString *)data;
+- (void)setData:(NSString *)data;
+- (unsigned long)length;
+- (NSString *)substringData:(unsigned long)offset :(unsigned long)count;
+- (void)appendData:(NSString *)arg;
+- (void)insertData:(unsigned long)offset :(NSString *)arg;
+- (void)deleteData:(unsigned long)offset :(unsigned long) count;
+- (void)replaceData:(unsigned long)offset :(unsigned long)count :(NSString *)arg;
+ at end
+
+ at interface DOMAttr : DOMNode
+- (NSString *)name;
+- (BOOL)specified;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (DOMElement *)ownerElement;
+ at end
+
+ at interface DOMElement : DOMNode
+- (NSString *)tagName;
+- (NSString *)getAttribute:(NSString *)name;
+- (void)setAttribute:(NSString *)name :(NSString *)value;
+- (void)removeAttribute:(NSString *)name;
+- (DOMAttr *)getAttributeNode:(NSString *)name;
+- (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr;
+- (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr;
+- (DOMNodeList *)getElementsByTagName:(NSString *)name;
+- (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
+- (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;
+- (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr;
+- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
+- (BOOL)hasAttribute:(NSString *)name;
+- (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
+ at end
+
+ at interface DOMText : DOMCharacterData
+- (DOMText *)splitText:(unsigned long)offset;
+ at end
+
+ at interface DOMComment : DOMCharacterData
+ at end
+
+ at interface DOMCDATASection : DOMText
+ at end
+
+ at interface DOMDocumentType : DOMNode
+- (NSString *)name;
+- (DOMNamedNodeMap *)entities;
+- (DOMNamedNodeMap *)notations;
+- (NSString *)publicId;
+- (NSString *)systemId;
+- (NSString *)internalSubset;
+ at end
+
+ at interface DOMNotation : DOMNode
+- (NSString *)publicId;
+- (NSString *)systemId;
+ at end
+
+ at interface DOMEntity : DOMNode
+- (NSString *)publicId;
+- (NSString *)systemId;
+- (NSString *)notationName;
+ at end
+
+ at interface DOMEntityReference : DOMNode
+ at end
+
+ at interface DOMProcessingInstruction : DOMNode
+- (NSString *)target;
+- (NSString *)data;
+- (void)setData:(NSString *)data;
+ at end
+
+ at interface DOMDocumentFragment : DOMNode
+ at end
+
+ at interface DOMDocument : DOMNode
+- (DOMDocumentType *)doctype;
+- (DOMImplementation *)implementation;
+- (DOMElement *)documentElement;
+- (DOMElement *)createElement:(NSString *)tagName;
+- (DOMDocumentFragment *)createDocumentFragment;
+- (DOMText *)createTextNode:(NSString *)data;
+- (DOMComment *)createComment:(NSString *)data;
+- (DOMCDATASection *)createCDATASection:(NSString *)data;
+- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data;
+- (DOMAttr *)createAttribute:(NSString *)name;
+- (DOMEntityReference *)createEntityReference:(NSString *)name;
+- (DOMNodeList *)getElementsByTagName:(NSString *)tagname;
+- (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep;
+- (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
+- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
+- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMElement *)getElementById:(NSString *)elementId;
+ at end
diff --git a/WebCore/kwq/DOMEvents.h b/WebCore/kwq/DOMEvents.h
new file mode 100644
index 0000000..22f9f7d
--- /dev/null
+++ b/WebCore/kwq/DOMEvents.h
@@ -0,0 +1,112 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMViews.h"
+
+ at class DOMEvent;
+ at class DOMEventListener;
+
+extern NSString * const DOMEventException;
+
+enum DOMEventExceptionCode {
+ DOM_UNSPECIFIED_EVENT_TYPE_ERR = 0
+};
+
+ at interface DOMEventTarget : DOMObject
+- (void)addEventListener:(NSString *)type :(DOMEventListener *)listener :(BOOL)useCapture;
+- (void)removeEventListener:(NSString *)type :(DOMEventListener *)listener :(BOOL)useCapture;
+- (BOOL)dispatchEvent:(DOMEvent *)event;
+ at end
+
+enum {
+ DOM_CAPTURING_PHASE = 1,
+ DOM_AT_TARGET = 2,
+ DOM_BUBBLING_PHASE = 3
+};
+
+ at interface DOMEvent : DOMObject
+- (NSString *)type;
+- (DOMEventTarget *)target;
+- (DOMEventTarget *)currentTarget;
+- (unsigned short)eventPhase;
+- (BOOL)bubbles;
+- (BOOL)cancelable;
+- (DOMTimeStamp)timeStamp;
+- (void)stopPropagation;
+- (void)preventDefault;
+- (void)initEvent:(NSString *)eventTypeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg;
+ at end
+
+ at interface DOMDocument (DOMDocumentEvent)
+- (DOMEvent *)createEvent:(NSString *)eventType;
+ at end
+
+ at interface DOMUIEvent : DOMEvent
+- (DOMAbstractView *)view;
+- (long)detail;
+- (void)initUIEvent:(NSString *)typeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg :(DOMAbstractView *)viewArg :(long)detailArg;
+ at end
+
+ at interface DOMMouseEvent : DOMUIEvent
+- (long)screenX;
+- (long)screenY;
+- (long)clientX;
+- (long)clientY;
+- (BOOL)ctrlKey;
+- (BOOL)shiftKey;
+- (BOOL)altKey;
+- (BOOL)metaKey;
+- (unsigned short)button;
+- (DOMEventTarget *)relatedTarget;
+- (void)initMouseEvent:(NSString *)typeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg :(DOMAbstractView *)viewArg :(long)detailArg :(long)screenXArg :(long)screenYArg :(long)clientX :(long)clientY :(BOOL)ctrlKeyArg :(BOOL)altKeyArg :(BOOL)shiftKeyArg :(BOOL)metaKeyArg :(unsigned short)buttonArg :(DOMEventTarget *)relatedTargetArg;
+ at end
+
+enum {
+ DOM_MODIFICATION = 1,
+ DOM_ADDITION = 2,
+ DOM_REMOVAL = 3
+};
+
+ at interface DOMMutationEvent : DOMEvent
+- (DOMNode *)relatedNode;
+- (NSString *)prevValue;
+- (NSString *)newValue;
+- (NSString *)attrName;
+- (unsigned short)attrChange;
+- (void)initMutationEvent:(NSString *)typeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg :(DOMNode *)relatedNodeArg :(NSString *)prevValueArg :(NSString *)newValueArg :(NSString *)attrNameArg :(unsigned short)attrChangeArg;
+ at end
diff --git a/WebCore/kwq/DOMHTML.h b/WebCore/kwq/DOMHTML.h
new file mode 100644
index 0000000..edbb6f9
--- /dev/null
+++ b/WebCore/kwq/DOMHTML.h
@@ -0,0 +1,806 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMHTMLElement;
+ at class DOMHTMLTableCaptionElement;
+ at class DOMHTMLTableSectionElement;
+
+ at interface DOMHTMLCollection : DOMObject
+- (unsigned long)length;
+- (DOMNode *)item:(unsigned long)index;
+- (DOMNode *)namedItem:(NSString *)name;
+ at end
+
+ at interface DOMHTMLOptionsCollection : DOMObject
+- (unsigned long)length;
+- (void)setLength:(unsigned long)length;
+- (DOMNode *)item:(unsigned long)index;
+- (DOMNode *)namedItem:(NSString *)name;
+ at end
+
+ at interface DOMHTMLDocument : DOMDocument
+- (NSString *)title;
+- (void)setTitle:(NSString *)title;
+- (NSString *)referrer;
+- (NSString *)domain;
+- (NSString *)URL;
+- (DOMHTMLElement *)body;
+- (void)setBody:(DOMHTMLElement *)body;
+- (DOMHTMLCollection *)images;
+- (DOMHTMLCollection *)applets;
+- (DOMHTMLCollection *)links;
+- (DOMHTMLCollection *)forms;
+- (DOMHTMLCollection *)anchors;
+- (NSString *)cookie;
+- (void)setCookie:(NSString *)cookie;
+- (void)open;
+- (void)close;
+- (void)write:(NSString *)text;
+- (void)writeln:(NSString *)text;
+- (DOMElement *)getElementById:(NSString *)elementId;
+- (DOMNodeList *)getElementsByName:(NSString *)elementName;
+ at end
+
+ at interface DOMHTMLElement : DOMElement
+- (NSString *)idName;
+- (void)setIdName:(NSString *)idName;
+- (NSString *)title;
+- (void)setTitle:(NSString *)title;
+- (NSString *)lang;
+- (void)setLang:(NSString *)lang;
+- (NSString *)dir;
+- (void)setDir:(NSString *)dir;
+- (NSString *)className;
+- (void)setClassName:(NSString *)className;
+ at end
+
+ at interface DOMHTMLHtmlElement : DOMHTMLElement
+- (NSString *)version;
+- (void)setVersion:(NSString *)version;
+ at end
+
+ at interface DOMHTMLHeadElement : DOMHTMLElement
+- (NSString *)profile;
+- (void)setProfile:(NSString *)profile;
+ at end
+
+ at interface DOMHTMLLinkElement : DOMHTMLElement
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)charset;
+- (void)setCharset:(NSString *)charset;
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (NSString *)hreflang;
+- (void)setHreflang:(NSString *)hreflang;
+- (NSString *)media;
+- (void)setMedia:(NSString *)media;
+- (NSString *)rel;
+- (void)setRel:(NSString *)rel;
+- (NSString *)rev;
+- (void)setRev:(NSString *)rev;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLTitleElement : DOMHTMLElement
+- (NSString *)text;
+- (void)setText:(NSString *)text;
+ at end
+
+ at interface DOMHTMLMetaElement : DOMHTMLElement
+- (NSString *)content;
+- (void)setContent:(NSString *)content;
+- (NSString *)httpEquiv;
+- (void)setHttpEquiv:(NSString *)httpEquiv;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)scheme;
+- (void)setScheme:(NSString *)scheme;
+ at end
+
+ at interface DOMHTMLBaseElement : DOMHTMLElement
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+ at end
+
+ at interface DOMHTMLIsIndexElement : DOMHTMLElement
+- (NSString *)form;
+- (NSString *)prompt;
+- (void)setPrompt:(NSString *)prompt;
+ at end
+
+ at interface DOMHTMLStyleElement : DOMHTMLElement
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)media;
+- (void)setMedia:(NSString *)media;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLBodyElement : DOMHTMLElement
+- (NSString *)aLink;
+- (void)setALink:(NSString *)aLink;
+- (NSString *)background;
+- (void)setBackground:(NSString *)background;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)link;
+- (void)setLink:(NSString *)link;
+- (NSString *)text;
+- (void)setText:(NSString *)text;
+- (NSString *)vLink;
+- (void)setVLink:(NSString *)vLink;
+ at end
+
+ at interface DOMHTMLFormElement : DOMHTMLElement
+- (DOMHTMLCollection *)elements;
+- (long)length;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)acceptCharset;
+- (void)setAcceptCharset:(NSString *)acceptCharset;
+- (NSString *)action;
+- (void)setAction:(NSString *)action;
+- (NSString *)enctype;
+- (void)setEnctype:(NSString *)enctype;
+- (NSString *)method;
+- (void)setMethod:(NSString *)method;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+- (void)submit;
+- (void)reset;
+ at end
+
+ at interface DOMHTMLSelectElement : DOMHTMLElement
+- (NSString *)type;
+- (long)selectedIndex;
+- (void)setSelectedIndex:(long)selectedIndex;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (long)length;
+- (DOMHTMLFormElement *)form;
+- (DOMHTMLOptionsCollection *)options;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (BOOL)multiple;
+- (void)setMultiple:(BOOL)multiple;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (long)size;
+- (void)setSize:(long)size;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before;
+- (void)remove:(long)index;
+- (void)blur;
+- (void)focus;
+ at end
+
+ at interface DOMHTMLOptGroupElement : DOMHTMLElement
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)label;
+- (void)setLabel:(NSString *)label;
+ at end
+
+ at interface DOMHTMLOptionElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (BOOL)defaultSelected;
+- (void)setDefaultSelected:(BOOL)defaultSelected;
+- (NSString *)text;
+- (long)index;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)label;
+- (void)setLabel:(NSString *)label;
+- (BOOL)selected;
+- (void)setSelected:(BOOL)selected;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+ at end
+
+ at interface DOMHTMLInputElement : DOMHTMLElement
+- (NSString *)defaultValue;
+- (void)setDefaultValue:(NSString *)defaultValue;
+- (BOOL)defaultChecked;
+- (void)setDefaultChecked:(BOOL)defaultChecked;
+- (DOMHTMLFormElement *)form;
+- (NSString *)accept;
+- (void)setAccept:(NSString *)accept;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (BOOL)checked;
+- (void)setChecked:(BOOL)checked;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (long)maxLength;
+- (void)setMaxLength:(long)maxLength;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (BOOL)readOnly;
+- (void)setReadOnly:(BOOL)readOnly;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (NSString *)useMap;
+- (void)setUseMap:(NSString *)useMap;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (void)blur;
+- (void)focus;
+- (void)select;
+- (void)click;
+ at end
+
+ at interface DOMHTMLTextAreaElement : DOMHTMLElement
+- (NSString *)defaultValue;
+- (void)setDefaultValue:(NSString *)defaultValue;
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (long)cols;
+- (void)setCols:(long)cols;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (BOOL)readOnly;
+- (void)setReadOnly:(BOOL)readOnly;
+- (long)rows;
+- (void)setRows:(long)rows;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (void)blur;
+- (void)focus;
+- (void)select;
+ at end
+
+ at interface DOMHTMLButtonElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+ at end
+
+ at interface DOMHTMLLabelElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)htmlFor;
+- (void)setHtmlFor:(NSString *)htmlFor;
+ at end
+
+ at interface DOMHTMLFieldSetElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+ at end
+
+ at interface DOMHTMLLegendElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLUListElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLOListElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+- (long)start;
+- (void)setStart:(long)start;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLDListElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+ at end
+
+ at interface DOMHTMLDirectoryElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+ at end
+
+ at interface DOMHTMLMenuElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+ at end
+
+ at interface DOMHTMLLIElement : DOMHTMLElement
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (long)value;
+- (void)setValue:(long)value;
+ at end
+
+ at interface DOMHTMLDivElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLParagraphElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLHeadingElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLQuoteElement : DOMHTMLElement
+- (NSString *)cite;
+- (void)setCite:(NSString *)cite;
+ at end
+
+ at interface DOMHTMLPreElement : DOMHTMLElement
+- (long)width;
+- (void)setWidth:(long)width;
+ at end
+
+ at interface DOMHTMLBRElement : DOMHTMLElement
+- (NSString *)clear;
+- (void)setClear:(NSString *)clear;
+ at end
+
+ at interface DOMHTMLBaseFontElement : DOMHTMLElement
+- (NSString *)color;
+- (void)setColor:(NSString *)color;
+- (NSString *)face;
+- (void)setFace:(NSString *)face;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+ at end
+
+ at interface DOMHTMLFontElement : DOMHTMLElement
+- (NSString *)color;
+- (void)setColor:(NSString *)color;
+- (NSString *)face;
+- (void)setFace:(NSString *)face;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+ at end
+
+ at interface DOMHTMLHRElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (BOOL)noShade;
+- (void)setNoShade:(BOOL)noShade;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLModElement : DOMHTMLElement
+- (NSString *)cite;
+- (void)setCite:(NSString *)cite;
+- (NSString *)dateTime;
+- (void)setDateTime:(NSString *)dateTime;
+ at end
+
+ at interface DOMHTMLAnchorElement : DOMHTMLElement
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)charset;
+- (void)setCharset:(NSString *)charset;
+- (NSString *)coords;
+- (void)setCoords:(NSString *)coords;
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (NSString *)hreflang;
+- (void)setHreflang:(NSString *)hreflang;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)rel;
+- (void)setRel:(NSString *)rel;
+- (NSString *)rev;
+- (void)setRev:(NSString *)rev;
+- (NSString *)shape;
+- (void)setShape:(NSString *)shape;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (void)blur;
+- (void)focus;
+ at end
+
+ at interface DOMHTMLImageElement : DOMHTMLElement
+// xxx
+- (NSString *)lowSrc;
+- (void)setLowSrc:(NSString *)lowSrc;
+
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (NSString *)hspace;
+- (void)setHspace:(NSString *)hspace;
+- (BOOL)isMap;
+- (void)setIsMap:(BOOL)isMap;
+- (NSString *)longDesc;
+- (void)setLongDesc:(NSString *)longDesc;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (NSString *)useMap;
+- (void)setUseMap:(NSString *)useMap;
+- (NSString *)vspace;
+- (void)setVspace:(NSString *)vspace;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLObjectElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)code;
+- (void)setCode:(NSString *)code;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)archive;
+- (void)setArchive:(NSString *)archive;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)codeBase;
+- (void)setCodeBase:(NSString *)codeBase;
+- (NSString *)codeType;
+- (void)setCodeType:(NSString *)codeType;
+- (NSString *)data;
+- (void)setData:(NSString *)data;
+- (BOOL)declare;
+- (void)setDeclare:(BOOL)declare;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (long)hspace;
+- (void)setHspace:(long)hspace;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)standby;
+- (void)setStandby:(NSString *)standby;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (NSString *)useMap;
+- (void)setUseMap:(NSString *)useMap;
+- (long)vspace;
+- (void)setVspace:(long)vspace;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (DOMDocument *)contentDocument;
+ at end
+
+ at interface DOMHTMLParamElement : DOMHTMLElement
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (NSString *)valueType;
+- (void)setValueType:(NSString *)valueType;
+ at end
+
+ at interface DOMHTMLAppletElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (NSString *)archive;
+- (void)setArchive:(NSString *)archive;
+- (NSString *)code;
+- (void)setCode:(NSString *)code;
+- (NSString *)codeBase;
+- (void)setCodeBase:(NSString *)codeBase;
+- (NSString *)codeType;
+- (void)setCodeType:(NSString *)codeType;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (long)hspace;
+- (void)setHspace:(long)hspace;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)object;
+- (void)setObject:(NSString *)object;
+- (long)vspace;
+- (void)setVspace:(long)vspace;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLMapElement : DOMHTMLElement
+- (DOMHTMLCollection *)areas;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+ at end
+
+ at interface DOMHTMLAreaElement : DOMHTMLElement
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (NSString *)coords;
+- (void)setCoords:(NSString *)coords;
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (BOOL)noHref;
+- (void)setNoHref:(BOOL)noHref;
+- (NSString *)shape;
+- (void)setShape:(NSString *)shape;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+ at end
+
+ at interface DOMHTMLScriptElement : DOMHTMLElement
+- (NSString *)text;
+- (void)setText:(NSString *)text;
+- (NSString *)htmlFor;
+- (void)setHtmlFor:(NSString *)htmlFor;
+- (NSString *)event;
+- (void)setEvent:(NSString *)event;
+- (NSString *)charset;
+- (void)setCharset:(NSString *)charset;
+- (BOOL)defer;
+- (void)setDefer:(BOOL)defer;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLTableElement : DOMHTMLElement
+- (DOMHTMLTableCaptionElement *)caption;
+- (void)setCaption:(DOMHTMLTableCaptionElement *)caption;
+- (DOMHTMLTableSectionElement *)tHead;
+- (void)setTHead:(DOMHTMLTableSectionElement *)tHead;
+- (DOMHTMLTableSectionElement *)tFoot;
+- (void)setTFoot:(DOMHTMLTableSectionElement *)tFoot;
+- (DOMHTMLCollection *)rows;
+- (DOMHTMLCollection *)tBodies;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)cellPadding;
+- (void)setCellPadding:(NSString *)cellPadding;
+- (NSString *)cellSpacing;
+- (void)setCellSpacing:(NSString *)cellSpacing;
+- (NSString *)frame;
+- (void)setFrame:(NSString *)frame;
+- (NSString *)rules;
+- (void)setRules:(NSString *)rules;
+- (NSString *)summary;
+- (void)setSummary:(NSString *)summary;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (DOMHTMLElement *)createTHead;
+- (void)deleteTHead;
+- (DOMHTMLElement *)createTFoot;
+- (void)deleteTFoot;
+- (DOMHTMLElement *)createCaption;
+- (void)deleteCaption;
+- (DOMHTMLElement *)insertRow:(long)index;
+- (void)deleteRow:(long)index;
+ at end
+
+ at interface DOMHTMLTableCaptionElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLTableColElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (long)span;
+- (void)setSpan:(long)span;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLTableSectionElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (DOMHTMLCollection *)rows;
+- (DOMHTMLElement *)insertRow:(long)index;
+- (void)deleteRow:(long)index;
+ at end
+
+ at interface DOMHTMLTableRowElement : DOMHTMLElement
+- (long)rowIndex;
+- (long)sectionRowIndex;
+- (DOMHTMLCollection *)cells;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (DOMHTMLElement *)insertCell:(long)index;
+- (void)deleteCell:(long)index;
+ at end
+
+ at interface DOMHTMLTableCellElement : DOMHTMLElement
+- (long)cellIndex;
+- (NSString *)abbr;
+- (void)setAbbr:(NSString *)abbr;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)axis;
+- (void)setAxis:(NSString *)axis;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (long)colSpan;
+- (void)setColSpan:(long)colSpan;
+- (NSString *)headers;
+- (void)setHeaders:(NSString *)headers;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (BOOL)noWrap;
+- (void)setNoWrap:(BOOL)noWrap;
+- (long)rowSpan;
+- (void)setRowSpan:(long)rowSpan;
+- (NSString *)scope;
+- (void)setScope:(NSString *)scope;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLFrameSetElement : DOMHTMLElement
+- (NSString *)cols;
+- (void)setCols:(NSString *)cols;
+- (NSString *)rows;
+- (void)setRows:(NSString *)rows;
+ at end
+
+ at interface DOMHTMLFrameElement : DOMHTMLElement
+- (NSString *)frameBorder;
+- (void)setFrameBorder:(NSString *)frameBorder;
+- (NSString *)longDesc;
+- (void)setLongDesc:(NSString *)longDesc;
+- (NSString *)marginHeight;
+- (void)setMarginHeight:(NSString *)marginHeight;
+- (NSString *)marginWidth;
+- (void)setMarginWidth:(NSString *)marginWidth;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (BOOL)noResize;
+- (void)setNoResize:(BOOL)noResize;
+- (NSString *)scrolling;
+- (void)setScrolling:(NSString *)scrolling;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (DOMDocument *)contentDocument;
+ at end
+
+ at interface DOMHTMLIFrameElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)frameBorder;
+- (void)setFrameBorder:(NSString *)frameBorder;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (NSString *)longDesc;
+- (void)setLongDesc:(NSString *)longDesc;
+- (NSString *)marginHeight;
+- (void)setMarginHeight:(NSString *)marginHeight;
+- (NSString *)marginWidth;
+- (void)setMarginWidth:(NSString *)marginWidth;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)scrolling;
+- (void)setScrolling:(NSString *)scrolling;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (DOMDocument *)contentDocument;
+ at end
+
+// FIXME: Should this move to another file?
+ at interface DOMNode (DOMHTMLExtensions)
+- (NSString *)HTMLString; // FIXME: Should this be renamed innerHTML or outerHTML?
+ at end
diff --git a/WebCore/kwq/DOMInternal.h b/WebCore/kwq/DOMInternal.h
index ac9b5ec..ca16349 100644
--- a/WebCore/kwq/DOMInternal.h
+++ b/WebCore/kwq/DOMInternal.h
@@ -24,7 +24,6 @@
*/
#import "DOM.h"
-#import "DOM-CSS.h"
namespace DOM {
class CSSStyleDeclarationImpl;
@@ -64,16 +63,16 @@ namespace DOM {
- (id)_init;
@end
- at interface CSSStyleDeclaration (WebCoreInternal)
-+ (CSSStyleDeclaration *)_styleDeclarationWithImpl:(DOM::CSSStyleDeclarationImpl *)impl;
+ at interface DOMCSSStyleDeclaration (WebCoreInternal)
++ (DOMCSSStyleDeclaration *)_styleDeclarationWithImpl:(DOM::CSSStyleDeclarationImpl *)impl;
@end
@interface DOMStyleSheetList (WebCoreInternal)
+ (DOMStyleSheetList *)_styleSheetListWithImpl:(DOM::StyleSheetListImpl *)impl;
@end
- at interface CSSStyleSheet (WebCoreInternal)
-+ (CSSStyleSheet *)_CSSStyleSheetWithImpl:(DOM::CSSStyleSheetImpl *)impl;
+ at interface DOMCSSStyleSheet (WebCoreInternal)
++ (DOMCSSStyleSheet *)_CSSStyleSheetWithImpl:(DOM::CSSStyleSheetImpl *)impl;
@end
// Helper functions for DOM wrappers and gluing to Objective-C
diff --git a/WebCore/kwq/DOMRange.h b/WebCore/kwq/DOMRange.h
new file mode 100644
index 0000000..0bbb41e
--- /dev/null
+++ b/WebCore/kwq/DOMRange.h
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+extern NSString * const DOMRangeException;
+
+enum {
+ //
+ // DOM range exception codes
+ //
+ DOM_BAD_BOUNDARYPOINTS_ERR = 1,
+ DOM_INVALID_NODE_TYPE_ERR = 2,
+};
+
+enum {
+ //
+ // DOM Range comparison codes
+ //
+ DOM_START_TO_START = 0,
+ DOM_START_TO_END = 1,
+ DOM_END_TO_END = 2,
+ DOM_END_TO_START = 3,
+};
+
+ at interface DOMRange : DOMObject
+- (DOMNode *)startContainer;
+- (long)startOffset;
+- (DOMNode *)endContainer;
+- (long)endOffset;
+- (BOOL)collapsed;
+- (DOMNode *)commonAncestorContainer;
+- (void)setStart:(DOMNode *)refNode :(long)offset;
+- (void)setEnd:(DOMNode *)refNode :(long)offset;
+- (void)setStartBefore:(DOMNode *)refNode;
+- (void)setStartAfter:(DOMNode *)refNode;
+- (void)setEndBefore:(DOMNode *)refNode;
+- (void)setEndAfter:(DOMNode *)refNode;
+- (void)collapse:(BOOL)toStart;
+- (void)selectNode:(DOMNode *)refNode;
+- (void)selectNodeContents:(DOMNode *)refNode;
+- (short)compareBoundaryPoints:(unsigned short)how :(DOMRange *)sourceRange;
+- (void)deleteContents;
+- (DOMDocumentFragment *)extractContents;
+- (DOMDocumentFragment *)cloneContents;
+- (void)insertNode:(DOMNode *)newNode;
+- (void)surroundContents:(DOMNode *)newParent;
+- (DOMRange *)cloneRange;
+- (NSString *)toString;
+- (void)detach;
+ at end
+
+ at protocol DOMDocumentRange
+- (DOMRange *)createRange;
+ at end
diff --git a/WebCore/kwq/DOMStylesheets.h b/WebCore/kwq/DOMStylesheets.h
new file mode 100644
index 0000000..9e3f604
--- /dev/null
+++ b/WebCore/kwq/DOMStylesheets.h
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMMediaList;
+ at class DOMStyleSheet;
+
+extern NSString * const DOMEventException;
+
+ at interface DOMStyleSheet : DOMObject
+- (NSString *)type;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (DOMNode *)ownerNode;
+- (DOMStyleSheet *)parentStyleSheet;
+- (NSString *)href;
+- (NSString *)title;
+- (DOMMediaList *)media;
+ at end
+
+ at interface DOMStyleSheetList : DOMObject
+- (unsigned long)length;
+- (DOMStyleSheet *)item:(unsigned long)index;
+ at end
+
+ at interface DOMMediaList : DOMObject
+- (NSString *)mediaText;
+- (void)setMediaText:(NSString *)mediaText;
+- (unsigned long)length;
+- (NSString *)item:(unsigned long)index;
+- (void)deleteMedium:(NSString *)oldMedium;
+- (void)appendMedium:(NSString *)newMedium;
+ at end
+
+ at interface DOMObject (DOMLinkStyle)
+- (DOMStyleSheet *)sheet;
+ at end
+
+ at interface DOMDocument (DOMDocumentStyle)
+- (DOMStyleSheetList *)styleSheets;
+ at end
diff --git a/WebCore/kwq/DOMTraversal.h b/WebCore/kwq/DOMTraversal.h
new file mode 100644
index 0000000..5f3eba8
--- /dev/null
+++ b/WebCore/kwq/DOMTraversal.h
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMNodeFilter;
+
+ at interface DOMNodeIterator : DOMObject
+- (DOMNode *)root;
+- (unsigned long)whatToShow;
+- (DOMNodeFilter *)filter;
+- (BOOL)expandEntityReferences;
+- (DOMNode *)nextNode;
+- (DOMNode *)previousNode;
+- (void)detach;
+ at end
+
+enum {
+ // Constants returned by acceptNode
+ DOM_FILTER_ACCEPT = 1,
+ DOM_FILTER_REJECT = 2,
+ DOM_FILTER_SKIP = 3,
+};
+
+enum {
+ // Constants for whatToShow
+ DOM_SHOW_ALL = 0xFFFFFFFF,
+ DOM_SHOW_ELEMENT = 0x00000001,
+ DOM_SHOW_ATTRIBUTE = 0x00000002,
+ DOM_SHOW_TEXT = 0x00000004,
+ DOM_SHOW_CDATA_SECTION = 0x00000008,
+ DOM_SHOW_ENTITY_REFERENCE = 0x00000010,
+ DOM_SHOW_ENTITY = 0x00000020,
+ DOM_SHOW_PROCESSING_INSTRUCTION = 0x00000040,
+ DOM_SHOW_COMMENT = 0x00000080,
+ DOM_SHOW_DOCUMENT = 0x00000100,
+ DOM_SHOW_DOCUMENT_TYPE = 0x00000200,
+ DOM_SHOW_DOCUMENT_FRAGMENT = 0x00000400,
+ DOM_SHOW_NOTATION = 0x00000800,
+};
+
+ at interface DOMNodeFilter : DOMObject
+- (short)acceptNode:(DOMNode *)n;
+ at end
+
+ at interface DOMTreeWalker : DOMObject
+- (DOMNode *)root;
+- (unsigned long)whatToShow;
+- (DOMNodeFilter *)filter;
+- (BOOL)expandEntityReferences;
+- (DOMNode *)currentNode;
+- (void)setCurrentNode:(DOMNode *)currentNode;
+- (DOMNode *)parentNode;
+- (DOMNode *)firstChild;
+- (DOMNode *)lastChild;
+- (DOMNode *)previousSibling;
+- (DOMNode *)nextSibling;
+- (DOMNode *)previousNode;
+- (DOMNode *)nextNode;
+ at end
+
+ at interface DOMDocument (DOMDocumentTraversal)
+- (DOMNodeIterator *)createNodeIterator:(DOMNode *)root :(unsigned long)whatToShow :(DOMNodeFilter *)filter :(BOOL)entityReferenceExpansion;
+- (DOMTreeWalker *)createTreeWalker:(DOMNode *)root :(unsigned long)whatToShow :(DOMNodeFilter *)filter :(BOOL)entityReferenceExpansion;
+ at end
diff --git a/WebCore/kwq/DOMViews.h b/WebCore/kwq/DOMViews.h
new file mode 100644
index 0000000..bcc7107
--- /dev/null
+++ b/WebCore/kwq/DOMViews.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMDocumentView;
+
+ at interface DOMAbstractView : DOMObject
+- (DOMDocumentView *)document;
+ at end
+
+ at interface DOMDocumentView : DOMObject
+- (DOMAbstractView *)defaultView;
+ at end
diff --git a/WebCore/kwq/HTMLDOM.h b/WebCore/kwq/HTMLDOM.h
deleted file mode 100644
index 88b611a..0000000
--- a/WebCore/kwq/HTMLDOM.h
+++ /dev/null
@@ -1,786 +0,0 @@
-/*
- * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "DOM.h"
-
-//=========================================================================
-//=========================================================================
-//=========================================================================
-
-// Important Note:
-// Though this file appears as an exported header from WebKit, the
-// version you should edit is in WebCore. The WebKit version is copied
-// to WebKit during the build process.
-
-//=========================================================================
-//=========================================================================
-//=========================================================================
-
- at interface HTMLCollection : DOMObject
-- (unsigned long)length;
-- (DOMNode *)item:(unsigned long)index;
-- (DOMNode *)namedItem:(NSString *)name;
- at end
-
- at interface HTMLElement : DOMElement
-- (NSString *)idName;
-- (void)setIdName:(NSString *)idName;
-- (NSString *)title;
-- (void)setTitle:(NSString *)title;
-- (NSString *)lang;
-- (void)setLang:(NSString *)lang;
-- (NSString *)dir;
-- (void)setDir:(NSString *)dir;
-- (NSString *)className;
-- (void)setClassName:(NSString *)className;
- at end
-
- at interface HTMLDocument : DOMDocument
-- (NSString *)title;
-- (void)setTitle:(NSString *)title;
-- (NSString *)referrer;
-- (NSString *)domain;
-- (NSString *)URL;
-- (HTMLElement *)body;
-- (void)setBody:(HTMLElement *)body;
-- (HTMLCollection *)images;
-- (HTMLCollection *)applets;
-- (HTMLCollection *)links;
-- (HTMLCollection *)forms;
-- (HTMLCollection *)anchors;
-- (NSString *)cookie;
-- (void)setCookie:(NSString *)cookie;
-- (void)open;
-- (void)close;
-- (void)write:(NSString *)text;
-- (void)writeln:(NSString *)text;
-- (DOMElement *)getElementById:(NSString *)elementId;
-- (DOMNodeList *)getElementsByName:(NSString *)elementName;
- at end
-
- at interface HTMLHtmlElement : HTMLElement
-- (NSString *)version;
-- (void)setVersion:(NSString *)version;
- at end
-
- at interface HTMLHeadElement : HTMLElement
-- (NSString *)profile;
-- (void)setProfile:(NSString *)profile;
- at end
-
- at interface HTMLLinkElement : HTMLElement
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (NSString *)charset;
-- (void)setCharset:(NSString *)charset;
-- (NSString *)href;
-- (void)setHref:(NSString *)href;
-- (NSString *)hreflang;
-- (void)setHreflang:(NSString *)hreflang;
-- (NSString *)media;
-- (void)setMedia:(NSString *)media;
-- (NSString *)rel;
-- (void)setRel:(NSString *)rel;
-- (NSString *)rev;
-- (void)setRev:(NSString *)rev;
-- (NSString *)target;
-- (void)setTarget:(NSString *)target;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
- at end
-
- at interface HTMLTitleElement : HTMLElement
-- (NSString *)text;
-- (void)setText:(NSString *)text;
- at end
-
- at interface HTMLMetaElement : HTMLElement
-- (NSString *)content;
-- (void)setContent:(NSString *)content;
-- (NSString *)httpEquiv;
-- (void)setHttpEquiv:(NSString *)httpEquiv;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)scheme;
-- (void)setScheme:(NSString *)scheme;
- at end
-
- at interface HTMLBaseElement : HTMLElement
-- (NSString *)href;
-- (void)setHref:(NSString *)href;
-- (NSString *)target;
-- (void)setTarget:(NSString *)target;
- at end
-
- at interface HTMLStyleElement : HTMLElement
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (NSString *)media;
-- (void)setMedia:(NSString *)media;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
- at end
-
- at interface HTMLBodyElement : HTMLElement
-- (NSString *)aLink;
-- (void)setALink:(NSString *)aLink;
-- (NSString *)background;
-- (void)setBackground:(NSString *)background;
-- (NSString *)bgColor;
-- (void)setBgColor:(NSString *)bgColor;
-- (NSString *)link;
-- (void)setLink:(NSString *)link;
-- (NSString *)text;
-- (void)setText:(NSString *)text;
-- (NSString *)vLink;
-- (void)setVLink:(NSString *)vLink;
- at end
-
- at interface HTMLFormElement : HTMLElement
-- (HTMLCollection *)elements;
-- (long)length;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)acceptCharset;
-- (void)setAcceptCharset:(NSString *)acceptCharset;
-- (NSString *)action;
-- (void)setAction:(NSString *)action;
-- (NSString *)enctype;
-- (void)setEnctype:(NSString *)enctype;
-- (NSString *)method;
-- (void)setMethod:(NSString *)method;
-- (NSString *)target;
-- (void)setTarget:(NSString *)target;
-- (void)submit;
-- (void)reset;
- at end
-
- at interface HTMLIsIndexElement : HTMLElement
-- (NSString *)form;
-- (NSString *)prompt;
-- (void)setPrompt:(NSString *)prompt;
- at end
-
- at interface HTMLSelectElement : HTMLElement
-- (NSString *)type;
-- (long)selectedIndex;
-- (void)setSelectedIndex:(long)selectedIndex;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
-- (long)length;
-- (HTMLFormElement *)form;
-- (HTMLCollection *)options;
-- (BOOL)disabled;
-- (BOOL)multiple;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (long)size;
-- (long)tabIndex;
-- (void)add:(HTMLElement *)element :(HTMLElement *)before;
-- (void)remove:(long)index;
-- (void)blur;
-- (void)focus;
- at end
-
- at interface HTMLOptGroupElement : HTMLElement
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (NSString *)label;
-- (void)setLabel:(NSString *)label;
- at end
-
- at interface HTMLOptionElement : HTMLElement
-- (HTMLFormElement *)form;
-- (BOOL)defaultSelected;
-- (void)setDefaultSelected:(BOOL)defaultSelected;
-- (NSString *)text;
-- (long)index;
-- (void)setIndex:(long)index;
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (NSString *)label;
-- (void)setLabel:(NSString *)label;
-- (BOOL)selected;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
- at end
-
- at interface HTMLInputElement : HTMLElement
-- (NSString *)defaultValue;
-- (void)setDefaultValue:(NSString *)defaultValue;
-- (BOOL)defaultChecked;
-- (void)setDefaultChecked:(BOOL)defaultChecked;
-- (HTMLFormElement *)form;
-- (NSString *)accept;
-- (void)setAccept:(NSString *)accept;
-- (NSString *)accessKey;
-- (void)setAccessKey:(NSString *)accessKey;
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)alt;
-- (void)setAlt:(NSString *)alt;
-- (BOOL)checked;
-- (void)setChecked:(BOOL)checked;
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (long)maxLength;
-- (void)setMaxLength:(long)maxLength;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (BOOL)readOnly;
-- (void)setReadOnly:(BOOL)readOnly;
-- (NSString *)size;
-- (void)setSize:(NSString *)size;
-- (NSString *)src;
-- (void)setSrc:(NSString *)src;
-- (long)tabIndex;
-- (void)setTabIndex:(long)tabIndex;
-- (NSString *)type;
-- (NSString *)useMap;
-- (void)setUseMap:(NSString *)useMap;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
-- (void)blur;
-- (void)focus;
-- (void)select;
-- (void)click;
- at end
-
- at interface HTMLTextAreaElement : HTMLElement
-- (NSString *)defaultValue;
-- (void)setDefaultValue:(NSString *)defaultValue;
-- (HTMLFormElement *)form;
-- (NSString *)accessKey;
-- (void)setAccessKey:(NSString *)accessKey;
-- (long)cols;
-- (void)setCols:(long)cols;
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (BOOL)readOnly;
-- (void)setReadOnly:(BOOL)readOnly;
-- (long)rows;
-- (void)setRows:(long)rows;
-- (long)tabIndex;
-- (void)setTabIndex:(long)tabIndex;
-- (NSString *)type;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
-- (void)blur;
-- (void)focus;
-- (void)select;
- at end
-
- at interface HTMLButtonElement : HTMLElement
-- (HTMLFormElement *)form;
-- (NSString *)accessKey;
-- (void)setAccessKey:(NSString *)accessKey;
-- (BOOL)disabled;
-- (void)setDisabled:(BOOL)disabled;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (long)tabIndex;
-- (void)setTabIndex:(long)tabIndex;
-- (NSString *)type;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
- at end
-
- at interface HTMLLabelElement : HTMLElement
-- (HTMLFormElement *)form;
-- (NSString *)accessKey;
-- (void)setAccessKey:(NSString *)accessKey;
-- (NSString *)htmlFor;
-- (void)setHtmlFor:(NSString *)htmlFor;
- at end
-
- at interface HTMLFieldSetElement : HTMLElement
-- (HTMLFormElement *)form;
- at end
-
- at interface HTMLLegendElement : HTMLElement
-- (HTMLFormElement *)form;
-- (NSString *)accessKey;
-- (void)setAccessKey:(NSString *)accessKey;
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
- at end
-
- at interface HTMLUListElement : HTMLElement
-- (BOOL)compact;
-- (void)setCompact:(BOOL)compact;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
- at end
-
- at interface HTMLOListElement : HTMLElement
-- (BOOL)compact;
-- (void)setCompact:(BOOL)compact;
-- (long)start;
-- (void)setStart:(long)start;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
- at end
-
- at interface HTMLDListElement : HTMLElement
-- (BOOL)compact;
-- (void)setCompact:(BOOL)compact;
- at end
-
- at interface HTMLDirectoryElement : HTMLElement
-- (BOOL)compact;
-- (void)setCompact:(BOOL)compact;
- at end
-
- at interface HTMLMenuElement : HTMLElement
-- (BOOL)compact;
-- (void)setCompact:(BOOL)compact;
- at end
-
- at interface HTMLLIElement : HTMLElement
-- (NSString *)type;
-- (void)setType:(NSString *)type;
-- (long)value;
-- (void)setValue:(long)value;
- at end
-
- at interface HTMLBlockquoteElement : HTMLElement
-- (NSString *)cite;
-- (void)setCite:(NSString *)cite;
- at end
-
- at interface HTMLDivElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
- at end
-
- at interface HTMLParagraphElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
- at end
-
- at interface HTMLHeadingElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
- at end
-
- at interface HTMLQuoteElement : HTMLElement
-- (NSString *)cite;
-- (void)setCite:(NSString *)cite;
- at end
-
- at interface HTMLPreElement : HTMLElement
-- (long)width;
-- (void)setWidth:(long)width;
- at end
-
- at interface HTMLBRElement : HTMLElement
-- (NSString *)clear;
-- (void)setClear:(NSString *)clear;
- at end
-
- at interface HTMLBaseFontElement : HTMLElement
-- (NSString *)color;
-- (void)setColor:(NSString *)color;
-- (NSString *)face;
-- (void)setFace:(NSString *)face;
-- (NSString *)size;
-- (void)setSize:(NSString *)size;
- at end
-
- at interface HTMLFontElement : HTMLElement
-- (NSString *)color;
-- (void)setColor:(NSString *)color;
-- (NSString *)face;
-- (void)setFace:(NSString *)face;
-- (NSString *)size;
-- (void)setSize:(NSString *)size;
- at end
-
- at interface HTMLHRElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (BOOL)noShade;
-- (void)setNoShade:(BOOL)noShade;
-- (NSString *)size;
-- (void)setSize:(NSString *)size;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
- at end
-
- at interface HTMLModElement : HTMLElement
-- (NSString *)cite;
-- (void)setCite:(NSString *)cite;
-- (NSString *)dateTime;
-- (void)setDateTime:(NSString *)dateTime;
- at end
-
- at interface HTMLAnchorElement : HTMLElement
-- (NSString *)accessKey;
-- (void)setAccessKey:(NSString *)accessKey;
-- (NSString *)charset;
-- (void)setCharset:(NSString *)charset;
-- (NSString *)coords;
-- (void)setCoords:(NSString *)coords;
-- (NSString *)href;
-- (void)setHref:(NSString *)href;
-- (NSString *)hreflang;
-- (void)setHreflang:(NSString *)hreflang;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)rel;
-- (void)setRel:(NSString *)rel;
-- (NSString *)rev;
-- (void)setRev:(NSString *)rev;
-- (NSString *)shape;
-- (void)setShape:(NSString *)shape;
-- (long)tabIndex;
-- (void)setTabIndex:(long)tabIndex;
-- (NSString *)target;
-- (void)setTarget:(NSString *)target;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
-- (void)blur;
-- (void)focus;
- at end
-
- at interface HTMLImageElement : HTMLElement
-- (NSString *)lowSrc;
-- (void)setLowSrc:(NSString *)lowSrc;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)alt;
-- (void)setAlt:(NSString *)alt;
-- (NSString *)border;
-- (void)setBorder:(NSString *)border;
-- (NSString *)height;
-- (void)setHeight:(NSString *)height;
-- (NSString *)hspace;
-- (void)setHspace:(NSString *)hspace;
-- (BOOL)isMap;
-- (void)setIsMap:(BOOL)isMap;
-- (NSString *)longDesc;
-- (void)setLongDesc:(NSString *)longDesc;
-- (NSString *)src;
-- (void)setSrc:(NSString *)src;
-- (NSString *)useMap;
-- (void)setUseMap:(NSString *)useMap;
-- (NSString *)vspace;
-- (void)setVspace:(NSString *)vspace;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
- at end
-
- at interface HTMLObjectElement : HTMLElement
-- (HTMLFormElement *)form;
-- (NSString *)code;
-- (void)setCode:(NSString *)code;
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)archive;
-- (void)setArchive:(NSString *)archive;
-- (NSString *)border;
-- (void)setBorder:(NSString *)border;
-- (NSString *)codeBase;
-- (void)setCodeBase:(NSString *)codeBase;
-- (NSString *)codeType;
-- (void)setCodeType:(NSString *)codeType;
-- (NSString *)data;
-- (void)setData:(NSString *)data;
-- (BOOL)declare;
-- (void)setDeclare:(BOOL)declare;
-- (NSString *)height;
-- (void)setHeight:(NSString *)height;
-- (NSString *)hspace;
-- (void)setHspace:(NSString *)hspace;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)standby;
-- (void)setStandby:(NSString *)standby;
-- (long)tabIndex;
-- (void)setTabIndex:(long)tabIndex;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
-- (NSString *)useMap;
-- (void)setUseMap:(NSString *)useMap;
-- (NSString *)vspace;
-- (void)setVspace:(NSString *)vspace;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
- at end
-
- at interface HTMLParamElement : HTMLElement
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
-- (NSString *)valueType;
-- (void)setValueType:(NSString *)valueType;
- at end
-
- at interface HTMLAppletElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)alt;
-- (void)setAlt:(NSString *)alt;
-- (NSString *)archive;
-- (void)setArchive:(NSString *)archive;
-- (NSString *)code;
-- (void)setCode:(NSString *)code;
-- (NSString *)codeBase;
-- (void)setCodeBase:(NSString *)codeBase;
-- (NSString *)codeType;
-- (void)setCodeType:(NSString *)codeType;
-- (NSString *)height;
-- (void)setHeight:(NSString *)height;
-- (NSString *)hspace;
-- (void)setHspace:(NSString *)hspace;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)object;
-- (void)setObject:(NSString *)object;
-- (NSString *)vspace;
-- (void)setVspace:(NSString *)vspace;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
- at end
-
- at interface HTMLMapElement : HTMLElement
-- (HTMLCollection *)areas;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
- at end
-
- at interface HTMLAreaElement : HTMLElement
-- (NSString *)accessKey;
-- (void)setAccessKey:(NSString *)accessKey;
-- (NSString *)alt;
-- (void)setAlt:(NSString *)alt;
-- (NSString *)coords;
-- (void)setCoords:(NSString *)coords;
-- (NSString *)href;
-- (void)setHref:(NSString *)href;
-- (BOOL)noHref;
-- (void)setNoHref:(BOOL)noHref;
-- (NSString *)shape;
-- (void)setShape:(NSString *)shape;
-- (long)tabIndex;
-- (void)setTabIndex:(long)tabIndex;
-- (NSString *)target;
-- (void)setTarget:(NSString *)target;
- at end
-
- at interface HTMLScriptElement : HTMLElement
-- (NSString *)text;
-- (void)setText:(NSString *)text;
-- (NSString *)htmlFor;
-- (void)setHtmlFor:(NSString *)htmlFor;
-- (NSString *)event;
-- (void)setEvent:(NSString *)event;
-- (NSString *)charset;
-- (void)setCharset:(NSString *)charset;
-- (BOOL)defer;
-- (void)setDefer:(BOOL)defer;
-- (NSString *)src;
-- (void)setSrc:(NSString *)src;
-- (NSString *)type;
-- (void)setType:(NSString *)type;
- at end
-
- at interface HTMLTableCaptionElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
- at end
-
- at interface HTMLTableSectionElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)ch;
-- (void)setCh:(NSString *)ch;
-- (NSString *)chOff;
-- (void)setChOff:(NSString *)chOff;
-- (NSString *)vAlign;
-- (void)setVAlign:(NSString *)vAlign;
-- (HTMLCollection *)rows;
-- (HTMLElement *)insertRow:(long)index;
-- (void)deleteRow:(long)index;
- at end
-
- at interface HTMLTableElement : HTMLElement
-- (HTMLTableCaptionElement *)caption;
-- (HTMLTableSectionElement *)tHead;
-- (HTMLTableSectionElement *)tFoot;
-- (HTMLCollection *)rows;
-- (HTMLCollection *)tBodies;
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)bgColor;
-- (void)setBgColor:(NSString *)bgColor;
-- (NSString *)border;
-- (void)setBorder:(NSString *)border;
-- (NSString *)cellPadding;
-- (void)setCellPadding:(NSString *)cellPadding;
-- (NSString *)cellSpacing;
-- (void)setCellSpacing:(NSString *)cellSpacing;
-- (NSString *)frame;
-- (void)setFrame:(NSString *)frame;
-- (NSString *)rules;
-- (void)setRules:(NSString *)rules;
-- (NSString *)summary;
-- (void)setSummary:(NSString *)summary;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
-- (HTMLElement *)createTHead;
-- (void)deleteTHead;
-- (HTMLElement *)createTFoot;
-- (void)deleteTFoot;
-- (HTMLElement *)createCaption;
-- (void)deleteCaption;
-- (HTMLElement *)insertRow:(long)index;
-- (void)deleteRow:(long)index;
- at end
-
- at interface HTMLTableColElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)ch;
-- (void)setCh:(NSString *)ch;
-- (NSString *)chOff;
-- (void)setChOff:(NSString *)chOff;
-- (long)span;
-- (void)setSpan:(long)span;
-- (NSString *)vAlign;
-- (void)setVAlign:(NSString *)vAlign;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
- at end
-
- at interface HTMLTableRowElement : HTMLElement
-- (long)rowIndex;
-- (void)setRowIndex:(long)rowIndex;
-- (long)sectionRowIndex;
-- (void)setSectionRowIndex:(long)sectionRowIndex;
-- (HTMLCollection *)cells;
-- (void)setCells:(HTMLCollection *)cells; // Is cells really read/write?
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)bgColor;
-- (void)setBgColor:(NSString *)bgColor;
-- (NSString *)ch;
-- (void)setCh:(NSString *)ch;
-- (NSString *)chOff;
-- (void)setChOff:(NSString *)chOff;
-- (NSString *)vAlign;
-- (void)setVAlign:(NSString *)vAlign;
-- (HTMLElement *)insertCell:(long)index;
-- (void)deleteCell:(long)index;
- at end
-
- at interface HTMLTableCellElement : HTMLElement
-- (long)cellIndex;
-- (void)setCellIndex:(long)cellIndex;
-- (NSString *)abbr;
-- (void)setAbbr:(NSString *)abbr;
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)axis;
-- (void)setAxis:(NSString *)axis;
-- (NSString *)bgColor;
-- (void)setBgColor:(NSString *)bgColor;
-- (NSString *)ch;
-- (void)setCh:(NSString *)ch;
-- (NSString *)chOff;
-- (void)setChOff:(NSString *)chOff;
-- (long)colSpan;
-- (void)setColSpan:(long)colSpan;
-- (NSString *)headers;
-- (void)setHeaders:(NSString *)headers;
-- (NSString *)height;
-- (void)setHeight:(NSString *)height;
-- (BOOL)noWrap;
-- (void)setNoWrap:(BOOL)noWrap;
-- (long)rowSpan;
-- (void)setRowSpan:(long)rowSpan;
-- (NSString *)scope;
-- (void)setScope:(NSString *)scope;
-- (NSString *)vAlign;
-- (void)setVAlign:(NSString *)vAlign;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
- at end
-
- at interface HTMLFrameSetElement : HTMLElement
-- (NSString *)cols;
-- (void)setCols:(NSString *)cols;
-- (NSString *)rows;
-- (void)setRows:(NSString *)rows;
- at end
-
- at interface HTMLFrameElement : HTMLElement
-- (NSString *)frameBorder;
-- (void)setFrameBorder:(NSString *)frameBorder;
-- (NSString *)longDesc;
-- (void)setLongDesc:(NSString *)longDesc;
-- (NSString *)marginHeight;
-- (void)setMarginHeight:(NSString *)marginHeight;
-- (NSString *)marginWidth;
-- (void)setMarginWidth:(NSString *)marginWidth;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (BOOL)noResize;
-- (void)setNoResize:(BOOL)noResize;
-- (NSString *)scrolling;
-- (void)setScrolling:(NSString *)scrolling;
-- (NSString *)src;
-- (void)setSrc:(NSString *)src;
- at end
-
- at interface HTMLIFrameElement : HTMLElement
-- (NSString *)align;
-- (void)setAlign:(NSString *)align;
-- (NSString *)frameBorder;
-- (void)setFrameBorder:(NSString *)frameBorder;
-- (NSString *)height;
-- (void)setHeight:(NSString *)height;
-- (NSString *)longDesc;
-- (void)setLongDesc:(NSString *)longDesc;
-- (NSString *)marginHeight;
-- (void)setMarginHeight:(NSString *)marginHeight;
-- (NSString *)marginWidth;
-- (void)setMarginWidth:(NSString *)marginWidth;
-- (NSString *)name;
-- (void)setName:(NSString *)name;
-- (NSString *)scrolling;
-- (void)setScrolling:(NSString *)scrolling;
-- (NSString *)src;
-- (void)setSrc:(NSString *)src;
-- (NSString *)width;
-- (void)setWidth:(NSString *)width;
- at end
diff --git a/WebCore/kwq/HTMLDOM.mm b/WebCore/kwq/HTMLDOM.mm
index a536585..895fdaa 100644
--- a/WebCore/kwq/HTMLDOM.mm
+++ b/WebCore/kwq/HTMLDOM.mm
@@ -23,7 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#import "HTMLDOM.h"
+#import "DOMHTML.h"
#import <dom/html_element.h>
#import <html/html_baseimpl.h>
@@ -53,16 +53,16 @@ using DOM::HTMLTitleElementImpl;
using DOM::NameNodeListImpl;
using DOM::NodeImpl;
- at interface HTMLCollection (HTMLCollectionInternal)
-+ (HTMLCollection *)_collectionWithImpl:(HTMLCollectionImpl *)impl;
+ at interface DOMHTMLCollection (HTMLCollectionInternal)
++ (DOMHTMLCollection *)_collectionWithImpl:(HTMLCollectionImpl *)impl;
@end;
- at interface HTMLElement (HTMLElementInternal)
-+ (HTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl;
+ at interface DOMHTMLElement (HTMLElementInternal)
++ (DOMHTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl;
- (HTMLElementImpl *)_HTMLElementImpl;
@end;
- at implementation HTMLCollection
+ at implementation DOMHTMLCollection
- (id)_initWithCollectionImpl:(HTMLCollectionImpl *)impl
{
@@ -75,7 +75,7 @@ using DOM::NodeImpl;
return self;
}
-+ (HTMLCollection *)_collectionWithImpl:(HTMLCollectionImpl *)impl
++ (DOMHTMLCollection *)_collectionWithImpl:(HTMLCollectionImpl *)impl
{
if (!impl)
return nil;
@@ -110,7 +110,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLElement
+ at implementation DOMHTMLElement
- (id)_initWithElementImpl:(HTMLElementImpl *)impl
{
@@ -123,7 +123,7 @@ using DOM::NodeImpl;
return self;
}
-+ (HTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl
++ (DOMHTMLElement *)_elementWithImpl:(HTMLElementImpl *)impl
{
if (!impl)
return nil;
@@ -193,7 +193,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLDocument
+ at implementation DOMHTMLDocument
- (HTMLDocumentImpl *)_HTMLDocumentImpl
{
@@ -225,42 +225,42 @@ using DOM::NodeImpl;
return [self _HTMLDocumentImpl]->URL().getNSString();
}
-- (HTMLElement *)body
+- (DOMHTMLElement *)body
{
- return [HTMLElement _elementWithImpl:[self _HTMLDocumentImpl]->body()];
+ return [DOMHTMLElement _elementWithImpl:[self _HTMLDocumentImpl]->body()];
}
-- (HTMLCollection *)images
+- (DOMHTMLCollection *)images
{
HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_IMAGES);
- return [HTMLCollection _collectionWithImpl:collection];
+ return [DOMHTMLCollection _collectionWithImpl:collection];
}
-- (HTMLCollection *)applets
+- (DOMHTMLCollection *)applets
{
HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_APPLETS);
- return [HTMLCollection _collectionWithImpl:collection];
+ return [DOMHTMLCollection _collectionWithImpl:collection];
}
-- (HTMLCollection *)links
+- (DOMHTMLCollection *)links
{
HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_LINKS);
- return [HTMLCollection _collectionWithImpl:collection];
+ return [DOMHTMLCollection _collectionWithImpl:collection];
}
-- (HTMLCollection *)forms
+- (DOMHTMLCollection *)forms
{
HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_FORMS);
- return [HTMLCollection _collectionWithImpl:collection];
+ return [DOMHTMLCollection _collectionWithImpl:collection];
}
-- (HTMLCollection *)anchors
+- (DOMHTMLCollection *)anchors
{
HTMLCollectionImpl *collection = new HTMLCollectionImpl([self _HTMLDocumentImpl], HTMLCollectionImpl::DOC_ANCHORS);
- return [HTMLCollection _collectionWithImpl:collection];
+ return [DOMHTMLCollection _collectionWithImpl:collection];
}
-- (void)setBody:(HTMLElement *)body
+- (void)setBody:(DOMHTMLElement *)body
{
int exceptionCode = 0;
[self _HTMLDocumentImpl]->setBody([body _HTMLElementImpl], exceptionCode);
@@ -310,7 +310,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLHtmlElement
+ at implementation DOMHTMLHtmlElement
- (HTMLHtmlElementImpl *)_HTMLHtmlElementImpl
{
@@ -329,7 +329,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLHeadElement
+ at implementation DOMHTMLHeadElement
- (HTMLHeadElementImpl *)_headElementImpl
{
@@ -348,7 +348,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLLinkElement
+ at implementation DOMHTMLLinkElement
- (HTMLLinkElementImpl *)_linkElementImpl
{
@@ -448,7 +448,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTitleElement
+ at implementation DOMHTMLTitleElement
- (HTMLTitleElementImpl *)_titleElementImpl
{
@@ -467,7 +467,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLMetaElement
+ at implementation DOMHTMLMetaElement
- (HTMLMetaElementImpl *)_metaElementImpl
{
@@ -516,7 +516,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLBaseElement
+ at implementation DOMHTMLBaseElement
- (HTMLBaseElementImpl *)_baseElementImpl
{
@@ -545,7 +545,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLStyleElement
+ at implementation DOMHTMLStyleElement
- (HTMLStyleElementImpl *)_styleElementImpl
{
@@ -584,7 +584,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLBodyElement
+ at implementation DOMHTMLBodyElement
- (HTMLBodyElementImpl *)_bodyElementImpl
{
@@ -653,9 +653,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLFormElement
+ at implementation DOMHTMLFormElement
-- (HTMLCollection *)elements
+- (DOMHTMLCollection *)elements
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -745,7 +745,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLIsIndexElement
+ at implementation DOMHTMLIsIndexElement
- (NSString *)form
{
@@ -766,7 +766,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLSelectElement
+ at implementation DOMHTMLSelectElement
- (NSString *)type
{
@@ -802,13 +802,13 @@ using DOM::NodeImpl;
return 0;
}
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (HTMLCollection *)options
+- (DOMHTMLOptionsCollection *)options
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -820,12 +820,22 @@ using DOM::NodeImpl;
return NO;
}
+- (void)setDisabled:(BOOL)disabled
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
- (BOOL)multiple
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return NO;
}
+- (void)setMultiple:(BOOL)multiple
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
- (NSString *)name
{
ASSERT_WITH_MESSAGE(0, "not implemented");
@@ -843,13 +853,23 @@ using DOM::NodeImpl;
return 0;
}
+- (void)setSize:(long)size
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
- (long)tabIndex
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return 0;
}
-- (void)add:(HTMLElement *)element :(HTMLElement *)before
+- (void)setTabIndex:(long)tabIndex
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
+- (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before
{
ASSERT_WITH_MESSAGE(0, "not implemented");
}
@@ -871,7 +891,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLOptGroupElement
+ at implementation DOMHTMLOptGroupElement
- (BOOL)disabled
{
@@ -897,9 +917,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLOptionElement
+ at implementation DOMHTMLOptionElement
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -961,6 +981,11 @@ using DOM::NodeImpl;
return NO;
}
+- (void)setSelected:(BOOL)selected
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
- (NSString *)value
{
ASSERT_WITH_MESSAGE(0, "not implemented");
@@ -974,7 +999,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLInputElement
+ at implementation DOMHTMLInputElement
- (NSString *)defaultValue
{
@@ -998,7 +1023,7 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -1142,6 +1167,11 @@ using DOM::NodeImpl;
return nil;
}
+- (void)setType:(NSString *)type
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
- (NSString *)useMap
{
ASSERT_WITH_MESSAGE(0, "not implemented");
@@ -1186,7 +1216,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTextAreaElement
+ at implementation DOMHTMLTextAreaElement
- (NSString *)defaultValue
{
@@ -1199,7 +1229,7 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -1288,6 +1318,11 @@ using DOM::NodeImpl;
return nil;
}
+- (void)setType:(NSString *)type
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
- (NSString *)value
{
ASSERT_WITH_MESSAGE(0, "not implemented");
@@ -1316,9 +1351,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLButtonElement
+ at implementation DOMHTMLButtonElement
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -1387,9 +1422,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLLabelElement
+ at implementation DOMHTMLLabelElement
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -1419,9 +1454,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLFieldSetElement
+ at implementation DOMHTMLFieldSetElement
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -1429,9 +1464,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLLegendElement
+ at implementation DOMHTMLLegendElement
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -1461,7 +1496,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLUListElement
+ at implementation DOMHTMLUListElement
- (BOOL)compact
{
@@ -1487,7 +1522,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLOListElement
+ at implementation DOMHTMLOListElement
- (BOOL)compact
{
@@ -1524,7 +1559,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLDListElement
+ at implementation DOMHTMLDListElement
- (BOOL)compact
{
@@ -1539,7 +1574,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLDirectoryElement
+ at implementation DOMHTMLDirectoryElement
- (BOOL)compact
{
@@ -1554,7 +1589,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLMenuElement
+ at implementation DOMHTMLMenuElement
- (BOOL)compact
{
@@ -1569,7 +1604,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLLIElement
+ at implementation DOMHTMLLIElement
- (NSString *)type
{
@@ -1595,22 +1630,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLBlockquoteElement
-
-- (NSString *)cite
-{
- ASSERT_WITH_MESSAGE(0, "not implemented");
- return nil;
-}
-
-- (void)setCite:(NSString *)cite
-{
- ASSERT_WITH_MESSAGE(0, "not implemented");
-}
-
- at end
-
- at implementation HTMLDivElement
+ at implementation DOMHTMLDivElement
- (NSString *)align
{
@@ -1625,7 +1645,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLParagraphElement
+ at implementation DOMHTMLParagraphElement
- (NSString *)align
{
@@ -1640,7 +1660,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLHeadingElement
+ at implementation DOMHTMLHeadingElement
- (NSString *)align
{
@@ -1655,7 +1675,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLQuoteElement
+ at implementation DOMHTMLQuoteElement
- (NSString *)cite
{
@@ -1670,7 +1690,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLPreElement
+ at implementation DOMHTMLPreElement
- (long)width
{
@@ -1685,7 +1705,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLBRElement
+ at implementation DOMHTMLBRElement
- (NSString *)clear
{
@@ -1700,7 +1720,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLBaseFontElement
+ at implementation DOMHTMLBaseFontElement
- (NSString *)color
{
@@ -1737,7 +1757,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLFontElement
+ at implementation DOMHTMLFontElement
- (NSString *)color
{
@@ -1774,7 +1794,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLHRElement
+ at implementation DOMHTMLHRElement
- (NSString *)align
{
@@ -1822,7 +1842,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLModElement
+ at implementation DOMHTMLModElement
- (NSString *)cite
{
@@ -1848,7 +1868,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLAnchorElement
+ at implementation DOMHTMLAnchorElement
- (NSString *)accessKey
{
@@ -1994,7 +2014,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLImageElement
+ at implementation DOMHTMLImageElement
- (NSString *)lowSrc
{
@@ -2141,9 +2161,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLObjectElement
+ at implementation DOMHTMLObjectElement
-- (HTMLFormElement *)form
+- (DOMHTMLFormElement *)form
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -2248,13 +2268,13 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (NSString *)hspace
+- (long)hspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (void)setHspace:(NSString *)hspace
+- (void)setHspace:(long)hspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
}
@@ -2314,13 +2334,13 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (NSString *)vspace
+- (long)vspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
- return nil;
+ return 0;
}
-- (void)setVspace:(NSString *)vspace
+- (void)setVspace:(long)vspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
}
@@ -2336,9 +2356,15 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
+- (DOMDocument *)contentDocument
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+ return nil;
+}
+
@end
- at implementation HTMLParamElement
+ at implementation DOMHTMLParamElement
- (NSString *)name
{
@@ -2386,7 +2412,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLAppletElement
+ at implementation DOMHTMLAppletElement
- (NSString *)align
{
@@ -2465,13 +2491,13 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (NSString *)hspace
+- (long)hspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (void)setHspace:(NSString *)hspace
+- (void)setHspace:(long)hspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
}
@@ -2498,13 +2524,13 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (NSString *)vspace
+- (long)vspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (void)setVspace:(NSString *)vspace
+- (void)setVspace:(long)vspace
{
ASSERT_WITH_MESSAGE(0, "not implemented");
}
@@ -2522,9 +2548,9 @@ using DOM::NodeImpl;
@end
- at implementation HTMLMapElement
+ at implementation DOMHTMLMapElement
-- (HTMLCollection *)areas
+- (DOMHTMLCollection *)areas
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -2543,7 +2569,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLAreaElement
+ at implementation DOMHTMLAreaElement
- (NSString *)accessKey
{
@@ -2635,7 +2661,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLScriptElement
+ at implementation DOMHTMLScriptElement
- (NSString *)text
{
@@ -2716,7 +2742,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTableCaptionElement
+ at implementation DOMHTMLTableCaptionElement
- (NSString *)align
{
@@ -2731,7 +2757,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTableSectionElement
+ at implementation DOMHTMLTableSectionElement
- (NSString *)align
{
@@ -2777,13 +2803,13 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLCollection *)rows
+- (DOMHTMLCollection *)rows
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (HTMLElement *)insertRow:(long)index
+- (DOMHTMLElement *)insertRow:(long)index
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -2796,33 +2822,48 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTableElement
+ at implementation DOMHTMLTableElement
-- (HTMLTableCaptionElement *)caption
+- (DOMHTMLTableCaptionElement *)caption
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (HTMLTableSectionElement *)tHead
+- (void)setCaption:(DOMHTMLTableCaptionElement *)caption
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
+- (DOMHTMLTableSectionElement *)tHead
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (HTMLTableSectionElement *)tFoot
+- (void)setTHead:(DOMHTMLTableSectionElement *)tHead
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
+- (DOMHTMLTableSectionElement *)tFoot
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (HTMLCollection *)rows
+- (void)setTFoot:(DOMHTMLTableSectionElement *)tFoot
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+}
+
+- (DOMHTMLCollection *)rows
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (HTMLCollection *)tBodies
+- (DOMHTMLCollection *)tBodies
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -2927,7 +2968,7 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLElement *)createTHead
+- (DOMHTMLElement *)createTHead
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -2938,7 +2979,7 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLElement *)createTFoot
+- (DOMHTMLElement *)createTFoot
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -2949,7 +2990,7 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLElement *)createCaption
+- (DOMHTMLElement *)createCaption
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -2960,7 +3001,7 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLElement *)insertRow:(long)index
+- (DOMHTMLElement *)insertRow:(long)index
{
ASSERT_WITH_MESSAGE(0, "not implemented"); return nil;
}
@@ -2972,7 +3013,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTableColElement
+ at implementation DOMHTMLTableColElement
- (NSString *)align
{
@@ -3042,7 +3083,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTableRowElement
+ at implementation DOMHTMLTableRowElement
- (long)rowIndex
{
@@ -3066,13 +3107,13 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLCollection *)cells
+- (DOMHTMLCollection *)cells
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
}
-- (void)setCells:(HTMLCollection *)cells // Is cells really read/write?
+- (void)setCells:(DOMHTMLCollection *)cells // Is cells really read/write?
{
ASSERT_WITH_MESSAGE(0, "not implemented");
}
@@ -3132,7 +3173,7 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
-- (HTMLElement *)insertCell:(long)index
+- (DOMHTMLElement *)insertCell:(long)index
{
ASSERT_WITH_MESSAGE(0, "not implemented");
return nil;
@@ -3145,7 +3186,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLTableCellElement
+ at implementation DOMHTMLTableCellElement
- (long)cellIndex
{
@@ -3314,7 +3355,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLFrameSetElement
+ at implementation DOMHTMLFrameSetElement
- (NSString *)cols
{
@@ -3340,7 +3381,7 @@ using DOM::NodeImpl;
@end
- at implementation HTMLFrameElement
+ at implementation DOMHTMLFrameElement
- (NSString *)frameBorder
{
@@ -3430,9 +3471,15 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
+- (DOMDocument *)contentDocument
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+ return nil;
+}
+
@end
- at implementation HTMLIFrameElement
+ at implementation DOMHTMLIFrameElement
- (NSString *)align
{
@@ -3544,4 +3591,10 @@ using DOM::NodeImpl;
ASSERT_WITH_MESSAGE(0, "not implemented");
}
+- (DOMDocument *)contentDocument
+{
+ ASSERT_WITH_MESSAGE(0, "not implemented");
+ return nil;
+}
+
@end
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 1a9bd8d..be1b19c 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,28 @@
+2004-03-16 Darin Adler <darin at apple.com>
+
+ Reviewed by Ken.
+
+ - update for new DOM namespacing and header organization
+
+ * DOM.subproj/DOM.h: Changed to include the other DOM headers.
+ * DOM.subproj/DOMCSS.h: Added.
+ * DOM.subproj/DOMCore.h: Added.
+ * DOM.subproj/DOMEvents.h: Added.
+ * DOM.subproj/DOMHTML.h: Added.
+ * DOM.subproj/DOMRange.h: Added.
+ * DOM.subproj/DOMStylesheets.h: Added.
+ * DOM.subproj/DOMTraversal.h: Added.
+ * DOM.subproj/DOMViews.h: Added.
+ * WebKit.pbproj/project.pbxproj: Added new files.
+
+ * WebView.subproj/WebDefaultEditingDelegate.m:
+ (-[WebDefaultEditingDelegate webView:shouldApplyStyle:toElementsInDOMRange:]):
+ (-[WebDefaultEditingDelegate webView:shouldChangeTypingStyle:toStyle:]):
+ Change class names from CSS to DOMCSS.
+ * WebView.subproj/WebViewPrivate.h: Ditto.
+
+ * copy-webcore-files-to-webkit: Add new files.
+
2004-03-15 Ken Kocienda <kocienda at apple.com>
Reviewed by John
diff --git a/WebKit/DOM.subproj/DOM.h b/WebKit/DOM.subproj/DOM.h
index 1aa343a..0f4c44a 100644
--- a/WebKit/DOM.subproj/DOM.h
+++ b/WebKit/DOM.subproj/DOM.h
@@ -23,8 +23,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#import <Foundation/Foundation.h>
-
//=========================================================================
//=========================================================================
//=========================================================================
@@ -38,313 +36,11 @@
//=========================================================================
//=========================================================================
-enum {
- //
- // DOM node types
- //
- DOM_ELEMENT_NODE = 1,
- DOM_ATTRIBUTE_NODE = 2,
- DOM_TEXT_NODE = 3,
- DOM_CDATA_SECTION_NODE = 4,
- DOM_ENTITY_REFERENCE_NODE = 5,
- DOM_ENTITY_NODE = 6,
- DOM_PROCESSING_INSTRUCTION_NODE = 7,
- DOM_COMMENT_NODE = 8,
- DOM_DOCUMENT_NODE = 9,
- DOM_DOCUMENT_TYPE_NODE = 10,
- DOM_DOCUMENT_FRAGMENT_NODE = 11,
- DOM_NOTATION_NODE = 12,
- //
- // DOM core exception codes
- //
- DOM_INDEX_SIZE_ERR = 1,
- DOM_DOMSTRING_SIZE_ERR = 2,
- DOM_HIERARCHY_REQUEST_ERR = 3,
- DOM_WRONG_DOCUMENT_ERR = 4,
- DOM_INVALID_CHARACTER_ERR = 5,
- DOM_NO_DATA_ALLOWED_ERR = 6,
- DOM_NO_MODIFICATION_ALLOWED_ERR = 7,
- DOM_NOT_FOUND_ERR = 8,
- DOM_NOT_SUPPORTED_ERR = 9,
- DOM_INUSE_ATTRIBUTE_ERR = 10,
- DOM_INVALID_STATE_ERR = 11,
- DOM_SYNTAX_ERR = 12,
- DOM_INVALID_MODIFICATION_ERR = 13,
- DOM_NAMESPACE_ERR = 14,
- DOM_INVALID_ACCESS_ERR = 15,
- //
- // DOM range exception codes
- //
- DOM_BAD_BOUNDARYPOINTS_ERR = 1,
- DOM_INVALID_NODE_TYPE_ERR = 2,
- //
- // DOM Range comparison codes
- //
- DOM_START_TO_START = 0,
- DOM_START_TO_END = 1,
- DOM_END_TO_END = 2,
- DOM_END_TO_START = 3,
-};
-
-extern NSString * const DOMException;
-extern NSString * const DOMRangeException;
-
- at class CSSStyleDeclaration;
- at class CSSStyleSheet;
- at class DOMAttr;
- at class DOMCDATASection;
- at class DOMComment;
- at class DOMDocument;
- at class DOMDocumentType;
- at class DOMElement;
- at class DOMEntityReference;
- at class DOMNamedNodeMap;
- at class DOMNodeList;
- at class DOMProcessingInstruction;
- at class DOMRange;
- at class DOMStyleSheetList;
- at class DOMText;
-
- at protocol DOMDocumentRange;
- at protocol DOMViewCSS;
- at protocol DOMDocumentCSS;
- at protocol DOMImplementationCSS;
- at protocol DOMElementCSSInlineStyle;
-
-typedef struct DOMObjectInternal DOMObjectInternal;
-
- at interface DOMObject : NSObject <NSCopying>
-{
- DOMObjectInternal *_internal;
-}
- at end
-
- at interface DOMNode : DOMObject
-- (NSString *)nodeName;
-- (NSString *)nodeValue;
-- (void)setNodeValue:(NSString *)string;
-- (unsigned short)nodeType;
-- (DOMNode *)parentNode;
-- (DOMNodeList *)childNodes;
-- (DOMNode *)firstChild;
-- (DOMNode *)lastChild;
-- (DOMNode *)previousSibling;
-- (DOMNode *)nextSibling;
-- (DOMNamedNodeMap *)attributes;
-- (DOMDocument *)ownerDocument;
-- (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild;
-- (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild;
-- (DOMNode *)removeChild:(DOMNode *)oldChild;
-- (DOMNode *)appendChild:(DOMNode *)newChild;
-- (BOOL)hasChildNodes;
-- (DOMNode *)cloneNode:(BOOL)deep;
-- (void)normalize;
-- (BOOL)isSupported:(NSString *)feature :(NSString *)version;
-- (NSString *)namespaceURI;
-- (NSString *)prefix;
-- (void)setPrefix:(NSString *)prefix;
-- (NSString *)localName;
-- (BOOL)hasAttributes;
-- (NSString *)HTMLString;
- at end
-
- at interface DOMNamedNodeMap : DOMObject
-- (DOMNode *)getNamedItem:(NSString *)name;
-- (DOMNode *)setNamedItem:(DOMNode *)arg;
-- (DOMNode *)removeNamedItem:(NSString *)name;
-- (DOMNode *)item:(unsigned long)index;
-- (unsigned long)length;
-- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMNode *)setNamedItemNS:(DOMNode *)arg;
-- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
- at end
-
-
- at interface DOMNodeList : DOMObject
-- (DOMNode *)item:(unsigned long)index;
-- (unsigned long)length;
- at end
-
-
- at interface DOMImplementation : DOMObject <DOMImplementationCSS>
-- (BOOL)hasFeature:(NSString *)feature :(NSString *)version;
-- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;
-- (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype;
-- (CSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;
- at end
-
-
- at interface DOMDocumentFragment : DOMNode
- at end
-
-
- at interface DOMDocument : DOMNode <DOMDocumentRange, DOMViewCSS, DOMDocumentCSS>
-- (DOMDocumentType *)doctype;
-- (DOMImplementation *)implementation;
-- (DOMElement *)documentElement;
-- (DOMElement *)createElement:(NSString *)tagName;
-- (DOMDocumentFragment *)createDocumentFragment;
-- (DOMText *)createTextNode:(NSString *)data;
-- (DOMComment *)createComment:(NSString *)data;
-- (DOMCDATASection *)createCDATASection:(NSString *)data;
-- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data;
-- (DOMAttr *)createAttribute:(NSString *)name;
-- (DOMEntityReference *)createEntityReference:(NSString *)name;
-- (DOMNodeList *)getElementsByTagName:(NSString *)tagname;
-- (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep;
-- (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
-- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
-- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMElement *)getElementById:(NSString *)elementId;
-- (DOMRange *)createRange;
-- (CSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
-- (CSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
-- (DOMStyleSheetList *)styleSheets;
- at end
-
-
- at interface DOMCharacterData : DOMNode
-- (NSString *)data;
-- (void)setData:(NSString *)data;
-- (unsigned long)length;
-- (NSString *)substringData:(unsigned long)offset :(unsigned long)count;
-- (void)appendData:(NSString *)arg;
-- (void)insertData:(unsigned long)offset :(NSString *)arg;
-- (void)deleteData:(unsigned long)offset :(unsigned long) count;
-- (void)replaceData:(unsigned long)offset :(unsigned long)count :(NSString *)arg;
- at end
-
-
- at interface DOMAttr : DOMNode
-- (NSString *)name;
-- (BOOL)specified;
-- (NSString *)value;
-- (void)setValue:(NSString *)value;
-- (DOMElement *)ownerElement;
- at end
-
-
- at interface DOMElement : DOMNode <DOMElementCSSInlineStyle>
-- (NSString *)tagName;
-- (NSString *)getAttribute:(NSString *)name;
-- (void)setAttribute:(NSString *)name :(NSString *)value;
-- (void)removeAttribute:(NSString *)name;
-- (DOMAttr *)getAttributeNode:(NSString *)name;
-- (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr;
-- (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr;
-- (DOMNodeList *)getElementsByTagName:(NSString *)name;
-- (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;
-- (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr;
-- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
-- (BOOL)hasAttribute:(NSString *)name;
-- (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
-- (CSSStyleDeclaration *)style;
- at end
-
-
- at interface DOMText : DOMCharacterData
-- (DOMText *)splitText:(unsigned long)offset;
- at end
-
-
- at interface DOMComment : DOMCharacterData
- at end
-
-
- at interface DOMCDATASection : DOMText
- at end
-
-
- at interface DOMDocumentType : DOMNode
-- (NSString *)name;
-- (DOMNamedNodeMap *)entities;
-- (DOMNamedNodeMap *)notations;
-- (NSString *)publicId;
-- (NSString *)systemId;
-- (NSString *)internalSubset;
- at end
-
-
- at interface DOMNotation : DOMNode
-- (NSString *)publicId;
-- (NSString *)systemId;
- at end
-
-
- at interface DOMEntity : DOMNode
-- (NSString *)publicId;
-- (NSString *)systemId;
-- (NSString *)notationName;
- at end
-
-
- at interface DOMEntityReference : DOMNode
- at end
-
-
- at interface DOMProcessingInstruction : DOMNode
-- (NSString *)target;
-- (NSString *)data;
-- (void)setData:(NSString *)data;
- at end
-
-
- at interface DOMRange : DOMObject
-- (DOMNode *)startContainer;
-- (long)startOffset;
-- (DOMNode *)endContainer;
-- (long)endOffset;
-- (BOOL)collapsed;
-- (DOMNode *)commonAncestorContainer;
-- (void)setStart:(DOMNode *)refNode :(long)offset;
-- (void)setEnd:(DOMNode *)refNode :(long)offset;
-- (void)setStartBefore:(DOMNode *)refNode;
-- (void)setStartAfter:(DOMNode *)refNode;
-- (void)setEndBefore:(DOMNode *)refNode;
-- (void)setEndAfter:(DOMNode *)refNode;
-- (void)collapse:(BOOL)toStart;
-- (void)selectNode:(DOMNode *)refNode;
-- (void)selectNodeContents:(DOMNode *)refNode;
-- (short)compareBoundaryPoints:(unsigned short)how :(DOMRange *)sourceRange;
-- (void)deleteContents;
-- (DOMDocumentFragment *)extractContents;
-- (DOMDocumentFragment *)cloneContents;
-- (void)insertNode:(DOMNode *)newNode;
-- (void)surroundContents:(DOMNode *)newParent;
-- (DOMRange *)cloneRange;
-- (NSString *)toString;
-- (void)detach;
- at end
-
-
- at protocol DOMDocumentRange
-- (DOMRange *)createRange;
- at end
-
-
- at protocol DOMViewCSS
-- (CSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
- at end
-
-
- at protocol DOMDocumentStyle
-- (DOMStyleSheetList *)styleSheets;
- at end
-
-
- at protocol DOMDocumentCSS <DOMDocumentStyle>
-- (CSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
- at end
-
-
- at protocol DOMImplementationCSS
-- (CSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;
- at end
-
-
- at protocol DOMElementCSSInlineStyle
-- (CSSStyleDeclaration *)style;
- at end
+#import "DOMCore.h"
+#import "DOMViews.h"
+#import "DOMEvents.h"
+#import "DOMStylesheets.h"
+#import "DOMCSS.h"
+#import "DOMTraversal.h"
+#import "DOMRange.h"
+#import "DOMHTML.h"
diff --git a/WebKit/DOM.subproj/DOMCSS.h b/WebKit/DOM.subproj/DOMCSS.h
new file mode 100644
index 0000000..5f20405
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMCSS.h
@@ -0,0 +1,470 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMStylesheets.h"
+#import "DOMViews.h"
+
+ at class DOMCounter;
+ at class DOMCSSRule;
+ at class DOMCSSStyleDeclaration;
+ at class DOMCSSStyleSheet;
+ at class DOMCSSValue;
+ at class DOMRect;
+ at class DOMRGBColor;
+
+ at interface DOMCSSRuleList : DOMObject
+- (unsigned long)length;
+- (DOMCSSRule *)item:(unsigned long)index;
+ at end
+
+enum {
+ // DOMCSSRule RuleType
+ DOM_UNKNOWN_RULE = 0,
+ DOM_STYLE_RULE = 1,
+ DOM_CHARSET_RULE = 2,
+ DOM_IMPORT_RULE = 3,
+ DOM_MEDIA_RULE = 4,
+ DOM_FONT_FACE_RULE = 5,
+ DOM_PAGE_RULE = 6,
+};
+
+ at interface DOMCSSRule : DOMObject
+- (unsigned short)type;
+- (NSString *)cssText;
+- (void)setCssText:(NSString *)cssText;
+- (DOMCSSStyleSheet *)parentStyleSheet;
+- (DOMCSSRule *)parentRule;
+ at end
+
+ at interface DOMCSSStyleRule : DOMCSSRule
+- (NSString *)selectorText;
+- (void)setSelectorText:(NSString *)selectorText;
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSSMediaRule : DOMCSSRule
+- (DOMMediaList *)media;
+- (DOMCSSRuleList *)cssRules;
+- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index;
+- (void)deleteRule:(unsigned long)index;
+ at end
+
+ at interface DOMCSSFontFaceRule : DOMCSSRule
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSSPageRule : DOMCSSRule
+- (NSString *)selectorText;
+- (void)setSelectorText:(NSString *)selectorText;
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSSImportRule : DOMCSSRule
+- (DOMMediaList *)media;
+- (NSString *)href;
+- (DOMCSSStyleSheet *)styleSheet;
+ at end
+
+ at interface DOMCSSCharsetRule : DOMCSSRule
+- (NSString *)encoding;
+ at end
+
+ at interface DOMCSSUnknownRule : DOMCSSRule
+ at end
+
+ at interface DOMCSSStyleDeclaration : DOMObject
+- (NSString *)cssText;
+- (void)setCssText:(NSString *)cssText;
+- (NSString *)getPropertyValue:(NSString *)propertyName;
+- (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName;
+- (NSString *)removeProperty:(NSString *)propertyName;
+- (NSString *)getPropertyPriority:(NSString *)propertyName;
+- (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority;
+- (unsigned long)length;
+- (NSString *)item:(unsigned long)index;
+- (DOMCSSRule *)parentRule;
+ at end
+
+enum {
+ // DOMCSSValue UnitTypes
+ DOM_CSS_INHERIT = 0,
+ DOM_CSS_PRIMITIVE_VALUE = 1,
+ DOM_CSS_VALUE_LIST = 2,
+ DOM_CSS_CUSTOM = 3,
+};
+
+ at interface DOMCSSValue : DOMObject
+- (NSString *)cssText;
+- (void)setCssText:(NSString *)cssText;
+- (unsigned short)cssValueType;
+ at end
+
+enum {
+ // DOMCSSPrimitiveValue UnitTypes
+ DOM_CSS_UNKNOWN = 0,
+ DOM_CSS_NUMBER = 1,
+ DOM_CSS_PERCENTAGE = 2,
+ DOM_CSS_EMS = 3,
+ DOM_CSS_EXS = 4,
+ DOM_CSS_PX = 5,
+ DOM_CSS_CM = 6,
+ DOM_CSS_MM = 7,
+ DOM_CSS_IN = 8,
+ DOM_CSS_PT = 9,
+ DOM_CSS_PC = 10,
+ DOM_CSS_DEG = 11,
+ DOM_CSS_RAD = 12,
+ DOM_CSS_GRAD = 13,
+ DOM_CSS_MS = 14,
+ DOM_CSS_S = 15,
+ DOM_CSS_HZ = 16,
+ DOM_CSS_KHZ = 17,
+ DOM_CSS_DIMENSION = 18,
+ DOM_CSS_STRING = 19,
+ DOM_CSS_URI = 20,
+ DOM_CSS_IDENT = 21,
+ DOM_CSS_ATTR = 22,
+ DOM_CSS_COUNTER = 23,
+ DOM_CSS_RECT = 24,
+ DOM_CSS_RGBCOLOR = 25,
+};
+
+ at interface DOMCSSPrimitiveValue : DOMCSSValue
+- (unsigned short)primitiveType;
+- (void)setFloatValue:(unsigned short)unitType :(float)floatValue;
+- (float)getFloatValue:(unsigned short)unitType;
+- (void)setStringValue:(unsigned short)stringType :(NSString *)stringValue;
+- (NSString *)getStringValue;
+- (DOMCounter *)getCounterValue;
+- (DOMRect *)getRectValue;
+- (DOMRGBColor *)getRGBColorValue;
+ at end
+
+ at interface DOMCSSValueList : DOMCSSValue
+- (unsigned long)length;
+- (DOMCSSValue *)item:(unsigned long)index;
+ at end
+
+ at interface DOMRGBColor : DOMObject
+- (DOMCSSPrimitiveValue *)red;
+- (DOMCSSPrimitiveValue *)green;
+- (DOMCSSPrimitiveValue *)blue;
+ at end
+
+ at interface DOMRect : DOMObject
+- (DOMCSSPrimitiveValue *)top;
+- (DOMCSSPrimitiveValue *)right;
+- (DOMCSSPrimitiveValue *)bottom;
+- (DOMCSSPrimitiveValue *)left;
+ at end
+
+ at interface DOMCounter : DOMObject
+- (NSString *)identifier;
+- (NSString *)listStyle;
+- (NSString *)separator;
+ at end
+
+ at interface DOMElement (DOMElementCSSInlineStyle)
+- (DOMCSSStyleDeclaration *)style;
+ at end
+
+ at interface DOMCSS2Properties : DOMObject
+- (NSString *)azimuth;
+- (void)setAzimuth:(NSString *)azimuth;
+- (NSString *)background;
+- (void)setBackground:(NSString *)background;
+- (NSString *)backgroundAttachment;
+- (void)setBackgroundAttachment:(NSString *)backgroundAttachment;
+- (NSString *)backgroundColor;
+- (void)setBackgroundColor:(NSString *)backgroundColor;
+- (NSString *)backgroundImage;
+- (void)setBackgroundImage:(NSString *)backgroundImage;
+- (NSString *)backgroundPosition;
+- (void)setBackgroundPosition:(NSString *)backgroundPosition;
+- (NSString *)backgroundRepeat;
+- (void)setBackgroundRepeat:(NSString *)backgroundRepeat;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)borderCollapse;
+- (void)setBorderCollapse:(NSString *)borderCollapse;
+- (NSString *)borderColor;
+- (void)setBorderColor:(NSString *)borderColor;
+- (NSString *)borderSpacing;
+- (void)setBorderSpacing:(NSString *)borderSpacing;
+- (NSString *)borderStyle;
+- (void)setBorderStyle:(NSString *)borderStyle;
+- (NSString *)borderTop;
+- (void)setBorderTop:(NSString *)borderTop;
+- (NSString *)borderRight;
+- (void)setBorderRight:(NSString *)borderRight;
+- (NSString *)borderBottom;
+- (void)setBorderBottom:(NSString *)borderBottom;
+- (NSString *)borderLeft;
+- (void)setBorderLeft:(NSString *)borderLeft;
+- (NSString *)borderTopColor;
+- (void)setBorderTopColor:(NSString *)borderTopColor;
+- (NSString *)borderRightColor;
+- (void)setBorderRightColor:(NSString *)borderRightColor;
+- (NSString *)borderBottomColor;
+- (void)setBorderBottomColor:(NSString *)borderBottomColor;
+- (NSString *)borderLeftColor;
+- (void)setBorderLeftColor:(NSString *)borderLeftColor;
+- (NSString *)borderTopStyle;
+- (void)setBorderTopStyle:(NSString *)borderTopStyle;
+- (NSString *)borderRightStyle;
+- (void)setBorderRightStyle:(NSString *)borderRightStyle;
+- (NSString *)borderBottomStyle;
+- (void)setBorderBottomStyle:(NSString *)borderBottomStyle;
+- (NSString *)borderLeftStyle;
+- (void)setBorderLeftStyle:(NSString *)borderLeftStyle;
+- (NSString *)borderTopWidth;
+- (void)setBorderTopWidth:(NSString *)borderTopWidth;
+- (NSString *)borderRightWidth;
+- (void)setBorderRightWidth:(NSString *)borderRightWidth;
+- (NSString *)borderBottomWidth;
+- (void)setBorderBottomWidth:(NSString *)borderBottomWidth;
+- (NSString *)borderLeftWidth;
+- (void)setBorderLeftWidth:(NSString *)borderLeftWidth;
+- (NSString *)borderWidth;
+- (void)setBorderWidth:(NSString *)borderWidth;
+- (NSString *)bottom;
+- (void)setBottom:(NSString *)bottom;
+- (NSString *)captionSide;
+- (void)setCaptionSide:(NSString *)captionSide;
+- (NSString *)clear;
+- (void)setClear:(NSString *)clear;
+- (NSString *)clip;
+- (void)setClip:(NSString *)clip;
+- (NSString *)color;
+- (void)setColor:(NSString *)color;
+- (NSString *)content;
+- (void)setContent:(NSString *)content;
+- (NSString *)counterIncrement;
+- (void)setCounterIncrement:(NSString *)counterIncrement;
+- (NSString *)counterReset;
+- (void)setCounterReset:(NSString *)counterReset;
+- (NSString *)cue;
+- (void)setCue:(NSString *)cue;
+- (NSString *)cueAfter;
+- (void)setCueAfter:(NSString *)cueAfter;
+- (NSString *)cueBefore;
+- (void)setCueBefore:(NSString *)cueBefore;
+- (NSString *)cursor;
+- (void)setCursor:(NSString *)cursor;
+- (NSString *)direction;
+- (void)setDirection:(NSString *)direction;
+- (NSString *)display;
+- (void)setDisplay:(NSString *)display;
+- (NSString *)elevation;
+- (void)setElevation:(NSString *)elevation;
+- (NSString *)emptyCells;
+- (void)setEmptyCells:(NSString *)emptyCells;
+- (NSString *)cssFloat;
+- (void)setCssFloat:(NSString *)cssFloat;
+- (NSString *)font;
+- (void)setFont:(NSString *)font;
+- (NSString *)fontFamily;
+- (void)setFontFamily:(NSString *)fontFamily;
+- (NSString *)fontSize;
+- (void)setFontSize:(NSString *)fontSize;
+- (NSString *)fontSizeAdjust;
+- (void)setFontSizeAdjust:(NSString *)fontSizeAdjust;
+- (NSString *)fontStretch;
+- (void)setFontStretch:(NSString *)fontStretch;
+- (NSString *)fontStyle;
+- (void)setFontStyle:(NSString *)fontStyle;
+- (NSString *)fontVariant;
+- (void)setFontVariant:(NSString *)fontVariant;
+- (NSString *)fontWeight;
+- (void)setFontWeight:(NSString *)fontWeight;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (NSString *)left;
+- (void)setLeft:(NSString *)left;
+- (NSString *)letterSpacing;
+- (void)setLetterSpacing:(NSString *)letterSpacing;
+- (NSString *)lineHeight;
+- (void)setLineHeight:(NSString *)lineHeight;
+- (NSString *)listStyle;
+- (void)setListStyle:(NSString *)listStyle;
+- (NSString *)listStyleImage;
+- (void)setListStyleImage:(NSString *)listStyleImage;
+- (NSString *)listStylePosition;
+- (void)setListStylePosition:(NSString *)listStylePosition;
+- (NSString *)listStyleType;
+- (void)setListStyleType:(NSString *)listStyleType;
+- (NSString *)margin;
+- (void)setMargin:(NSString *)margin;
+- (NSString *)marginTop;
+- (void)setMarginTop:(NSString *)marginTop;
+- (NSString *)marginRight;
+- (void)setMarginRight:(NSString *)marginRight;
+- (NSString *)marginBottom;
+- (void)setMarginBottom:(NSString *)marginBottom;
+- (NSString *)marginLeft;
+- (void)setMarginLeft:(NSString *)marginLeft;
+- (NSString *)markerOffset;
+- (void)setMarkerOffset:(NSString *)markerOffset;
+- (NSString *)marks;
+- (void)setMarks:(NSString *)marks;
+- (NSString *)maxHeight;
+- (void)setMaxHeight:(NSString *)maxHeight;
+- (NSString *)maxWidth;
+- (void)setMaxWidth:(NSString *)maxWidth;
+- (NSString *)minHeight;
+- (void)setMinHeight:(NSString *)minHeight;
+- (NSString *)minWidth;
+- (void)setMinWidth:(NSString *)minWidth;
+- (NSString *)orphans;
+- (void)setOrphans:(NSString *)orphans;
+- (NSString *)outline;
+- (void)setOutline:(NSString *)outline;
+- (NSString *)outlineColor;
+- (void)setOutlineColor:(NSString *)outlineColor;
+- (NSString *)outlineStyle;
+- (void)setOutlineStyle:(NSString *)outlineStyle;
+- (NSString *)outlineWidth;
+- (void)setOutlineWidth:(NSString *)outlineWidth;
+- (NSString *)overflow;
+- (void)setOverflow:(NSString *)overflow;
+- (NSString *)padding;
+- (void)setPadding:(NSString *)padding;
+- (NSString *)paddingTop;
+- (void)setPaddingTop:(NSString *)paddingTop;
+- (NSString *)paddingRight;
+- (void)setPaddingRight:(NSString *)paddingRight;
+- (NSString *)paddingBottom;
+- (void)setPaddingBottom:(NSString *)paddingBottom;
+- (NSString *)paddingLeft;
+- (void)setPaddingLeft:(NSString *)paddingLeft;
+- (NSString *)page;
+- (void)setPage:(NSString *)page;
+- (NSString *)pageBreakAfter;
+- (void)setPageBreakAfter:(NSString *)pageBreakAfter;
+- (NSString *)pageBreakBefore;
+- (void)setPageBreakBefore:(NSString *)pageBreakBefore;
+- (NSString *)pageBreakInside;
+- (void)setPageBreakInside:(NSString *)pageBreakInside;
+- (NSString *)pause;
+- (void)setPause:(NSString *)pause;
+- (NSString *)pauseAfter;
+- (void)setPauseAfter:(NSString *)pauseAfter;
+- (NSString *)pauseBefore;
+- (void)setPauseBefore:(NSString *)pauseBefore;
+- (NSString *)pitch;
+- (void)setPitch:(NSString *)pitch;
+- (NSString *)pitchRange;
+- (void)setPitchRange:(NSString *)pitchRange;
+- (NSString *)playDuring;
+- (void)setPlayDuring:(NSString *)playDuring;
+- (NSString *)position;
+- (void)setPosition:(NSString *)position;
+- (NSString *)quotes;
+- (void)setQuotes:(NSString *)quotes;
+- (NSString *)richness;
+- (void)setRichness:(NSString *)richness;
+- (NSString *)right;
+- (void)setRight:(NSString *)right;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+- (NSString *)speak;
+- (void)setSpeak:(NSString *)speak;
+- (NSString *)speakHeader;
+- (void)setSpeakHeader:(NSString *)speakHeader;
+- (NSString *)speakNumeral;
+- (void)setSpeakNumeral:(NSString *)speakNumeral;
+- (NSString *)speakPunctuation;
+- (void)setSpeakPunctuation:(NSString *)speakPunctuation;
+- (NSString *)speechRate;
+- (void)setSpeechRate:(NSString *)speechRate;
+- (NSString *)stress;
+- (void)setStress:(NSString *)stress;
+- (NSString *)tableLayout;
+- (void)setTableLayout:(NSString *)tableLayout;
+- (NSString *)textAlign;
+- (void)setTextAlign:(NSString *)textAlign;
+- (NSString *)textDecoration;
+- (void)setTextDecoration:(NSString *)textDecoration;
+- (NSString *)textIndent;
+- (void)setTextIndent:(NSString *)textIndent;
+- (NSString *)textShadow;
+- (void)setTextShadow:(NSString *)textShadow;
+- (NSString *)textTransform;
+- (void)setTextTransform:(NSString *)textTransform;
+- (NSString *)top;
+- (void)setTop:(NSString *)top;
+- (NSString *)unicodeBidi;
+- (void)setUnicodeBidi:(NSString *)unicodeBidi;
+- (NSString *)verticalAlign;
+- (void)setVerticalAlign:(NSString *)verticalAlign;
+- (NSString *)visibility;
+- (void)setVisibility:(NSString *)visibility;
+- (NSString *)voiceFamily;
+- (void)setVoiceFamily:(NSString *)voiceFamily;
+- (NSString *)volume;
+- (void)setVolume:(NSString *)volume;
+- (NSString *)whiteSpace;
+- (void)setWhiteSpace:(NSString *)whiteSpace;
+- (NSString *)widows;
+- (void)setWidows:(NSString *)widows;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (NSString *)wordSpacing;
+- (void)setWordSpacing:(NSString *)wordSpacing;
+- (NSString *)zIndex;
+- (void)setZIndex:(NSString *)zIndex;
+ at end
+
+ at interface DOMCSSStyleSheet : DOMStyleSheet
+- (DOMCSSRule *)ownerRule;
+- (DOMCSSRuleList *)cssRules;
+- (unsigned long)insertRule:(NSString *)rule :(unsigned long)index;
+- (void)deleteRule:(unsigned long)index;
+ at end
+
+ at interface DOMDocument (DOMViewCSS)
+- (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
+ at end
+
+ at interface DOMDocument (DOMDocumentCSS)
+- (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)elt :(NSString *)pseudoElt;
+ at end
+
+ at interface DOMImplementation (DOMImplementationCSS)
+- (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;
+ at end
diff --git a/WebKit/DOM.subproj/DOMCore.h b/WebKit/DOM.subproj/DOMCore.h
new file mode 100644
index 0000000..c86c0d0
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMCore.h
@@ -0,0 +1,246 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import <Foundation/Foundation.h>
+
+ at class DOMDocument;
+ at class DOMDocumentType;
+ at class DOMElement;
+ at class DOMNamedNodeMap;
+ at class DOMNodeList;
+
+typedef struct DOMObjectInternal DOMObjectInternal;
+
+ at interface DOMObject : NSObject <NSCopying>
+{
+ DOMObjectInternal *_internal;
+}
+ at end
+
+typedef unsigned long long DOMTimeStamp;
+
+extern NSString * const DOMException;
+
+enum {
+ //
+ // DOM exception codes
+ //
+ DOM_INDEX_SIZE_ERR = 1,
+ DOM_DOMSTRING_SIZE_ERR = 2,
+ DOM_HIERARCHY_REQUEST_ERR = 3,
+ DOM_WRONG_DOCUMENT_ERR = 4,
+ DOM_INVALID_CHARACTER_ERR = 5,
+ DOM_NO_DATA_ALLOWED_ERR = 6,
+ DOM_NO_MODIFICATION_ALLOWED_ERR = 7,
+ DOM_NOT_FOUND_ERR = 8,
+ DOM_NOT_SUPPORTED_ERR = 9,
+ DOM_INUSE_ATTRIBUTE_ERR = 10,
+ DOM_INVALID_STATE_ERR = 11,
+ DOM_SYNTAX_ERR = 12,
+ DOM_INVALID_MODIFICATION_ERR = 13,
+ DOM_NAMESPACE_ERR = 14,
+ DOM_INVALID_ACCESS_ERR = 15,
+};
+
+ at interface DOMImplementation : DOMObject
+- (BOOL)hasFeature:(NSString *)feature :(NSString *)version;
+- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;
+- (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype;
+ at end
+
+enum {
+ //
+ // DOM node types
+ //
+ DOM_ELEMENT_NODE = 1,
+ DOM_ATTRIBUTE_NODE = 2,
+ DOM_TEXT_NODE = 3,
+ DOM_CDATA_SECTION_NODE = 4,
+ DOM_ENTITY_REFERENCE_NODE = 5,
+ DOM_ENTITY_NODE = 6,
+ DOM_PROCESSING_INSTRUCTION_NODE = 7,
+ DOM_COMMENT_NODE = 8,
+ DOM_DOCUMENT_NODE = 9,
+ DOM_DOCUMENT_TYPE_NODE = 10,
+ DOM_DOCUMENT_FRAGMENT_NODE = 11,
+ DOM_NOTATION_NODE = 12,
+};
+
+ at interface DOMNode : DOMObject
+- (NSString *)nodeName;
+- (NSString *)nodeValue;
+- (void)setNodeValue:(NSString *)string;
+- (unsigned short)nodeType;
+- (DOMNode *)parentNode;
+- (DOMNodeList *)childNodes;
+- (DOMNode *)firstChild;
+- (DOMNode *)lastChild;
+- (DOMNode *)previousSibling;
+- (DOMNode *)nextSibling;
+- (DOMNamedNodeMap *)attributes;
+- (DOMDocument *)ownerDocument;
+- (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild;
+- (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild;
+- (DOMNode *)removeChild:(DOMNode *)oldChild;
+- (DOMNode *)appendChild:(DOMNode *)newChild;
+- (BOOL)hasChildNodes;
+- (DOMNode *)cloneNode:(BOOL)deep;
+- (void)normalize;
+- (BOOL)isSupported:(NSString *)feature :(NSString *)version;
+- (NSString *)namespaceURI;
+- (NSString *)prefix;
+- (void)setPrefix:(NSString *)prefix;
+- (NSString *)localName;
+- (BOOL)hasAttributes;
+ at end
+
+ at interface DOMNodeList : DOMObject
+- (DOMNode *)item:(unsigned long)index;
+- (unsigned long)length;
+ at end
+
+ at interface DOMNamedNodeMap : DOMObject
+- (DOMNode *)getNamedItem:(NSString *)name;
+- (DOMNode *)setNamedItem:(DOMNode *)arg;
+- (DOMNode *)removeNamedItem:(NSString *)name;
+- (DOMNode *)item:(unsigned long)index;
+- (unsigned long)length;
+- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMNode *)setNamedItemNS:(DOMNode *)arg;
+- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+ at end
+
+ at interface DOMCharacterData : DOMNode
+- (NSString *)data;
+- (void)setData:(NSString *)data;
+- (unsigned long)length;
+- (NSString *)substringData:(unsigned long)offset :(unsigned long)count;
+- (void)appendData:(NSString *)arg;
+- (void)insertData:(unsigned long)offset :(NSString *)arg;
+- (void)deleteData:(unsigned long)offset :(unsigned long) count;
+- (void)replaceData:(unsigned long)offset :(unsigned long)count :(NSString *)arg;
+ at end
+
+ at interface DOMAttr : DOMNode
+- (NSString *)name;
+- (BOOL)specified;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (DOMElement *)ownerElement;
+ at end
+
+ at interface DOMElement : DOMNode
+- (NSString *)tagName;
+- (NSString *)getAttribute:(NSString *)name;
+- (void)setAttribute:(NSString *)name :(NSString *)value;
+- (void)removeAttribute:(NSString *)name;
+- (DOMAttr *)getAttributeNode:(NSString *)name;
+- (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr;
+- (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr;
+- (DOMNodeList *)getElementsByTagName:(NSString *)name;
+- (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
+- (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;
+- (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr;
+- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
+- (BOOL)hasAttribute:(NSString *)name;
+- (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
+ at end
+
+ at interface DOMText : DOMCharacterData
+- (DOMText *)splitText:(unsigned long)offset;
+ at end
+
+ at interface DOMComment : DOMCharacterData
+ at end
+
+ at interface DOMCDATASection : DOMText
+ at end
+
+ at interface DOMDocumentType : DOMNode
+- (NSString *)name;
+- (DOMNamedNodeMap *)entities;
+- (DOMNamedNodeMap *)notations;
+- (NSString *)publicId;
+- (NSString *)systemId;
+- (NSString *)internalSubset;
+ at end
+
+ at interface DOMNotation : DOMNode
+- (NSString *)publicId;
+- (NSString *)systemId;
+ at end
+
+ at interface DOMEntity : DOMNode
+- (NSString *)publicId;
+- (NSString *)systemId;
+- (NSString *)notationName;
+ at end
+
+ at interface DOMEntityReference : DOMNode
+ at end
+
+ at interface DOMProcessingInstruction : DOMNode
+- (NSString *)target;
+- (NSString *)data;
+- (void)setData:(NSString *)data;
+ at end
+
+ at interface DOMDocumentFragment : DOMNode
+ at end
+
+ at interface DOMDocument : DOMNode
+- (DOMDocumentType *)doctype;
+- (DOMImplementation *)implementation;
+- (DOMElement *)documentElement;
+- (DOMElement *)createElement:(NSString *)tagName;
+- (DOMDocumentFragment *)createDocumentFragment;
+- (DOMText *)createTextNode:(NSString *)data;
+- (DOMComment *)createComment:(NSString *)data;
+- (DOMCDATASection *)createCDATASection:(NSString *)data;
+- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data;
+- (DOMAttr *)createAttribute:(NSString *)name;
+- (DOMEntityReference *)createEntityReference:(NSString *)name;
+- (DOMNodeList *)getElementsByTagName:(NSString *)tagname;
+- (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep;
+- (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
+- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
+- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
+- (DOMElement *)getElementById:(NSString *)elementId;
+ at end
diff --git a/WebKit/DOM.subproj/DOMEvents.h b/WebKit/DOM.subproj/DOMEvents.h
new file mode 100644
index 0000000..22f9f7d
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMEvents.h
@@ -0,0 +1,112 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMViews.h"
+
+ at class DOMEvent;
+ at class DOMEventListener;
+
+extern NSString * const DOMEventException;
+
+enum DOMEventExceptionCode {
+ DOM_UNSPECIFIED_EVENT_TYPE_ERR = 0
+};
+
+ at interface DOMEventTarget : DOMObject
+- (void)addEventListener:(NSString *)type :(DOMEventListener *)listener :(BOOL)useCapture;
+- (void)removeEventListener:(NSString *)type :(DOMEventListener *)listener :(BOOL)useCapture;
+- (BOOL)dispatchEvent:(DOMEvent *)event;
+ at end
+
+enum {
+ DOM_CAPTURING_PHASE = 1,
+ DOM_AT_TARGET = 2,
+ DOM_BUBBLING_PHASE = 3
+};
+
+ at interface DOMEvent : DOMObject
+- (NSString *)type;
+- (DOMEventTarget *)target;
+- (DOMEventTarget *)currentTarget;
+- (unsigned short)eventPhase;
+- (BOOL)bubbles;
+- (BOOL)cancelable;
+- (DOMTimeStamp)timeStamp;
+- (void)stopPropagation;
+- (void)preventDefault;
+- (void)initEvent:(NSString *)eventTypeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg;
+ at end
+
+ at interface DOMDocument (DOMDocumentEvent)
+- (DOMEvent *)createEvent:(NSString *)eventType;
+ at end
+
+ at interface DOMUIEvent : DOMEvent
+- (DOMAbstractView *)view;
+- (long)detail;
+- (void)initUIEvent:(NSString *)typeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg :(DOMAbstractView *)viewArg :(long)detailArg;
+ at end
+
+ at interface DOMMouseEvent : DOMUIEvent
+- (long)screenX;
+- (long)screenY;
+- (long)clientX;
+- (long)clientY;
+- (BOOL)ctrlKey;
+- (BOOL)shiftKey;
+- (BOOL)altKey;
+- (BOOL)metaKey;
+- (unsigned short)button;
+- (DOMEventTarget *)relatedTarget;
+- (void)initMouseEvent:(NSString *)typeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg :(DOMAbstractView *)viewArg :(long)detailArg :(long)screenXArg :(long)screenYArg :(long)clientX :(long)clientY :(BOOL)ctrlKeyArg :(BOOL)altKeyArg :(BOOL)shiftKeyArg :(BOOL)metaKeyArg :(unsigned short)buttonArg :(DOMEventTarget *)relatedTargetArg;
+ at end
+
+enum {
+ DOM_MODIFICATION = 1,
+ DOM_ADDITION = 2,
+ DOM_REMOVAL = 3
+};
+
+ at interface DOMMutationEvent : DOMEvent
+- (DOMNode *)relatedNode;
+- (NSString *)prevValue;
+- (NSString *)newValue;
+- (NSString *)attrName;
+- (unsigned short)attrChange;
+- (void)initMutationEvent:(NSString *)typeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg :(DOMNode *)relatedNodeArg :(NSString *)prevValueArg :(NSString *)newValueArg :(NSString *)attrNameArg :(unsigned short)attrChangeArg;
+ at end
diff --git a/WebKit/DOM.subproj/DOMHTML.h b/WebKit/DOM.subproj/DOMHTML.h
new file mode 100644
index 0000000..edbb6f9
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMHTML.h
@@ -0,0 +1,806 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMHTMLElement;
+ at class DOMHTMLTableCaptionElement;
+ at class DOMHTMLTableSectionElement;
+
+ at interface DOMHTMLCollection : DOMObject
+- (unsigned long)length;
+- (DOMNode *)item:(unsigned long)index;
+- (DOMNode *)namedItem:(NSString *)name;
+ at end
+
+ at interface DOMHTMLOptionsCollection : DOMObject
+- (unsigned long)length;
+- (void)setLength:(unsigned long)length;
+- (DOMNode *)item:(unsigned long)index;
+- (DOMNode *)namedItem:(NSString *)name;
+ at end
+
+ at interface DOMHTMLDocument : DOMDocument
+- (NSString *)title;
+- (void)setTitle:(NSString *)title;
+- (NSString *)referrer;
+- (NSString *)domain;
+- (NSString *)URL;
+- (DOMHTMLElement *)body;
+- (void)setBody:(DOMHTMLElement *)body;
+- (DOMHTMLCollection *)images;
+- (DOMHTMLCollection *)applets;
+- (DOMHTMLCollection *)links;
+- (DOMHTMLCollection *)forms;
+- (DOMHTMLCollection *)anchors;
+- (NSString *)cookie;
+- (void)setCookie:(NSString *)cookie;
+- (void)open;
+- (void)close;
+- (void)write:(NSString *)text;
+- (void)writeln:(NSString *)text;
+- (DOMElement *)getElementById:(NSString *)elementId;
+- (DOMNodeList *)getElementsByName:(NSString *)elementName;
+ at end
+
+ at interface DOMHTMLElement : DOMElement
+- (NSString *)idName;
+- (void)setIdName:(NSString *)idName;
+- (NSString *)title;
+- (void)setTitle:(NSString *)title;
+- (NSString *)lang;
+- (void)setLang:(NSString *)lang;
+- (NSString *)dir;
+- (void)setDir:(NSString *)dir;
+- (NSString *)className;
+- (void)setClassName:(NSString *)className;
+ at end
+
+ at interface DOMHTMLHtmlElement : DOMHTMLElement
+- (NSString *)version;
+- (void)setVersion:(NSString *)version;
+ at end
+
+ at interface DOMHTMLHeadElement : DOMHTMLElement
+- (NSString *)profile;
+- (void)setProfile:(NSString *)profile;
+ at end
+
+ at interface DOMHTMLLinkElement : DOMHTMLElement
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)charset;
+- (void)setCharset:(NSString *)charset;
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (NSString *)hreflang;
+- (void)setHreflang:(NSString *)hreflang;
+- (NSString *)media;
+- (void)setMedia:(NSString *)media;
+- (NSString *)rel;
+- (void)setRel:(NSString *)rel;
+- (NSString *)rev;
+- (void)setRev:(NSString *)rev;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLTitleElement : DOMHTMLElement
+- (NSString *)text;
+- (void)setText:(NSString *)text;
+ at end
+
+ at interface DOMHTMLMetaElement : DOMHTMLElement
+- (NSString *)content;
+- (void)setContent:(NSString *)content;
+- (NSString *)httpEquiv;
+- (void)setHttpEquiv:(NSString *)httpEquiv;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)scheme;
+- (void)setScheme:(NSString *)scheme;
+ at end
+
+ at interface DOMHTMLBaseElement : DOMHTMLElement
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+ at end
+
+ at interface DOMHTMLIsIndexElement : DOMHTMLElement
+- (NSString *)form;
+- (NSString *)prompt;
+- (void)setPrompt:(NSString *)prompt;
+ at end
+
+ at interface DOMHTMLStyleElement : DOMHTMLElement
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)media;
+- (void)setMedia:(NSString *)media;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLBodyElement : DOMHTMLElement
+- (NSString *)aLink;
+- (void)setALink:(NSString *)aLink;
+- (NSString *)background;
+- (void)setBackground:(NSString *)background;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)link;
+- (void)setLink:(NSString *)link;
+- (NSString *)text;
+- (void)setText:(NSString *)text;
+- (NSString *)vLink;
+- (void)setVLink:(NSString *)vLink;
+ at end
+
+ at interface DOMHTMLFormElement : DOMHTMLElement
+- (DOMHTMLCollection *)elements;
+- (long)length;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)acceptCharset;
+- (void)setAcceptCharset:(NSString *)acceptCharset;
+- (NSString *)action;
+- (void)setAction:(NSString *)action;
+- (NSString *)enctype;
+- (void)setEnctype:(NSString *)enctype;
+- (NSString *)method;
+- (void)setMethod:(NSString *)method;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+- (void)submit;
+- (void)reset;
+ at end
+
+ at interface DOMHTMLSelectElement : DOMHTMLElement
+- (NSString *)type;
+- (long)selectedIndex;
+- (void)setSelectedIndex:(long)selectedIndex;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (long)length;
+- (DOMHTMLFormElement *)form;
+- (DOMHTMLOptionsCollection *)options;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (BOOL)multiple;
+- (void)setMultiple:(BOOL)multiple;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (long)size;
+- (void)setSize:(long)size;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before;
+- (void)remove:(long)index;
+- (void)blur;
+- (void)focus;
+ at end
+
+ at interface DOMHTMLOptGroupElement : DOMHTMLElement
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)label;
+- (void)setLabel:(NSString *)label;
+ at end
+
+ at interface DOMHTMLOptionElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (BOOL)defaultSelected;
+- (void)setDefaultSelected:(BOOL)defaultSelected;
+- (NSString *)text;
+- (long)index;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)label;
+- (void)setLabel:(NSString *)label;
+- (BOOL)selected;
+- (void)setSelected:(BOOL)selected;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+ at end
+
+ at interface DOMHTMLInputElement : DOMHTMLElement
+- (NSString *)defaultValue;
+- (void)setDefaultValue:(NSString *)defaultValue;
+- (BOOL)defaultChecked;
+- (void)setDefaultChecked:(BOOL)defaultChecked;
+- (DOMHTMLFormElement *)form;
+- (NSString *)accept;
+- (void)setAccept:(NSString *)accept;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (BOOL)checked;
+- (void)setChecked:(BOOL)checked;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (long)maxLength;
+- (void)setMaxLength:(long)maxLength;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (BOOL)readOnly;
+- (void)setReadOnly:(BOOL)readOnly;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (NSString *)useMap;
+- (void)setUseMap:(NSString *)useMap;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (void)blur;
+- (void)focus;
+- (void)select;
+- (void)click;
+ at end
+
+ at interface DOMHTMLTextAreaElement : DOMHTMLElement
+- (NSString *)defaultValue;
+- (void)setDefaultValue:(NSString *)defaultValue;
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (long)cols;
+- (void)setCols:(long)cols;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (BOOL)readOnly;
+- (void)setReadOnly:(BOOL)readOnly;
+- (long)rows;
+- (void)setRows:(long)rows;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (void)blur;
+- (void)focus;
+- (void)select;
+ at end
+
+ at interface DOMHTMLButtonElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+ at end
+
+ at interface DOMHTMLLabelElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)htmlFor;
+- (void)setHtmlFor:(NSString *)htmlFor;
+ at end
+
+ at interface DOMHTMLFieldSetElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+ at end
+
+ at interface DOMHTMLLegendElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLUListElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLOListElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+- (long)start;
+- (void)setStart:(long)start;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLDListElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+ at end
+
+ at interface DOMHTMLDirectoryElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+ at end
+
+ at interface DOMHTMLMenuElement : DOMHTMLElement
+- (BOOL)compact;
+- (void)setCompact:(BOOL)compact;
+ at end
+
+ at interface DOMHTMLLIElement : DOMHTMLElement
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (long)value;
+- (void)setValue:(long)value;
+ at end
+
+ at interface DOMHTMLDivElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLParagraphElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLHeadingElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLQuoteElement : DOMHTMLElement
+- (NSString *)cite;
+- (void)setCite:(NSString *)cite;
+ at end
+
+ at interface DOMHTMLPreElement : DOMHTMLElement
+- (long)width;
+- (void)setWidth:(long)width;
+ at end
+
+ at interface DOMHTMLBRElement : DOMHTMLElement
+- (NSString *)clear;
+- (void)setClear:(NSString *)clear;
+ at end
+
+ at interface DOMHTMLBaseFontElement : DOMHTMLElement
+- (NSString *)color;
+- (void)setColor:(NSString *)color;
+- (NSString *)face;
+- (void)setFace:(NSString *)face;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+ at end
+
+ at interface DOMHTMLFontElement : DOMHTMLElement
+- (NSString *)color;
+- (void)setColor:(NSString *)color;
+- (NSString *)face;
+- (void)setFace:(NSString *)face;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+ at end
+
+ at interface DOMHTMLHRElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (BOOL)noShade;
+- (void)setNoShade:(BOOL)noShade;
+- (NSString *)size;
+- (void)setSize:(NSString *)size;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLModElement : DOMHTMLElement
+- (NSString *)cite;
+- (void)setCite:(NSString *)cite;
+- (NSString *)dateTime;
+- (void)setDateTime:(NSString *)dateTime;
+ at end
+
+ at interface DOMHTMLAnchorElement : DOMHTMLElement
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)charset;
+- (void)setCharset:(NSString *)charset;
+- (NSString *)coords;
+- (void)setCoords:(NSString *)coords;
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (NSString *)hreflang;
+- (void)setHreflang:(NSString *)hreflang;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)rel;
+- (void)setRel:(NSString *)rel;
+- (NSString *)rev;
+- (void)setRev:(NSString *)rev;
+- (NSString *)shape;
+- (void)setShape:(NSString *)shape;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (void)blur;
+- (void)focus;
+ at end
+
+ at interface DOMHTMLImageElement : DOMHTMLElement
+// xxx
+- (NSString *)lowSrc;
+- (void)setLowSrc:(NSString *)lowSrc;
+
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (NSString *)hspace;
+- (void)setHspace:(NSString *)hspace;
+- (BOOL)isMap;
+- (void)setIsMap:(BOOL)isMap;
+- (NSString *)longDesc;
+- (void)setLongDesc:(NSString *)longDesc;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (NSString *)useMap;
+- (void)setUseMap:(NSString *)useMap;
+- (NSString *)vspace;
+- (void)setVspace:(NSString *)vspace;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLObjectElement : DOMHTMLElement
+- (DOMHTMLFormElement *)form;
+- (NSString *)code;
+- (void)setCode:(NSString *)code;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)archive;
+- (void)setArchive:(NSString *)archive;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)codeBase;
+- (void)setCodeBase:(NSString *)codeBase;
+- (NSString *)codeType;
+- (void)setCodeType:(NSString *)codeType;
+- (NSString *)data;
+- (void)setData:(NSString *)data;
+- (BOOL)declare;
+- (void)setDeclare:(BOOL)declare;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (long)hspace;
+- (void)setHspace:(long)hspace;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)standby;
+- (void)setStandby:(NSString *)standby;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (NSString *)useMap;
+- (void)setUseMap:(NSString *)useMap;
+- (long)vspace;
+- (void)setVspace:(long)vspace;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (DOMDocument *)contentDocument;
+ at end
+
+ at interface DOMHTMLParamElement : DOMHTMLElement
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+- (NSString *)value;
+- (void)setValue:(NSString *)value;
+- (NSString *)valueType;
+- (void)setValueType:(NSString *)valueType;
+ at end
+
+ at interface DOMHTMLAppletElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (NSString *)archive;
+- (void)setArchive:(NSString *)archive;
+- (NSString *)code;
+- (void)setCode:(NSString *)code;
+- (NSString *)codeBase;
+- (void)setCodeBase:(NSString *)codeBase;
+- (NSString *)codeType;
+- (void)setCodeType:(NSString *)codeType;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (long)hspace;
+- (void)setHspace:(long)hspace;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)object;
+- (void)setObject:(NSString *)object;
+- (long)vspace;
+- (void)setVspace:(long)vspace;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLMapElement : DOMHTMLElement
+- (DOMHTMLCollection *)areas;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+ at end
+
+ at interface DOMHTMLAreaElement : DOMHTMLElement
+- (NSString *)accessKey;
+- (void)setAccessKey:(NSString *)accessKey;
+- (NSString *)alt;
+- (void)setAlt:(NSString *)alt;
+- (NSString *)coords;
+- (void)setCoords:(NSString *)coords;
+- (NSString *)href;
+- (void)setHref:(NSString *)href;
+- (BOOL)noHref;
+- (void)setNoHref:(BOOL)noHref;
+- (NSString *)shape;
+- (void)setShape:(NSString *)shape;
+- (long)tabIndex;
+- (void)setTabIndex:(long)tabIndex;
+- (NSString *)target;
+- (void)setTarget:(NSString *)target;
+ at end
+
+ at interface DOMHTMLScriptElement : DOMHTMLElement
+- (NSString *)text;
+- (void)setText:(NSString *)text;
+- (NSString *)htmlFor;
+- (void)setHtmlFor:(NSString *)htmlFor;
+- (NSString *)event;
+- (void)setEvent:(NSString *)event;
+- (NSString *)charset;
+- (void)setCharset:(NSString *)charset;
+- (BOOL)defer;
+- (void)setDefer:(BOOL)defer;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (NSString *)type;
+- (void)setType:(NSString *)type;
+ at end
+
+ at interface DOMHTMLTableElement : DOMHTMLElement
+- (DOMHTMLTableCaptionElement *)caption;
+- (void)setCaption:(DOMHTMLTableCaptionElement *)caption;
+- (DOMHTMLTableSectionElement *)tHead;
+- (void)setTHead:(DOMHTMLTableSectionElement *)tHead;
+- (DOMHTMLTableSectionElement *)tFoot;
+- (void)setTFoot:(DOMHTMLTableSectionElement *)tFoot;
+- (DOMHTMLCollection *)rows;
+- (DOMHTMLCollection *)tBodies;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)border;
+- (void)setBorder:(NSString *)border;
+- (NSString *)cellPadding;
+- (void)setCellPadding:(NSString *)cellPadding;
+- (NSString *)cellSpacing;
+- (void)setCellSpacing:(NSString *)cellSpacing;
+- (NSString *)frame;
+- (void)setFrame:(NSString *)frame;
+- (NSString *)rules;
+- (void)setRules:(NSString *)rules;
+- (NSString *)summary;
+- (void)setSummary:(NSString *)summary;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (DOMHTMLElement *)createTHead;
+- (void)deleteTHead;
+- (DOMHTMLElement *)createTFoot;
+- (void)deleteTFoot;
+- (DOMHTMLElement *)createCaption;
+- (void)deleteCaption;
+- (DOMHTMLElement *)insertRow:(long)index;
+- (void)deleteRow:(long)index;
+ at end
+
+ at interface DOMHTMLTableCaptionElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+ at end
+
+ at interface DOMHTMLTableColElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (long)span;
+- (void)setSpan:(long)span;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLTableSectionElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (DOMHTMLCollection *)rows;
+- (DOMHTMLElement *)insertRow:(long)index;
+- (void)deleteRow:(long)index;
+ at end
+
+ at interface DOMHTMLTableRowElement : DOMHTMLElement
+- (long)rowIndex;
+- (long)sectionRowIndex;
+- (DOMHTMLCollection *)cells;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (DOMHTMLElement *)insertCell:(long)index;
+- (void)deleteCell:(long)index;
+ at end
+
+ at interface DOMHTMLTableCellElement : DOMHTMLElement
+- (long)cellIndex;
+- (NSString *)abbr;
+- (void)setAbbr:(NSString *)abbr;
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)axis;
+- (void)setAxis:(NSString *)axis;
+- (NSString *)bgColor;
+- (void)setBgColor:(NSString *)bgColor;
+- (NSString *)ch;
+- (void)setCh:(NSString *)ch;
+- (NSString *)chOff;
+- (void)setChOff:(NSString *)chOff;
+- (long)colSpan;
+- (void)setColSpan:(long)colSpan;
+- (NSString *)headers;
+- (void)setHeaders:(NSString *)headers;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (BOOL)noWrap;
+- (void)setNoWrap:(BOOL)noWrap;
+- (long)rowSpan;
+- (void)setRowSpan:(long)rowSpan;
+- (NSString *)scope;
+- (void)setScope:(NSString *)scope;
+- (NSString *)vAlign;
+- (void)setVAlign:(NSString *)vAlign;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+ at end
+
+ at interface DOMHTMLFrameSetElement : DOMHTMLElement
+- (NSString *)cols;
+- (void)setCols:(NSString *)cols;
+- (NSString *)rows;
+- (void)setRows:(NSString *)rows;
+ at end
+
+ at interface DOMHTMLFrameElement : DOMHTMLElement
+- (NSString *)frameBorder;
+- (void)setFrameBorder:(NSString *)frameBorder;
+- (NSString *)longDesc;
+- (void)setLongDesc:(NSString *)longDesc;
+- (NSString *)marginHeight;
+- (void)setMarginHeight:(NSString *)marginHeight;
+- (NSString *)marginWidth;
+- (void)setMarginWidth:(NSString *)marginWidth;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (BOOL)noResize;
+- (void)setNoResize:(BOOL)noResize;
+- (NSString *)scrolling;
+- (void)setScrolling:(NSString *)scrolling;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (DOMDocument *)contentDocument;
+ at end
+
+ at interface DOMHTMLIFrameElement : DOMHTMLElement
+- (NSString *)align;
+- (void)setAlign:(NSString *)align;
+- (NSString *)frameBorder;
+- (void)setFrameBorder:(NSString *)frameBorder;
+- (NSString *)height;
+- (void)setHeight:(NSString *)height;
+- (NSString *)longDesc;
+- (void)setLongDesc:(NSString *)longDesc;
+- (NSString *)marginHeight;
+- (void)setMarginHeight:(NSString *)marginHeight;
+- (NSString *)marginWidth;
+- (void)setMarginWidth:(NSString *)marginWidth;
+- (NSString *)name;
+- (void)setName:(NSString *)name;
+- (NSString *)scrolling;
+- (void)setScrolling:(NSString *)scrolling;
+- (NSString *)src;
+- (void)setSrc:(NSString *)src;
+- (NSString *)width;
+- (void)setWidth:(NSString *)width;
+- (DOMDocument *)contentDocument;
+ at end
+
+// FIXME: Should this move to another file?
+ at interface DOMNode (DOMHTMLExtensions)
+- (NSString *)HTMLString; // FIXME: Should this be renamed innerHTML or outerHTML?
+ at end
diff --git a/WebKit/DOM.subproj/DOMRange.h b/WebKit/DOM.subproj/DOMRange.h
new file mode 100644
index 0000000..0bbb41e
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMRange.h
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+extern NSString * const DOMRangeException;
+
+enum {
+ //
+ // DOM range exception codes
+ //
+ DOM_BAD_BOUNDARYPOINTS_ERR = 1,
+ DOM_INVALID_NODE_TYPE_ERR = 2,
+};
+
+enum {
+ //
+ // DOM Range comparison codes
+ //
+ DOM_START_TO_START = 0,
+ DOM_START_TO_END = 1,
+ DOM_END_TO_END = 2,
+ DOM_END_TO_START = 3,
+};
+
+ at interface DOMRange : DOMObject
+- (DOMNode *)startContainer;
+- (long)startOffset;
+- (DOMNode *)endContainer;
+- (long)endOffset;
+- (BOOL)collapsed;
+- (DOMNode *)commonAncestorContainer;
+- (void)setStart:(DOMNode *)refNode :(long)offset;
+- (void)setEnd:(DOMNode *)refNode :(long)offset;
+- (void)setStartBefore:(DOMNode *)refNode;
+- (void)setStartAfter:(DOMNode *)refNode;
+- (void)setEndBefore:(DOMNode *)refNode;
+- (void)setEndAfter:(DOMNode *)refNode;
+- (void)collapse:(BOOL)toStart;
+- (void)selectNode:(DOMNode *)refNode;
+- (void)selectNodeContents:(DOMNode *)refNode;
+- (short)compareBoundaryPoints:(unsigned short)how :(DOMRange *)sourceRange;
+- (void)deleteContents;
+- (DOMDocumentFragment *)extractContents;
+- (DOMDocumentFragment *)cloneContents;
+- (void)insertNode:(DOMNode *)newNode;
+- (void)surroundContents:(DOMNode *)newParent;
+- (DOMRange *)cloneRange;
+- (NSString *)toString;
+- (void)detach;
+ at end
+
+ at protocol DOMDocumentRange
+- (DOMRange *)createRange;
+ at end
diff --git a/WebKit/DOM.subproj/DOMStylesheets.h b/WebKit/DOM.subproj/DOMStylesheets.h
new file mode 100644
index 0000000..9e3f604
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMStylesheets.h
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMMediaList;
+ at class DOMStyleSheet;
+
+extern NSString * const DOMEventException;
+
+ at interface DOMStyleSheet : DOMObject
+- (NSString *)type;
+- (BOOL)disabled;
+- (void)setDisabled:(BOOL)disabled;
+- (DOMNode *)ownerNode;
+- (DOMStyleSheet *)parentStyleSheet;
+- (NSString *)href;
+- (NSString *)title;
+- (DOMMediaList *)media;
+ at end
+
+ at interface DOMStyleSheetList : DOMObject
+- (unsigned long)length;
+- (DOMStyleSheet *)item:(unsigned long)index;
+ at end
+
+ at interface DOMMediaList : DOMObject
+- (NSString *)mediaText;
+- (void)setMediaText:(NSString *)mediaText;
+- (unsigned long)length;
+- (NSString *)item:(unsigned long)index;
+- (void)deleteMedium:(NSString *)oldMedium;
+- (void)appendMedium:(NSString *)newMedium;
+ at end
+
+ at interface DOMObject (DOMLinkStyle)
+- (DOMStyleSheet *)sheet;
+ at end
+
+ at interface DOMDocument (DOMDocumentStyle)
+- (DOMStyleSheetList *)styleSheets;
+ at end
diff --git a/WebKit/DOM.subproj/DOMTraversal.h b/WebKit/DOM.subproj/DOMTraversal.h
new file mode 100644
index 0000000..5f3eba8
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMTraversal.h
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMNodeFilter;
+
+ at interface DOMNodeIterator : DOMObject
+- (DOMNode *)root;
+- (unsigned long)whatToShow;
+- (DOMNodeFilter *)filter;
+- (BOOL)expandEntityReferences;
+- (DOMNode *)nextNode;
+- (DOMNode *)previousNode;
+- (void)detach;
+ at end
+
+enum {
+ // Constants returned by acceptNode
+ DOM_FILTER_ACCEPT = 1,
+ DOM_FILTER_REJECT = 2,
+ DOM_FILTER_SKIP = 3,
+};
+
+enum {
+ // Constants for whatToShow
+ DOM_SHOW_ALL = 0xFFFFFFFF,
+ DOM_SHOW_ELEMENT = 0x00000001,
+ DOM_SHOW_ATTRIBUTE = 0x00000002,
+ DOM_SHOW_TEXT = 0x00000004,
+ DOM_SHOW_CDATA_SECTION = 0x00000008,
+ DOM_SHOW_ENTITY_REFERENCE = 0x00000010,
+ DOM_SHOW_ENTITY = 0x00000020,
+ DOM_SHOW_PROCESSING_INSTRUCTION = 0x00000040,
+ DOM_SHOW_COMMENT = 0x00000080,
+ DOM_SHOW_DOCUMENT = 0x00000100,
+ DOM_SHOW_DOCUMENT_TYPE = 0x00000200,
+ DOM_SHOW_DOCUMENT_FRAGMENT = 0x00000400,
+ DOM_SHOW_NOTATION = 0x00000800,
+};
+
+ at interface DOMNodeFilter : DOMObject
+- (short)acceptNode:(DOMNode *)n;
+ at end
+
+ at interface DOMTreeWalker : DOMObject
+- (DOMNode *)root;
+- (unsigned long)whatToShow;
+- (DOMNodeFilter *)filter;
+- (BOOL)expandEntityReferences;
+- (DOMNode *)currentNode;
+- (void)setCurrentNode:(DOMNode *)currentNode;
+- (DOMNode *)parentNode;
+- (DOMNode *)firstChild;
+- (DOMNode *)lastChild;
+- (DOMNode *)previousSibling;
+- (DOMNode *)nextSibling;
+- (DOMNode *)previousNode;
+- (DOMNode *)nextNode;
+ at end
+
+ at interface DOMDocument (DOMDocumentTraversal)
+- (DOMNodeIterator *)createNodeIterator:(DOMNode *)root :(unsigned long)whatToShow :(DOMNodeFilter *)filter :(BOOL)entityReferenceExpansion;
+- (DOMTreeWalker *)createTreeWalker:(DOMNode *)root :(unsigned long)whatToShow :(DOMNodeFilter *)filter :(BOOL)entityReferenceExpansion;
+ at end
diff --git a/WebKit/DOM.subproj/DOMViews.h b/WebKit/DOM.subproj/DOMViews.h
new file mode 100644
index 0000000..bcc7107
--- /dev/null
+++ b/WebKit/DOM.subproj/DOMViews.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+// Important Note:
+// Though this file appears as an exported header from WebKit, the
+// version you should edit is in WebCore. The WebKit version is copied
+// to WebKit during the build process.
+
+//=========================================================================
+//=========================================================================
+//=========================================================================
+
+#import "DOMCore.h"
+
+ at class DOMDocumentView;
+
+ at interface DOMAbstractView : DOMObject
+- (DOMDocumentView *)document;
+ at end
+
+ at interface DOMDocumentView : DOMObject
+- (DOMAbstractView *)defaultView;
+ at end
diff --git a/WebKit/WebKit.pbproj/project.pbxproj b/WebKit/WebKit.pbproj/project.pbxproj
index d257c0e..fa3655b 100644
--- a/WebKit/WebKit.pbproj/project.pbxproj
+++ b/WebKit/WebKit.pbproj/project.pbxproj
@@ -337,6 +337,14 @@
BE91866105EE618F0081354D,
515B878F05F5348600EABBF9,
BE95BEE805FD0805006E1513,
+ 9321290606068E3100B62302,
+ 9321290706068E3100B62302,
+ 9321290806068E3100B62302,
+ 9321290906068E3100B62302,
+ 9321290A06068E3100B62302,
+ 9321290B06068E3100B62302,
+ 9321290C06068E3100B62302,
+ 9321290D06068E3100B62302,
);
isa = PBXHeadersBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -2445,6 +2453,150 @@
settings = {
};
};
+ 932128FE06068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMCore.h;
+ path = DOM.subproj/DOMCore.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 932128FF06068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMCSS.h;
+ path = DOM.subproj/DOMCSS.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321290006068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMEvents.h;
+ path = DOM.subproj/DOMEvents.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321290106068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMHTML.h;
+ path = DOM.subproj/DOMHTML.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321290206068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMRange.h;
+ path = DOM.subproj/DOMRange.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321290306068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMStylesheets.h;
+ path = DOM.subproj/DOMStylesheets.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321290406068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMTraversal.h;
+ path = DOM.subproj/DOMTraversal.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321290506068E3100B62302 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ name = DOMViews.h;
+ path = DOM.subproj/DOMViews.h;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 9321290606068E3100B62302 = {
+ fileRef = 932128FE06068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ 9321290706068E3100B62302 = {
+ fileRef = 932128FF06068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ 9321290806068E3100B62302 = {
+ fileRef = 9321290006068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ 9321290906068E3100B62302 = {
+ fileRef = 9321290106068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ 9321290A06068E3100B62302 = {
+ fileRef = 9321290206068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ 9321290B06068E3100B62302 = {
+ fileRef = 9321290306068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ 9321290C06068E3100B62302 = {
+ fileRef = 9321290406068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
+ 9321290D06068E3100B62302 = {
+ fileRef = 9321290506068E3100B62302;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ Private,
+ );
+ };
+ };
932399D7034CF7F6008635CE = {
children = (
932399D8034CF7F6008635CE,
@@ -3575,6 +3727,14 @@
F57D194A034E732C01A80180 = {
children = (
BE91865E05EE618F0081354D,
+ 932128FE06068E3100B62302,
+ 932128FF06068E3100B62302,
+ 9321290006068E3100B62302,
+ 9321290106068E3100B62302,
+ 9321290206068E3100B62302,
+ 9321290306068E3100B62302,
+ 9321290406068E3100B62302,
+ 9321290506068E3100B62302,
BE91865F05EE618F0081354D,
F57D194B034E734901A80180,
F57D194D034E734901A80180,
diff --git a/WebKit/WebView.subproj/WebDefaultEditingDelegate.m b/WebKit/WebView.subproj/WebDefaultEditingDelegate.m
index 074a0a8..9b11691 100644
--- a/WebKit/WebView.subproj/WebDefaultEditingDelegate.m
+++ b/WebKit/WebView.subproj/WebDefaultEditingDelegate.m
@@ -52,12 +52,12 @@ static WebDefaultEditingDelegate *sharedDelegate = nil;
return YES;
}
-- (BOOL)webView:(WebView *)webView shouldApplyStyle:(CSSStyleDeclaration *)style toElementsInDOMRange:(DOMRange *)range
+- (BOOL)webView:(WebView *)webView shouldApplyStyle:(DOMCSSStyleDeclaration *)style toElementsInDOMRange:(DOMRange *)range
{
return YES;
}
-- (BOOL)webView:(WebView *)webView shouldChangeTypingStyle:(CSSStyleDeclaration *)currentStyle toStyle:(CSSStyleDeclaration *)proposedStyle
+- (BOOL)webView:(WebView *)webView shouldChangeTypingStyle:(DOMCSSStyleDeclaration *)currentStyle toStyle:(DOMCSSStyleDeclaration *)proposedStyle
{
return YES;
}
diff --git a/WebKit/WebView.subproj/WebViewPrivate.h b/WebKit/WebView.subproj/WebViewPrivate.h
index ac0c38e..1532d33 100644
--- a/WebKit/WebView.subproj/WebViewPrivate.h
+++ b/WebKit/WebView.subproj/WebViewPrivate.h
@@ -2,11 +2,13 @@
WebViewPrivate.m
Copyright 2001, Apple, Inc. All rights reserved.
*/
-#import <WebKit/DOM.h>
+
#import <WebKit/WebPolicyDelegate.h>
#import <WebKit/WebView.h>
#import <WebKit/WebFramePrivate.h>
+ at class DOMCSSStyleDeclaration;
+ at class DOMNode;
@class DOMRange;
@class NSError;
@class WebBackForwardList;
@@ -323,8 +325,8 @@ extern NSString * const WebViewDidChangeSelectionNotification;
- (BOOL)webView:(WebView *)webView shouldInsertText:(NSString *)text replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action;
- (BOOL)webView:(WebView *)webView shouldDeleteDOMRange:(DOMRange *)range;
- (BOOL)webView:(WebView *)webView shouldChangeSelectedDOMRange:(DOMRange *)currentRange toDOMRange:(DOMRange *)proposedRange;
-- (BOOL)webView:(WebView *)webView shouldApplyStyle:(CSSStyleDeclaration *)style toElementsInDOMRange:(DOMRange *)range;
-- (BOOL)webView:(WebView *)webView shouldChangeTypingStyle:(CSSStyleDeclaration *)currentStyle toStyle:(CSSStyleDeclaration *)proposedStyle;
+- (BOOL)webView:(WebView *)webView shouldApplyStyle:(DOMCSSStyleDeclaration *)style toElementsInDOMRange:(DOMRange *)range;
+- (BOOL)webView:(WebView *)webView shouldChangeTypingStyle:(DOMCSSStyleDeclaration *)currentStyle toStyle:(DOMCSSStyleDeclaration *)proposedStyle;
- (BOOL)webView:(WebView *)webView doCommandBySelector:(SEL)selector;
- (void)webViewDidBeginEditing:(NSNotification *)notification;
- (void)webViewDidChange:(NSNotification *)notification;
diff --git a/WebKit/copy-webcore-files-to-webkit b/WebKit/copy-webcore-files-to-webkit
index da45ce3..f4fa87b 100755
--- a/WebKit/copy-webcore-files-to-webkit
+++ b/WebKit/copy-webcore-files-to-webkit
@@ -7,10 +7,16 @@ use File::Basename;
my $ProgramName = 'copy-webcore-files-to-webkit';
my %Files = (
- 'kwq/DOM.h' => # WebCore path
- 'DOM.subproj/DOM.h', # WebKit path
- 'kwq/DOM-compat.h' => # WebCore path
- 'DOM.subproj/DOM-compat.h', # WebKit path
+ 'kwq/DOM.h' => 'DOM.subproj/DOM.h',
+ 'kwq/DOMCore.h' => 'DOM.subproj/DOMCore.h',
+ 'kwq/DOMViews.h' => 'DOM.subproj/DOMViews.h',
+ 'kwq/DOMEvents.h' => 'DOM.subproj/DOMEvents.h',
+ 'kwq/DOMStylesheets.h' => 'DOM.subproj/DOMStylesheets.h',
+ 'kwq/DOMCSS.h' => 'DOM.subproj/DOMCSS.h',
+ 'kwq/DOMTraversal.h' => 'DOM.subproj/DOMTraversal.h',
+ 'kwq/DOMRange.h' => 'DOM.subproj/DOMRange.h',
+ 'kwq/DOMHTML.h' => 'DOM.subproj/DOMHTML.h',
+ 'kwq/DOM-compat.h' => 'DOM.subproj/DOM-compat.h',
);
my $WebCorePath = '';
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list