Commit 8d1badc7 authored by darin's avatar darin

Reviewed by Maciej.

        - moved all the remnants of the public C++ DOM API out of khtml/dom
        - changed from "int" to "ExceptionCode" for DOM exceptions
        - removed unused CSS_HTML_RELATIVE
        - changed offsetInCharacters to be a member function of NodeImpl
        - changed DOM functions that take a NodeType to use NodeType instead of
          unsigned short for clarity (will still be unsigned short in bindings)
        - changed exception constants so they can be used directly in the
          implementation code (added in the offsets for different types of exceptions)
        - replaced the eventListenerType function with an isHTMLEventListener function
        - got rid of EventListenerEvent, which is a synonym for EventImpl*
        - eliminated handleEventImpl, whish is now the same as handleEvent

        - did other preparation for the "remove Impl suffix" renaming
          (tested by using a script that does the renaming)

        * khtml/dom/css_rule.h: Removed.
        * khtml/dom/css_stylesheet.h: Removed.
        * khtml/dom/css_value.h: Removed.
        * khtml/dom/dom2_events.cpp: Removed.
        * khtml/dom/dom2_events.h: Removed.
        * khtml/dom/dom2_range.h: Removed.
        * khtml/dom/dom2_traversal.cpp: Removed.
        * khtml/dom/dom2_traversal.h: Removed.
        * khtml/dom/dom_exception.h: Removed.
        * khtml/dom/dom_node.h: Removed.

        * dom/EventListener.h: Added.
        * dom/ExceptionCode.h: Added.

        * WebCore+SVG/kdom.h: Removed NodeType and ExceptionCodes
        * WebCore+SVG/kdomevents.h: Removed.

        * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
        * WebCore.xcodeproj/project.pbxproj: Updated for file changes.

        * bindings/scripts/CodeGeneratorJS.pm: Removed unneeded DOM:: prefix. Updated file
        names and exception prefix for changes in DOM exceptions.

        * bindings/js/JSDOMCore.cpp: Touched to cause auto-generated code to be
        recompiled. We need to get this fixed!
        * bindings/js/JSDOMEvents.cpp: Ditto.

        * dom/Attr.idl:
        * dom/CharacterData.idl:
        * dom/DOMImplementation.idl:
        * dom/DocumentType.idl:
        * dom/Element.idl:
        * dom/Entity.idl:
        * dom/MutationEvent.idl:
        * dom/Notation.idl:
        * dom/ProcessingInstruction.idl:
        * dom/Text.idl:
        * dom/WheelEvent.idl:
        Touched all IDL files so that changes in CodeGeneratorJS.pm would take effect.
        Added license headers.

        * bindings/objc/DOM.mm: Fixed garbled license agreement. Updated includes.
        Changed from a single "using namespace WebCore" to individual using statements
        because of the imminent conflict between DOMImplementation in Objective C
        and WebCore::DOMImplementation (currently has an Impl suffix). Added a typedef
        for WebCore::DOMImplementationImpl. Changed to use ExceptionCode instead of int.

        * bindings/objc/DOMCSS.h: Removed DOMCSSException and the special CSS exception
        codes. This is a feature of DOM Level 1 only. In DOM Level 2 these were eliminated
        and use basic DOM exception codes instead. We might have to do something for binary
        compatibility eventually, but perhaps not.

        * bindings/objc/DOMCSS.mm:
        * bindings/objc/DOMEvents.mm:
        * bindings/objc/DOMEventsInternal.h:
        * bindings/objc/DOMHTML.mm:
        * bindings/objc/DOMHTMLInternal.h:
        * bindings/objc/DOMViews.mm:
        * bindings/objc/DOMViewsInternal.h:
        Fixed garbled license agreements.
        Changed to use ExceptionCode instead of int and name the variable "ec".

        * bindings/objc/DOMInternal.h: Changed addDOMWrapperImpl to take NSObject* instead
        of id. This helps with overload resolution when addDOMWrapperImpl is renamed to be
        addDOMWrapper. Changed ALLOW_DOM_CAST to always use "class" in from of the type name
        of the WebCore class. This helps work around what seems like a bug in namespace support
        in Objective-C mode, although the bug only happens after the "remove Impl" renaming.
        * bindings/objc/DOMInternal.mm:
        (getDOMWrapperImpl): Changed to use HashMap.
        (addDOMWrapperImpl): Ditto.
        (removeDOMWrapper): Ditto.
        (raiseDOMException): Update to use new names for exception number ranges.

        * bridge/mac/WebCoreFrameBridge.mm:
        * khtml/ecma/xmlserializer.cpp:
        * kwq/KWQAccObject.mm:
        Removed unneeded includes.

        * css/css_ruleimpl.h: Moved "rule type" into this header.

        * dom/CommentImpl.h:
        * dom/CommentImpl.cpp: (WebCore::CommentImpl::offsetInCharacters): Added. Returns true.

        * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
        Changed this around so we don't have a local variable named docImpl.

        * khtml/ecma/kjs_binding.cpp: (KJS::setDOMException): Updated for new form of exception
        constants.

        * khtml/ecma/kjs_events.h:
        * khtml/ecma/kjs_events.cpp:
        (KJS::JSAbstractEventListener::handleEvent): Changed to no longer use EventListenerEvent.
        (KJS::JSAbstractEventListener::isHTMLEventListener): Added.

        * rendering/RenderTextField.h: Updated includes. Tweaked the code formatting of
        InputMutationListener. (Might be unnecessary since this class might be deleted soon.)

        * bridge/mac/MacFrame.mm:
        * css/css_computedstyle.cpp:
        * css/css_computedstyle.h:
        * css/css_ruleimpl.cpp:
        * css/css_stylesheetimpl.cpp:
        * css/css_stylesheetimpl.h:
        * css/css_valueimpl.cpp:
        * css/css_valueimpl.cpp:
        * css/css_valueimpl.h:
        * css/css_valueimpl.h:
        * css/cssparser.cpp:
        * css/cssstyleselector.cpp:
        * dom/CDATASectionImpl.cpp:
        * dom/CDATASectionImpl.h:
        * dom/CharacterDataImpl.cpp:
        * dom/CharacterDataImpl.h:
        * dom/ContainerNodeImpl.cpp:
        * dom/DOMImplementationImpl.cpp:
        * dom/DocumentFragmentImpl.cpp:
        * dom/DocumentFragmentImpl.h:
        * dom/DocumentImpl.cpp:
        * dom/DocumentImpl.h:
        * dom/DocumentTypeImpl.cpp:
        * dom/DocumentTypeImpl.h:
        * dom/NamedNodeMapImpl.h:
        * dom/NodeImpl.cpp:
        * dom/NodeImpl.h:
        * dom/NodeListImpl.cpp:
        * dom/TextImpl.cpp:
        * dom/TextImpl.h:
        * dom/dom2_eventsimpl.cpp:
        * dom/dom2_eventsimpl.h:
        * dom/dom2_rangeimpl.cpp:
        * dom/dom2_rangeimpl.h:
        * dom/dom2_traversalimpl.cpp:
        * dom/dom2_traversalimpl.h:
        * dom/dom_elementimpl.cpp:
        * dom/dom_elementimpl.h:
        * dom/dom_position.cpp:
        * dom/dom_xmlimpl.cpp:
        * dom/dom_xmlimpl.h:
        * dom/xml_tokenizer.cpp:
        * editing/AppendNodeCommand.cpp:
        * editing/ApplyStyleCommand.cpp:
        * editing/CompositeEditCommand.cpp:
        * editing/DeleteFromTextNodeCommand.cpp:
        * editing/InsertIntoTextNodeCommand.cpp:
        * editing/InsertLineBreakCommand.cpp:
        * editing/InsertNodeBeforeCommand.cpp:
        * editing/InsertParagraphSeparatorCommand.cpp:
        * editing/JoinTextNodesCommand.cpp:
        * editing/MergeIdenticalElementsCommand.cpp:
        * editing/RemoveNodeAttributeCommand.cpp:
        * editing/RemoveNodeCommand.cpp:
        * editing/ReplaceSelectionCommand.cpp:
        * editing/Selection.cpp:
        * editing/SelectionController.cpp:
        * editing/SelectionController.h:
        * editing/SetNodeAttributeCommand.cpp:
        * editing/SplitElementCommand.cpp:
        * editing/SplitTextNodeCommand.cpp:
        * editing/VisiblePosition.cpp:
        * editing/WrapContentsInDummySpanCommand.cpp:
        * editing/htmlediting.cpp:
        * editing/markup.cpp:
        * editing/visible_text.cpp:
        * khtml/ecma/kjs_binding.h:
        * khtml/ecma/kjs_css.cpp:
        * khtml/ecma/kjs_dom.cpp:
        * khtml/ecma/kjs_html.cpp:
        * khtml/ecma/kjs_range.cpp:
        * khtml/ecma/kjs_traversal.cpp:
        * khtml/ecma/kjs_traversal.h:
        * khtml/ecma/kjs_window.cpp:
        * khtml/html/HTMLElementImpl.cpp:
        * khtml/html/HTMLOptionElementImpl.cpp:
        * khtml/html/HTMLOptionElementImpl.h:
        * khtml/html/HTMLOptionsCollectionImpl.cpp:
        * khtml/html/HTMLSelectElementImpl.cpp:
        * khtml/html/HTMLTextAreaElementImpl.cpp:
        * khtml/html/html_documentimpl.cpp:
        * khtml/html/html_documentimpl.h:
        * khtml/html/html_headimpl.cpp:
        * khtml/html/html_tableimpl.cpp:
        * khtml/html/html_tableimpl.h:
        * khtml/html/htmlparser.cpp:
        * khtml/xbl/xbl_tokenizer.cpp:
        * khtml/xsl/xsl_stylesheetimpl.cpp:
        * ksvg2/misc/SVGDocumentExtensions.cpp:
        * ksvg2/svg/SVGAnimationElementImpl.cpp:
        * ksvg2/svg/SVGDOMImplementationImpl.cpp:
        * ksvg2/svg/SVGDOMImplementationImpl.h:
        * ksvg2/svg/SVGDocumentImpl.cpp:
        * ksvg2/svg/SVGDocumentImpl.h:
        * ksvg2/svg/SVGElementImpl.cpp:
        * ksvg2/svg/SVGLengthImpl.cpp:
        * ksvg2/svg/SVGLocatableImpl.cpp:
        * ksvg2/svg/SVGPolyElementImpl.cpp:
        * ksvg2/svg/SVGSVGElementImpl.cpp:
        * ksvg2/svg/SVGStyleElementImpl.cpp:
        * ksvg2/svg/SVGStyleElementImpl.h:
        * ksvg2/svg/SVGUseElementImpl.cpp:
        * page/Frame.cpp:
        * page/FrameView.cpp:
        * rendering/render_object.cpp:
        * xml/xmlhttprequest.cpp:
        Changed to use ExceptionCode instead of int and name the variable "ec".
        Also updated use of exception codes and other constants to get them from
        their new locations.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 60af1501
2006-03-05 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- moved all the remnants of the public C++ DOM API out of khtml/dom
- changed from "int" to "ExceptionCode" for DOM exceptions
- removed unused CSS_HTML_RELATIVE
- changed offsetInCharacters to be a member function of NodeImpl
- changed DOM functions that take a NodeType to use NodeType instead of
unsigned short for clarity (will still be unsigned short in bindings)
- changed exception constants so they can be used directly in the
implementation code (added in the offsets for different types of exceptions)
- replaced the eventListenerType function with an isHTMLEventListener function
- got rid of EventListenerEvent, which is a synonym for EventImpl*
- eliminated handleEventImpl, whish is now the same as handleEvent
- did other preparation for the "remove Impl suffix" renaming
(tested by using a script that does the renaming)
* khtml/dom/css_rule.h: Removed.
* khtml/dom/css_stylesheet.h: Removed.
* khtml/dom/css_value.h: Removed.
* khtml/dom/dom2_events.cpp: Removed.
* khtml/dom/dom2_events.h: Removed.
* khtml/dom/dom2_range.h: Removed.
* khtml/dom/dom2_traversal.cpp: Removed.
* khtml/dom/dom2_traversal.h: Removed.
* khtml/dom/dom_exception.h: Removed.
* khtml/dom/dom_node.h: Removed.
* dom/EventListener.h: Added.
* dom/ExceptionCode.h: Added.
* WebCore+SVG/kdom.h: Removed NodeType and ExceptionCodes
* WebCore+SVG/kdomevents.h: Removed.
* WebCore.xcodeproj/project.pbxproj: Updated for file changes.
* WebCore.xcodeproj/project.pbxproj: Updated for file changes.
* bindings/scripts/CodeGeneratorJS.pm: Removed unneeded DOM:: prefix. Updated file
names and exception prefix for changes in DOM exceptions.
* bindings/js/JSDOMCore.cpp: Touched to cause auto-generated code to be
recompiled. We need to get this fixed!
* bindings/js/JSDOMEvents.cpp: Ditto.
* dom/Attr.idl:
* dom/CharacterData.idl:
* dom/DOMImplementation.idl:
* dom/DocumentType.idl:
* dom/Element.idl:
* dom/Entity.idl:
* dom/MutationEvent.idl:
* dom/Notation.idl:
* dom/ProcessingInstruction.idl:
* dom/Text.idl:
* dom/WheelEvent.idl:
Touched all IDL files so that changes in CodeGeneratorJS.pm would take effect.
Added license headers.
* bindings/objc/DOM.mm: Fixed garbled license agreement. Updated includes.
Changed from a single "using namespace WebCore" to individual using statements
because of the imminent conflict between DOMImplementation in Objective C
and WebCore::DOMImplementation (currently has an Impl suffix). Added a typedef
for WebCore::DOMImplementationImpl. Changed to use ExceptionCode instead of int.
* bindings/objc/DOMCSS.h: Removed DOMCSSException and the special CSS exception
codes. This is a feature of DOM Level 1 only. In DOM Level 2 these were eliminated
and use basic DOM exception codes instead. We might have to do something for binary
compatibility eventually, but perhaps not.
* bindings/objc/DOMCSS.mm:
* bindings/objc/DOMEvents.mm:
* bindings/objc/DOMEventsInternal.h:
* bindings/objc/DOMHTML.mm:
* bindings/objc/DOMHTMLInternal.h:
* bindings/objc/DOMViews.mm:
* bindings/objc/DOMViewsInternal.h:
Fixed garbled license agreements.
Changed to use ExceptionCode instead of int and name the variable "ec".
* bindings/objc/DOMInternal.h: Changed addDOMWrapperImpl to take NSObject* instead
of id. This helps with overload resolution when addDOMWrapperImpl is renamed to be
addDOMWrapper. Changed ALLOW_DOM_CAST to always use "class" in from of the type name
of the WebCore class. This helps work around what seems like a bug in namespace support
in Objective-C mode, although the bug only happens after the "remove Impl" renaming.
* bindings/objc/DOMInternal.mm:
(getDOMWrapperImpl): Changed to use HashMap.
(addDOMWrapperImpl): Ditto.
(removeDOMWrapper): Ditto.
(raiseDOMException): Update to use new names for exception number ranges.
* bridge/mac/WebCoreFrameBridge.mm:
* khtml/ecma/xmlserializer.cpp:
* kwq/KWQAccObject.mm:
Removed unneeded includes.
* css/css_ruleimpl.h: Moved "rule type" into this header.
* dom/CommentImpl.h:
* dom/CommentImpl.cpp: (WebCore::CommentImpl::offsetInCharacters): Added. Returns true.
* khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
Changed this around so we don't have a local variable named docImpl.
* khtml/ecma/kjs_binding.cpp: (KJS::setDOMException): Updated for new form of exception
constants.
* khtml/ecma/kjs_events.h:
* khtml/ecma/kjs_events.cpp:
(KJS::JSAbstractEventListener::handleEvent): Changed to no longer use EventListenerEvent.
(KJS::JSAbstractEventListener::isHTMLEventListener): Added.
* rendering/RenderTextField.h: Updated includes. Tweaked the code formatting of
InputMutationListener. (Might be unnecessary since this class might be deleted soon.)
* bridge/mac/MacFrame.mm:
* css/css_computedstyle.cpp:
* css/css_computedstyle.h:
* css/css_ruleimpl.cpp:
* css/css_stylesheetimpl.cpp:
* css/css_stylesheetimpl.h:
* css/css_valueimpl.cpp:
* css/css_valueimpl.cpp:
* css/css_valueimpl.h:
* css/css_valueimpl.h:
* css/cssparser.cpp:
* css/cssstyleselector.cpp:
* dom/CDATASectionImpl.cpp:
* dom/CDATASectionImpl.h:
* dom/CharacterDataImpl.cpp:
* dom/CharacterDataImpl.h:
* dom/ContainerNodeImpl.cpp:
* dom/DOMImplementationImpl.cpp:
* dom/DocumentFragmentImpl.cpp:
* dom/DocumentFragmentImpl.h:
* dom/DocumentImpl.cpp:
* dom/DocumentImpl.h:
* dom/DocumentTypeImpl.cpp:
* dom/DocumentTypeImpl.h:
* dom/NamedNodeMapImpl.h:
* dom/NodeImpl.cpp:
* dom/NodeImpl.h:
* dom/NodeListImpl.cpp:
* dom/TextImpl.cpp:
* dom/TextImpl.h:
* dom/dom2_eventsimpl.cpp:
* dom/dom2_eventsimpl.h:
* dom/dom2_rangeimpl.cpp:
* dom/dom2_rangeimpl.h:
* dom/dom2_traversalimpl.cpp:
* dom/dom2_traversalimpl.h:
* dom/dom_elementimpl.cpp:
* dom/dom_elementimpl.h:
* dom/dom_position.cpp:
* dom/dom_xmlimpl.cpp:
* dom/dom_xmlimpl.h:
* dom/xml_tokenizer.cpp:
* editing/AppendNodeCommand.cpp:
* editing/ApplyStyleCommand.cpp:
* editing/CompositeEditCommand.cpp:
* editing/DeleteFromTextNodeCommand.cpp:
* editing/InsertIntoTextNodeCommand.cpp:
* editing/InsertLineBreakCommand.cpp:
* editing/InsertNodeBeforeCommand.cpp:
* editing/InsertParagraphSeparatorCommand.cpp:
* editing/JoinTextNodesCommand.cpp:
* editing/MergeIdenticalElementsCommand.cpp:
* editing/RemoveNodeAttributeCommand.cpp:
* editing/RemoveNodeCommand.cpp:
* editing/ReplaceSelectionCommand.cpp:
* editing/Selection.cpp:
* editing/SelectionController.cpp:
* editing/SelectionController.h:
* editing/SetNodeAttributeCommand.cpp:
* editing/SplitElementCommand.cpp:
* editing/SplitTextNodeCommand.cpp:
* editing/VisiblePosition.cpp:
* editing/WrapContentsInDummySpanCommand.cpp:
* editing/htmlediting.cpp:
* editing/markup.cpp:
* editing/visible_text.cpp:
* khtml/ecma/kjs_binding.h:
* khtml/ecma/kjs_css.cpp:
* khtml/ecma/kjs_dom.cpp:
* khtml/ecma/kjs_html.cpp:
* khtml/ecma/kjs_range.cpp:
* khtml/ecma/kjs_traversal.cpp:
* khtml/ecma/kjs_traversal.h:
* khtml/ecma/kjs_window.cpp:
* khtml/html/HTMLElementImpl.cpp:
* khtml/html/HTMLOptionElementImpl.cpp:
* khtml/html/HTMLOptionElementImpl.h:
* khtml/html/HTMLOptionsCollectionImpl.cpp:
* khtml/html/HTMLSelectElementImpl.cpp:
* khtml/html/HTMLTextAreaElementImpl.cpp:
* khtml/html/html_documentimpl.cpp:
* khtml/html/html_documentimpl.h:
* khtml/html/html_headimpl.cpp:
* khtml/html/html_tableimpl.cpp:
* khtml/html/html_tableimpl.h:
* khtml/html/htmlparser.cpp:
* khtml/xbl/xbl_tokenizer.cpp:
* khtml/xsl/xsl_stylesheetimpl.cpp:
* ksvg2/misc/SVGDocumentExtensions.cpp:
* ksvg2/svg/SVGAnimationElementImpl.cpp:
* ksvg2/svg/SVGDOMImplementationImpl.cpp:
* ksvg2/svg/SVGDOMImplementationImpl.h:
* ksvg2/svg/SVGDocumentImpl.cpp:
* ksvg2/svg/SVGDocumentImpl.h:
* ksvg2/svg/SVGElementImpl.cpp:
* ksvg2/svg/SVGLengthImpl.cpp:
* ksvg2/svg/SVGLocatableImpl.cpp:
* ksvg2/svg/SVGPolyElementImpl.cpp:
* ksvg2/svg/SVGSVGElementImpl.cpp:
* ksvg2/svg/SVGStyleElementImpl.cpp:
* ksvg2/svg/SVGStyleElementImpl.h:
* ksvg2/svg/SVGUseElementImpl.cpp:
* page/Frame.cpp:
* page/FrameView.cpp:
* rendering/render_object.cpp:
* xml/xmlhttprequest.cpp:
Changed to use ExceptionCode instead of int and name the variable "ec".
Also updated use of exception codes and other constants to get them from
their new locations.
2006-03-06 Eric Seidel <eseidel@apple.com>
Reviewed by mjs.
......
......@@ -36,43 +36,6 @@ namespace WebCore
/**
* All DOM constants
*/
enum NodeType
{
ELEMENT_NODE = 1,
ATTRIBUTE_NODE = 2,
TEXT_NODE = 3,
CDATA_SECTION_NODE = 4,
ENTITY_REFERENCE_NODE = 5,
ENTITY_NODE = 6,
PROCESSING_INSTRUCTION_NODE = 7,
COMMENT_NODE = 8,
DOCUMENT_NODE = 9,
DOCUMENT_TYPE_NODE = 10,
DOCUMENT_FRAGMENT_NODE = 11,
NOTATION_NODE = 12
};
enum ExceptionCodes
{
INDEX_SIZE_ERR = 1,
DOMSTRING_SIZE_ERR = 2,
HIERARCHY_REQUEST_ERR = 3,
WRONG_DOCUMENT_ERR = 4,
INVALID_CHARACTER_ERR = 5,
NO_DATA_ALLOWED_ERR = 6,
NO_MODIFICATION_ALLOWED_ERR = 7,
NOT_FOUND_ERR = 8,
NOT_SUPPORTED_ERR = 9,
INUSE_ATTRIBUTE_ERR = 10,
INVALID_STATE_ERR = 11,
SYNTAX_ERR = 12,
INVALID_MODIFICATION_ERR = 13,
NAMESPACE_ERR = 14,
INVALID_ACCESS_ERR = 15,
VALIDATION_ERR = 16, // DOM3
TYPE_MISMATCH_ERR = 17 // DOM3
};
enum DocumentPosition
{
DOCUMENT_POSITION_DISCONNECTED = 0x01,
......@@ -119,12 +82,7 @@ namespace WebCore
FEATURE_FORMAT_PRETTY_PRINT = 0x080000,
FEATURE_XML_DECLARATION = 0x100000
};
/**
* A TimeStamp represents a number of milliseconds
*/
typedef unsigned long long DOMTimeStamp;
};
}
#endif // SVG_SUPPORT
#endif
......
/*
Copyright (C) 2004, 2005 Nikolas Zimmermann <wildfox@kde.org>
2004, 2005 Rob Buis <buis@kde.org>
This file is part of the KDE project
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#ifndef KDOMEVENTS_H
#define KDOMEVENTS_H
#if SVG_SUPPORT
// General namespace specific definitions
namespace KDOM
{
enum PhaseType
{
CAPTURING_PHASE = 1,
AT_TARGET = 2,
BUBBLING_PHASE = 3
};
// KeyLocationCode
enum KeyLocationCode
{
DOM_KEY_LOCATION_STANDARD = 0x00,
DOM_KEY_LOCATION_LEFT = 0x01,
DOM_KEY_LOCATION_RIGHT = 0x02,
DOM_KEY_LOCATION_NUMPAD = 0x03,
DOM_KEY_LOCATION_UNKNOWN = 0x04
};
// VirtualKeyCode
enum KeyCodes
{
DOM_VK_UNDEFINED = 0x0,
DOM_VK_RIGHT_ALT = 0x12,
DOM_VK_LEFT_ALT = 0x12,
DOM_VK_LEFT_CONTROL = 0x11,
DOM_VK_RIGHT_CONTROL = 0x11,
DOM_VK_LEFT_SHIFT = 0x10,
DOM_VK_RIGHT_SHIFT = 0x10,
DOM_VK_META = 0x9D,
DOM_VK_BACK_SPACE = 0x08,
DOM_VK_CAPS_LOCK = 0x14,
DOM_VK_DELETE = 0x7F,
DOM_VK_END = 0x23,
DOM_VK_ENTER = 0x0D,
DOM_VK_ESCAPE = 0x1B,
DOM_VK_HOME = 0x24,
DOM_VK_NUM_LOCK = 0x90,
DOM_VK_PAUSE = 0x13,
DOM_VK_PRINTSCREEN = 0x9A,
DOM_VK_SCROLL_LOCK = 0x91,
DOM_VK_SPACE = 0x20,
DOM_VK_TAB = 0x09,
DOM_VK_LEFT = 0x25,
DOM_VK_RIGHT = 0x27,
DOM_VK_UP = 0x26,
DOM_VK_DOWN = 0x28,
DOM_VK_PAGE_DOWN = 0x22,
DOM_VK_PAGE_UP = 0x21,
DOM_VK_F1 = 0x70,
DOM_VK_F2 = 0x71,
DOM_VK_F3 = 0x72,
DOM_VK_F4 = 0x73,
DOM_VK_F5 = 0x74,
DOM_VK_F6 = 0x75,
DOM_VK_F7 = 0x76,
DOM_VK_F8 = 0x77,
DOM_VK_F9 = 0x78,
DOM_VK_F10 = 0x79,
DOM_VK_F11 = 0x7A,
DOM_VK_F12 = 0x7B,
DOM_VK_F13 = 0xF000,
DOM_VK_F14 = 0xF001,
DOM_VK_F15 = 0xF002,
DOM_VK_F16 = 0xF003,
DOM_VK_F17 = 0xF004,
DOM_VK_F18 = 0xF005,
DOM_VK_F19 = 0xF006,
DOM_VK_F20 = 0xF007,
DOM_VK_F21 = 0xF008,
DOM_VK_F22 = 0xF009,
DOM_VK_F23 = 0xF00A,
DOM_VK_F24 = 0xF00B
};
enum AttrChangeType
{
MODIFICATION = 1,
ADDITION = 2,
REMOVAL = 3
};
enum EventExceptionCode
{
UNSPECIFIED_EVENT_TYPE_ERR = 0
};
};
#endif // SVG_SUPPORT
#endif
// vim:ts=4:noet
......@@ -486,50 +486,6 @@
<Filter
Name="khtml"
>
<Filter
Name="dom"
>
<File
RelativePath="..\..\khtml\dom\css_rule.h"
>
</File>
<File
RelativePath="..\..\khtml\dom\css_stylesheet.h"
>
</File>
<File
RelativePath="..\..\khtml\dom\css_value.h"
>
</File>
<File
RelativePath="..\..\khtml\dom\dom2_events.cpp"
>
</File>
<File
RelativePath="..\..\khtml\dom\dom2_events.h"
>
</File>
<File
RelativePath="..\..\khtml\dom\dom2_range.h"
>
</File>
<File
RelativePath="..\..\khtml\dom\dom2_traversal.cpp"
>
</File>
<File
RelativePath="..\..\khtml\dom\dom2_traversal.h"
>
</File>
<File
RelativePath="..\..\khtml\dom\dom_exception.h"
>
</File>
<File
RelativePath="..\..\khtml\dom\dom_node.h"
>
</File>
</Filter>
<Filter
Name="html"
>
......@@ -3198,6 +3154,10 @@
RelativePath="..\..\dom\EditingTextImpl.h"
>
</File>
<File
RelativePath="..\..\dom\EventListener.h"
>
</File>
<File
RelativePath="..\..\dom\EventNames.cpp"
>
......@@ -3206,6 +3166,10 @@
RelativePath="..\..\dom\EventNames.h"
>
</File>
<File
RelativePath="..\..\dom\ExceptionCode.h"
>
</File>
<File
RelativePath="..\..\dom\NamedNodeMapImpl.h"
>
......
......@@ -187,6 +187,8 @@
935C477109AC4D7300A6AAB4 /* MouseEventMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 935C476F09AC4D7300A6AAB4 /* MouseEventMac.mm */; };
935C477309AC4D7700A6AAB4 /* WheelEventMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 935C477209AC4D7700A6AAB4 /* WheelEventMac.mm */; };
935C477509AC4D8E00A6AAB4 /* GapRects.h in Headers */ = {isa = PBXBuildFile; fileRef = 935C477409AC4D8D00A6AAB4 /* GapRects.h */; };
935FBC4509BA00B900E230B1 /* EventListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 935FBC4409BA00B900E230B1 /* EventListener.h */; };
935FBCF209BA143B00E230B1 /* ExceptionCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 935FBCF109BA143B00E230B1 /* ExceptionCode.h */; };
936B424E09A436CD00BAA820 /* KSVGCSSParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8C0F6F6089701F100BA5114 /* KSVGCSSParser.cpp */; };
937A36A7097E2E3200E4EE2F /* UserAgentStyleSheets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 937A36A6097E2E3200E4EE2F /* UserAgentStyleSheets.cpp */; };
937D809A09A063330092A01E /* PageMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 937D809909A063330092A01E /* PageMac.h */; };
......@@ -205,11 +207,6 @@
93CD4FE40995F9EA007ECC97 /* StringImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 93CD4FDD0995F9EA007ECC97 /* StringImpl.h */; };
93CD4FEC0995FD2A007ECC97 /* PlatformString.h in Headers */ = {isa = PBXBuildFile; fileRef = 93CD4FEB0995FD2A007ECC97 /* PlatformString.h */; };
93E62D9B0985F41600E1B5E3 /* SystemTime.h in Headers */ = {isa = PBXBuildFile; fileRef = 93E62D990985F41600E1B5E3 /* SystemTime.h */; };
93F198B408245E59001E9ABC /* dom2_events.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D19D02DE4322018635CA /* dom2_events.h */; };
93F198B508245E59001E9ABC /* dom2_range.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D19F02DE4322018635CA /* dom2_range.h */; };
93F198B608245E59001E9ABC /* dom2_traversal.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D1A102DE4322018635CA /* dom2_traversal.h */; };
93F198BB08245E59001E9ABC /* dom_exception.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D19002DE4322018635CA /* dom_exception.h */; };
93F198BE08245E59001E9ABC /* dom_node.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D19502DE4322018635CA /* dom_node.h */; };
93F198CE08245E59001E9ABC /* kjs_binding.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D1F502DE4369018635CA /* kjs_binding.h */; };
93F198CF08245E59001E9ABC /* kjs_css.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D1F702DE4369018635CA /* kjs_css.h */; };
93F198D108245E59001E9ABC /* kjs_dom.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D1FA02DE4369018635CA /* kjs_dom.h */; };
......@@ -354,8 +351,6 @@
93F19A5D08245E59001E9ABC /* WebCoreImageRendererFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = F587854F02DE375901EA4122 /* WebCoreImageRendererFactory.m */; };
93F19A5E08245E59001E9ABC /* WebCoreTextRendererFactory.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587855302DE375901EA4122 /* WebCoreTextRendererFactory.mm */; };
93F19A5F08245E59001E9ABC /* WebCoreViewFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = F587855502DE375901EA4122 /* WebCoreViewFactory.m */; };
93F19A7308245E59001E9ABC /* dom2_events.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D19C02DE4322018635CA /* dom2_events.cpp */; };
93F19A7508245E59001E9ABC /* dom2_traversal.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D1A002DE4322018635CA /* dom2_traversal.cpp */; };
93F19A8308245E59001E9ABC /* kjs_binding.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D1F402DE4369018635CA /* kjs_binding.cpp */; };
93F19A8408245E59001E9ABC /* kjs_css.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D1F602DE4369018635CA /* kjs_css.cpp */; };
93F19A8508245E59001E9ABC /* kjs_dom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D1F902DE4369018635CA /* kjs_dom.cpp */; };
......@@ -1323,6 +1318,8 @@
935C476F09AC4D7300A6AAB4 /* MouseEventMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MouseEventMac.mm; sourceTree = "<group>"; };
935C477209AC4D7700A6AAB4 /* WheelEventMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WheelEventMac.mm; sourceTree = "<group>"; };
935C477409AC4D8D00A6AAB4 /* GapRects.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GapRects.h; sourceTree = "<group>"; };
935FBC4409BA00B900E230B1 /* EventListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventListener.h; sourceTree = "<group>"; };
935FBCF109BA143B00E230B1 /* ExceptionCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExceptionCode.h; sourceTree = "<group>"; };
937A36A6097E2E3200E4EE2F /* UserAgentStyleSheets.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UserAgentStyleSheets.cpp; sourceTree = "<group>"; };
937D809909A063330092A01E /* PageMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageMac.h; sourceTree = "<group>"; };
9380F47109A11AB4001FDB34 /* Widget.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Widget.cpp; path = platform/Widget.cpp; sourceTree = "<group>"; };
......@@ -2138,16 +2135,6 @@
F5117BCA02F9FFEF018635CE /* KWQSignal.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = KWQSignal.cpp; path = kwq/KWQSignal.cpp; sourceTree = SOURCE_ROOT; };
F5117BCB02F9FFEF018635CE /* KWQSlot.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = KWQSlot.h; path = kwq/KWQSlot.h; sourceTree = SOURCE_ROOT; };
F5117BCC02F9FFEF018635CE /* KWQSlot.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = KWQSlot.cpp; path = kwq/KWQSlot.cpp; sourceTree = SOURCE_ROOT; };
F523D18602DE4322018635CA /* css_rule.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = css_rule.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D18802DE4322018635CA /* css_stylesheet.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = css_stylesheet.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D18A02DE4322018635CA /* css_value.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = css_value.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D19002DE4322018635CA /* dom_exception.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = dom_exception.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D19502DE4322018635CA /* dom_node.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = dom_node.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D19C02DE4322018635CA /* dom2_events.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = dom2_events.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D19D02DE4322018635CA /* dom2_events.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = dom2_events.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D19F02DE4322018635CA /* dom2_range.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = dom2_range.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D1A002DE4322018635CA /* dom2_traversal.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = dom2_traversal.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D1A102DE4322018635CA /* dom2_traversal.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = dom2_traversal.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D1F402DE4369018635CA /* kjs_binding.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = kjs_binding.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D1F502DE4369018635CA /* kjs_binding.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = kjs_binding.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
F523D1F602DE4369018635CA /* kjs_css.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = kjs_css.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
......@@ -3485,7 +3472,6 @@
F523D16302DE42AE018635CA /* khtml */ = {
isa = PBXGroup;
children = (
F523D1F302DE4324018635CA /* dom */,
F523D23402DE436B018635CA /* ecma */,
F523D27702DE4398018635CA /* html */,
F523D29C02DE43D9018635CA /* misc */,
......@@ -3523,23 +3509,6 @@
path = css;
sourceTree = "<group>";
};
F523D1F302DE4324018635CA /* dom */ = {
isa = PBXGroup;
children = (
F523D18602DE4322018635CA /* css_rule.h */,
F523D18802DE4322018635CA /* css_stylesheet.h */,
F523D18A02DE4322018635CA /* css_value.h */,
F523D19C02DE4322018635CA /* dom2_events.cpp */,
F523D19D02DE4322018635CA /* dom2_events.h */,
F523D19F02DE4322018635CA /* dom2_range.h */,
F523D1A002DE4322018635CA /* dom2_traversal.cpp */,
F523D1A102DE4322018635CA /* dom2_traversal.h */,
F523D19002DE4322018635CA /* dom_exception.h */,
F523D19502DE4322018635CA /* dom_node.h */,
);
path = dom;
sourceTree = "<group>";
};
F523D23402DE436B018635CA /* ecma */ = {
isa = PBXGroup;
children = (
......@@ -3749,31 +3718,27 @@
F523D32402DE4478018635CA /* dom */ = {
isa = PBXGroup;
children = (
BC3B364705C9D5E200E42902 /* AtomicStringList.h */,
AB23A32509BBA7D00067CC53 /* BeforeTextInsertedEventImpl.cpp */,
AB23A32609BBA7D00067CC53 /* BeforeTextInsertedEventImpl.h */,
ED2BA83B09A24B91006C0AC4 /* DocumentMarker.h */,
939885C108B7E3D100E707C4 /* EventNames.cpp */,
939885C208B7E3D100E707C4 /* EventNames.h */,
550A0BC7085F6039007353D6 /* QualifiedName.cpp */,
550A0BC8085F6039007353D6 /* QualifiedName.h */,
BC3B364705C9D5E200E42902 /* AtomicStringList.h */,
F523D2F702DE4476018635CA /* dom_elementimpl.cpp */,
F523D2F802DE4476018635CA /* dom_elementimpl.h */,
BE91FC8B06133666005E3790 /* dom_position.h */,
BE91FC8C06133666005E3790 /* dom_position.cpp */,
F523D2FF02DE4476018635CA /* dom_xmlimpl.cpp */,
F523D30002DE4476018635CA /* dom_xmlimpl.h */,
F523D30102DE4476018635CA /* dom2_eventsimpl.cpp */,
6550B693099DF0270090D781 /* CDATASectionImpl.cpp */,
6550B694099DF0270090D781 /* CDATASectionImpl.h */,
6550B695099DF0270090D781 /* CharacterDataImpl.cpp */,