1. 07 Apr, 2013 1 commit
    • ddkilzer@apple.com's avatar
      Remove the rest of SVG_DOM_OBJC_BINDINGS · 0cd46787
      ddkilzer@apple.com authored
      <http://webkit.org/b/114112>
      
      Reviewed by Geoffrey Garen.
      
      .:
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      - Remove references to ENABLE_SVG_DOM_OBJC_BINDINGS.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      - Remove ENABLE_SVG_DOM_OBJC_BINDINGS macro.
      
      Source/WebCore:
      
      * Configurations/WebCore.xcconfig:
      - Remove EXCLUDED_SOURCE_FILE_NAMES_SVG_DOM_OBJC_BINDINGS.  Note
        that DOMHTMLIFrameElementPrivate.h should not have been in
        this list because the class contained methods other than just
        -getSVGDocument.
      
      * WebCore.xcodeproj/project.pbxproj:
      - Remove DOMHTMLFrameElementPrivate.h since the only method it
        contained was -[DOMHTMLFrameElement getSVGDocument], which was
        part of the SVG DOM Objective-C bindings.
      
      * bindings/objc/DOM.mm:
      (kitClass):
      * bindings/objc/DOMEvents.mm:
      (kitClass):
      * bindings/objc/ExceptionHandlers.mm:
      (WebCore::raiseDOMException):
      - Remove code in ENABLE(SVG_DOM_OBJC_BINDINGS).
      
      Source/WebKit/blackberry:
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      - Remove reference to SVG_DOM_OBJC_BINDINGS.
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      - Remove ENABLE_SVG_DOM_OBJC_BINDINGS macro.
      
      Source/WTF:
      
      * wtf/FeatureDefines.h:
      - Remove ENABLE_SVG_DOM_OBJC_BINDINGS macro.
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      - Remove --svg-dom-objc-bindings switch.
      * qmake/mkspecs/features/features.pri:
      - Remove reference to ENABLE_SVG_DOM_OBJC_BINDINGS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0cd46787
  2. 05 Apr, 2013 1 commit
    • andersca@apple.com's avatar
      Stop building Objective-C bindings for the SVG DOM · 8b914b1d
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114076
      
      Reviewed by Geoffrey Garen.
      
      The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%.
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * Configurations/WebCore.xcconfig:
      * WebCore.exp.in:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/objc/DOM.mm:
      (WebCore::createElementClassMap):
      (kitClass):
      * bindings/objc/DOMCSS.mm:
      (kitClass):
      * bindings/objc/DOMEvents.mm:
      * bindings/objc/DOMSVG.h: Removed.
      * bindings/objc/DOMSVGException.h: Removed.
      * bindings/objc/DOMSVGPathSegInternal.mm: Removed.
      * bindings/objc/ExceptionHandlers.mm:
      * html/HTMLEmbedElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLIFrameElement.idl:
      * html/HTMLObjectElement.idl:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      * MigrateHeaders.make:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b914b1d
  3. 18 Oct, 2012 1 commit
  4. 26 Jun, 2012 1 commit
  5. 21 Oct, 2011 2 commits
    • abarth@webkit.org's avatar
      Introduce Event::hasInterface to make uses of interfaceName more readable · b2b0de6a
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70652
      
      Reviewed by Eric Seidel.
      
      Source/WebCore:
      
      Eric felt that this approach would be more readable because it requires
      less syntax at each callsite.
      
      * bindings/js/JSErrorHandler.cpp:
      (WebCore::JSErrorHandler::handleEvent):
      * bindings/objc/DOMEvents.mm:
      (kitClass):
      * bindings/v8/V8WindowErrorHandler.cpp:
      (WebCore::V8WindowErrorHandler::callListenerFunction):
      * bindings/v8/V8WorkerContextErrorHandler.cpp:
      (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
      * dom/Event.cpp:
      (WebCore::Event::hasInterface):
      * dom/Event.h:
      * dom/EventDispatcher.cpp:
      (WebCore::EventDispatcher::determineDispatchBehavior):
      * dom/Node.cpp:
      (WebCore::Node::defaultEventHandler):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::defaultEventHandler):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::defaultEventHandler):
      * html/TextFieldInputType.cpp:
      (WebCore::TextFieldInputType::forwardEvent):
      (WebCore::TextFieldInputType::shouldSubmitImplicitly):
      * inspector/InspectorDOMStorageResource.cpp:
      (WebCore::InspectorDOMStorageResource::handleEvent):
      
      Source/WebKit/chromium:
      
      Update call sites to the new interface.
      
      * src/WebDOMEvent.cpp:
      (WebKit::WebDOMEvent::isMutationEvent):
      (WebKit::WebDOMEvent::isTextEvent):
      (WebKit::WebDOMEvent::isCompositionEvent):
      (WebKit::WebDOMEvent::isMessageEvent):
      (WebKit::WebDOMEvent::isWheelEvent):
      (WebKit::WebDOMEvent::isOverflowEvent):
      (WebKit::WebDOMEvent::isPageTransitionEvent):
      (WebKit::WebDOMEvent::isPopStateEvent):
      (WebKit::WebDOMEvent::isProgressEvent):
      (WebKit::WebDOMEvent::isXMLHttpRequestProgressEvent):
      (WebKit::WebDOMEvent::isWebKitAnimationEvent):
      (WebKit::WebDOMEvent::isWebKitTransitionEvent):
      (WebKit::WebDOMEvent::isBeforeLoadEvent):
      * src/WebPluginContainerImpl.cpp:
      (WebKit::WebPluginContainerImpl::handleEvent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2b0de6a
    • abarth@webkit.org's avatar
      Event.h has too many virtual isMumbleEvent() functions · 6592153f
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70636
      
      Reviewed by Dimitri Glazkov.
      
      Source/WebCore: 
      
      We should use the new interfaceName() way of doing run-time type inference.
      
      * bindings/js/JSErrorHandler.cpp:
      (WebCore::JSErrorHandler::handleEvent):
      * bindings/js/JSEventCustom.cpp:
      (WebCore::JSEvent::clipboardData):
      * bindings/objc/DOMEvents.mm:
      (kitClass):
      * bindings/v8/V8WindowErrorHandler.cpp:
      (WebCore::V8WindowErrorHandler::callListenerFunction):
      * bindings/v8/V8WorkerContextErrorHandler.cpp:
      (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
      * bindings/v8/custom/V8EventCustom.cpp:
      (WebCore::V8Event::clipboardDataAccessorGetter):
      * dom/BeforeLoadEvent.h:
      (WebCore::BeforeLoadEvent::interfaceName):
      * dom/BeforeTextInsertedEvent.h:
      * dom/ClipboardEvent.cpp:
      * dom/ClipboardEvent.h:
      * dom/CompositionEvent.cpp:
      * dom/CompositionEvent.h:
      * dom/ErrorEvent.cpp:
      * dom/ErrorEvent.h:
      * dom/Event.cpp:
      (WebCore::Event::storesResultAsString):
      (WebCore::Event::storeResult):
      (WebCore::Event::clipboardData):
      * dom/Event.h:
      * dom/Event.idl:
          - Remove this interface from the CPP bindings because this function
            no longer exists.  It's unclear to me how strong our API
            commitments are in the CPP bindings.
      * dom/EventDispatcher.cpp:
      (WebCore::EventDispatcher::determineDispatchBehavior):
      * dom/MessageEvent.cpp:
      * dom/MessageEvent.h:
      * dom/MutationEvent.cpp:
      * dom/MutationEvent.h:
      * dom/Node.cpp:
      (WebCore::Node::defaultEventHandler):
      * dom/OverflowEvent.cpp:
      * dom/OverflowEvent.h:
      * dom/PageTransitionEvent.h:
      * dom/ProgressEvent.h:
      * dom/TextEvent.cpp:
      * dom/TextEvent.h:
      * dom/WheelEvent.cpp:
      * dom/WheelEvent.h:
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::defaultEventHandler):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::defaultEventHandler):
      * html/TextFieldInputType.cpp:
      (WebCore::TextFieldInputType::forwardEvent):
      (WebCore::TextFieldInputType::shouldSubmitImplicitly):
      * html/shadow/TextControlInnerElements.cpp:
      (WebCore::TextControlInnerTextElement::defaultEventHandler):
      * svg/SVGZoomEvent.cpp:
      * svg/SVGZoomEvent.h:
      
      Source/WebKit/chromium: 
      
      Update these callsites to the new API.
      
      * src/WebDOMEvent.cpp:
      (WebKit::WebDOMEvent::isKeyboardEvent):
      (WebKit::WebDOMEvent::isMutationEvent):
      (WebKit::WebDOMEvent::isTextEvent):
      (WebKit::WebDOMEvent::isCompositionEvent):
      (WebKit::WebDOMEvent::isClipboardEvent):
      (WebKit::WebDOMEvent::isMessageEvent):
      (WebKit::WebDOMEvent::isWheelEvent):
      (WebKit::WebDOMEvent::isBeforeTextInsertedEvent):
      (WebKit::WebDOMEvent::isOverflowEvent):
      (WebKit::WebDOMEvent::isPageTransitionEvent):
      (WebKit::WebDOMEvent::isProgressEvent):
      (WebKit::WebDOMEvent::isBeforeLoadEvent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6592153f
  6. 08 Jan, 2011 1 commit
  7. 12 Oct, 2009 1 commit
    • hyatt@apple.com's avatar
      Add support for the beforeload event to frames. Complete support of the... · 3ac73a34
      hyatt@apple.com authored
      Add support for the beforeload event to frames.  Complete support of the beforeload event by making sure
      its wrapper gets properly constructed (so that the URL field of the event can be accessed).  Add support
      for the Objective-C wrapper class as well.
      
      Reviewed by Darin Adler.
      
      Added fast/dom/beforeload/frame-before-load.html
      
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSEventCustom.cpp:
      (WebCore::toJS):
      * bindings/objc/DOMEvents.mm:
      (kitClass):
      * dom/BeforeLoadEvent.h:
      (WebCore::BeforeLoadEvent::isBeforeLoadEvent):
      * dom/Event.cpp:
      (WebCore::Event::isBeforeLoadEvent):
      * dom/Event.h:
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::parseMappedAttribute):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadWithDocumentLoader):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ac73a34
  8. 17 Apr, 2009 1 commit
    • darin@apple.com's avatar
      WebCore: · ea40f5a1
      darin@apple.com authored
      2009-04-17  Darin Adler  <darin@apple.com>
      
              Reviewed by Antti Koivisto.
      
              Bug 25210: don't use ObjC methods to wrap/unwrap DOM objects with ObjC
              https://bugs.webkit.org/show_bug.cgi?id=25210
      
              * WebCore.base.exp: Export the core and kit function overloads that are used
              in WebKit. Also resorted this file.
      
              * WebCore.xcodeproj/project.pbxproj: Re-added DOMHTMLCanvasElement.h to fix
              a strange problem with the file type.
      
              * bindings/objc/DOM.mm: Removed the many extraneous includes. Added new includes
              so we can use and implement the new core and kit functions. Import DOMInternal.h
              first so it can do its public/private magic.
              (-[DOMNode _rootObject]): Changed to use early-return style.
              (kitClass): Added. Tells the wrapper generator what kind of node class to create
              to wrap DOM nodes. This has the code that used to be in the _wrapNode method.
              (kit): Added. Takes an EventTarget and makes the appropriate type of wrapper,
              dpending on whether it's a Node or an SVGElementInstance. This replace methods
              that used to be on both of those classes.
              (-[DOMNode boundingBox]): Changed to use early return, and the core function.
              (-[DOMNode lineBoxRects]): Ditto.
              (-[DOMNode renderedImage]): Ditto.
              (-[DOMRange boundingBox]): Ditto.
              (-[DOMRange lineBoxRects]): Ditto.
              (-[DOMElement image]): Ditto.
              (-[DOMElement _font]): Ditto.
              (-[DOMElement _imageTIFFRepresentation]): Ditto.
              (-[DOMElement _getURLAttribute:]): Ditto.
              (-[DOMElement isFocused]): Ditto.
              (kit): Hand-wrote the version of this for NodeFilter, since it's a protocol,
              not a class in the binding.
              (core): Ditto.
              (-[DOMNodeFilter acceptNode:]): Use core.
      
              * bindings/objc/DOMAbstractView.mm:
              (-[DOMAbstractView document]): Use kit.
              (-[DOMAbstractView _disconnectFrame]): Call removeDOMWrapper, which is no longer
              in the WebCore namespace, since it's headed for WebKit in the future.
              (core): Hand-wrote the version of this for DOMAbstractView.mm, since we store
              a pointer to the Frame, not the DMWindow.
              (kit): Ditto.
      
              * bindings/objc/DOMCSS.mm:
              (kitClass): Added. Tells the wrapper generator what kind of node class to create
              to wrap CSS objects. This has the code that used to be in the _wrapStyleSheet,
              _wrapCSSRule, and _wrapCSSValue methods.
      
              * bindings/objc/DOMEvents.mm:
              (kitClass): Added. Tells the wrapper generator what kind of node class to create
              to wrap event objects. This has the code that used to be in the _wrapEvent methods.
      
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]): Use kit and core.
              (-[DOMHTMLDocument createDocumentFragmentWithText:]): Ditto.
              (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]): Ditto.
              (-[DOMHTMLInputElement _rectOnScreen]): Ditto.
              (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]): Ditto.
              (-[DOMHTMLInputElement _selectedRange]): Ditto.
              (-[DOMHTMLInputElement _setAutofilled:]): Ditto.
              (-[DOMHTMLSelectElement _activateItemAtIndex:]): Ditto.
              (-[DOMHTMLInputElement _isEdited]): Ditto.
              (-[DOMHTMLTextAreaElement _isEdited]): Ditto.
              (kitClass): Added. Gives HTMLOptionCollection objects an appropriate wrapper.
      
              * bindings/objc/DOMInternal.h: Removed most of the imports. There's no reason
              to have this header include all the other internal DOM headers. Removed unneeded
              interfaces, including the redeclaration of _init in DOMObject, since it's already
              inherited from WebScriptObject. Moved all the functions out of the WebCore
              namespace since this code is destined for WebKit, which doesn't use a namespace.
              Added kit and core functions for the two classes that live in this header.
      
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]): Use core.
      
              * bindings/objc/DOMObject.h: Made the _internal field be private instead of
              protected. This also allows the "#define private public" trick to be used to
              make the field accessible inside the bindings code.
      
              * bindings/objc/DOMObject.mm:
              (-[DOMObject dealloc]): Updated for namespace change.
              (-[DOMObject sheet]): Use core and kit functions.
      
              * bindings/objc/DOMRGBColor.mm:
              (-[DOMRGBColor dealloc]): Updated for namespace change.
              (-[DOMRGBColor red]): Use kit function.
              (-[DOMRGBColor green]): Ditto.
              (-[DOMRGBColor blue]): Ditto.
              (-[DOMRGBColor alpha]): Ditto.
              (core): Added. Replaces the _RGBColor method.
              (kit): Added. Replaces the _wrapRGBColor method.
      
              * bindings/objc/DOMSVGPathSegInternal.mm:
              (kitClass): Added. Replaces the _wrapSVGPathSeg method.
      
              * bindings/objc/DOMUtility.mm:
              (JSC::createDOMWrapper): Use kit function.
              (createDOMWrapper): Ditto.
      
              * bindings/objc/DOMXPath.mm:
              (core): Added. Replaces the _xpathNSResolver method.
              (kit): Added. Replaces the _wrapXPathNSResolver method.
      
              * bindings/objc/ObjCEventListener.mm:
              (WebCore::ObjCEventListener::find): Changed to use early return.
              (WebCore::ObjCEventListener::handleEvent): Use kit function.
      
              * bindings/objc/ObjCNodeFilterCondition.mm:
              (WebCore::ObjCNodeFilterCondition::acceptNode): Use kit function.
      
              * bindings/objc/WebScriptObject.mm:
              (+[WebScriptObject scriptObjectForJSObject:originRootObject:rootObject:]):
              Updated for namespace change.
      
              * bindings/scripts/CodeGeneratorObjC.pm: Changed spelling of "license"
              to U.S. spelling. Removed GetObjCTypeMaker, GetObjCTypeGetterName,
              GetInternalTypeGetterSignature, and GetInternalTypeMakerSignature.
              Changed includes to conform to new scheme. Generate core and kit
              functions instead of methods and calls to those functions. Added a new
              attribute, Polymorphic, to indicate classes that have derived subclasses.
              Removed the old ObjCCustomInternalImpl attribute.
      
              * css/CSSRule.idl: Use Polymorphic attribute, so core and kit functions
              will be generated, with kit calling kitClass. This requires less hand-
              written code than the old ObjCCustomInternalImpl.
              * css/CSSValue.idl: Ditto.
              * css/StyleSheet.idl: Ditto.
              * dom/Event.idl: Ditto.
              * dom/Node.idl: Ditto.
              * html/HTMLCollection.idl: Ditto.
              * svg/SVGPathSeg.idl: Ditto.
      
              * editing/TextAffinity.h: Moved kit and core functions out of the
              WebCore namespace since this code is destined for WebKit, which
              doesn't use a namespace
      
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::declareAndWriteDragImage): Use kit function.
      
              * platform/mac/DragDataMac.mm:
              (WebCore::DragData::asFragment): Use core function.
      
              * platform/mac/PasteboardMac.mm:
              (WebCore::Pasteboard::writeSelection): Use kit function.
      
              * svg/SVGElementInstance.idl: Removed now-unneeded ObjCCustomInternalImpl
              function. This can be generated in a standard way now.
              * svg/SVGViewSpec.idl: Ditto.
      
      WebKit/mac:
      
      2009-04-17  Darin Adler  <darin@apple.com>
      
              Reviewed by Antti Koivisto.
      
              Bug 25210: don't use ObjC methods to wrap/unwrap DOM objects with ObjC
              https://bugs.webkit.org/show_bug.cgi?id=25210
      
              * DOM/WebDOMOperations.mm:
              (-[DOMNode markupString]): Use the core function instead of an Objective-C method.
              (-[DOMNode _subresourceURLs]): Ditto.
              (-[DOMDocument _focusableNodes]): Ditto.
              (-[DOMRange webArchive]): Ditto.
              (-[DOMRange markupString]): Ditto.
      
              * Misc/WebElementDictionary.mm: Added now-needed include since the core and kit
              functions now come from the internal headers from DOM bindings.
              * Misc/WebNSPasteboardExtras.mm: Ditto.
              * Plugins/WebNullPluginView.mm: Ditto.
              * Plugins/WebPluginController.mm: Ditto.
              * WebCoreSupport/WebChromeClient.mm: Ditto.
              * WebCoreSupport/WebInspectorClient.mm: Ditto.
              * WebCoreSupport/WebPasteboardHelper.mm: Ditto.
              * WebView/WebHTMLView.mm: Ditto.
      
              * WebCoreSupport/WebEditorClient.mm: Made kit function have internal linkage
              since it's only used in this file. Someone had instead added a declaration to
              suppress the warning you would otherwise get. Removed the core function.
              (WebEditorClient::textFieldDidBeginEditing): Added correct type checking.
              Previously the function would check only that something was an HTMLElement,
              but then cast it to HTMLInputElement. Also call kit instead of old wrap method.
              (WebEditorClient::textFieldDidEndEditing): Ditto.
              (WebEditorClient::textDidChangeInTextField): Ditto.
              (WebEditorClient::doTextFieldCommandFromEvent): Ditto.
              (WebEditorClient::textWillBeDeletedInTextField): Ditto.
              (WebEditorClient::textDidChangeInTextArea): Ditto, but for HTMLTextAreaElement.
      
              * WebView/WebFrame.mm: Removed the core and kit functions here which are no longer
              needed since they're automatically generated now.
              (-[WebFrame _nodesFromList:]): Use kit.
              (-[WebFrame _markupStringFromRange:nodes:]): Use core.
              (-[WebFrame _stringForRange:]): More of the same.
              (-[WebFrame _caretRectAtNode:offset:affinity:]): Ditto.
              (-[WebFrame _firstRectForDOMRange:]): Ditto.
              (-[WebFrame _scrollDOMRangeToVisible:]): Ditto.
              (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
              Ditto.
              (-[WebFrame _convertNSRangeToDOMRange:]): Ditto.
              (-[WebFrame _convertDOMRangeToNSRange:]): Ditto.
              (-[WebFrame _markDOMRange]): Ditto.
              (-[WebFrame _smartDeleteRangeForProposedRange:]): Ditto.
              (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
              (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]): Ditto.
              (-[WebFrame _documentFragmentWithNodesAsParagraphs:]): Ditto.
              (-[WebFrame _replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]): Ditto.
              (-[WebFrame _characterRangeAtPoint:]): Ditto.
              (-[WebFrame _typingStyle]): Ditto.
              (-[WebFrame _setTypingStyle:withUndoAction:]): Ditto.
              (-[WebFrame _pauseAnimation:onNode:atTime:]): Ditto.
              (-[WebFrame _pauseTransitionOfProperty:onNode:atTime:]): Ditto.
              (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]): Ditto.
      
              * WebView/WebFrameInternal.h: Removed the core and kit functions here which are no longer
              needed since they're automatically generated now.
      
              * WebView/WebHTMLRepresentation.mm:
              (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]): Use core.
              (formElementFromDOMElement): Ditto.
              (inputElementFromDOMElement): Ditto.
              * WebView/WebTextIterator.mm:
              (-[WebTextIterator initWithRange:]): Ditto.
              (-[WebTextIterator currentRange]): Ditto.
              (-[WebTextIterator currentNode]): Ditto.
              * WebView/WebView.mm:
              (-[WebView textIteratorForRect:]): Ditto.
              (-[WebView setSelectedDOMRange:affinity:]): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea40f5a1
  9. 09 Apr, 2009 2 commits
  10. 08 Apr, 2009 1 commit
    • ddkilzer@apple.com's avatar
      <rdar://problem/6718589> Option to turn off SVG DOM Objective-C bindings · 684b59e0
      ddkilzer@apple.com authored
              Reviewed by Darin Adler and Maciej Stachowiak.
      
              Introduce the ENABLE_SVG_DOM_OBJC_BINDINGS feature define so
              that SVG DOM Objective-C bindings may be optionally disabled.
      
      JavaScriptCore:
      
              * Configurations/JavaScriptCore.xcconfig: Added
              ENABLE_SVG_DOM_OBJC_BINDINGS variable and use it in
              FEATURE_DEFINES.
      
      WebCore:
      
              * Configurations/WebCore.xcconfig: Added
              ENABLE_SVG_DOM_OBJC_BINDINGS variable and use it in
              FEATURE_DEFINES and EXCLUDED_SOURCE_FILE_NAMES.  When SVG DOM
              Objective-C bindings are disabled, two generated header files no
              longer exist and none of the generated DOMSVG*.mm files should
              be compiled.
              * DerivedSources.make: All of the WebCore.SVG*.exp files contain
              SVG DOM Objective-C bindings classes, so exclude them unless
              ENABLE_SVG_DOM_OBJC_BINDINGS is set.
              * bindings/objc/DOM.mm: Switched from using ENABLE(SVG) to using
              ENABLE(SVG_DOM_OBJC_BINDINGS).
              (WebCore::createElementClassMap):
              (+[DOMNode _wrapNode:WebCore::]):
              * bindings/objc/DOMCSS.mm: Ditto.
              (+[DOMCSSValue _wrapCSSValue:WebCore::]):
              * bindings/objc/DOMEvents.mm: Ditto.
              (+[DOMEvent _wrapEvent:WebCore::]):
              * bindings/objc/DOMInternal.h: Ditto.
              * bindings/objc/ExceptionHandlers.mm: Added use of
              ENABLE(SVG_DOM_OBJC_BINDINGS).
              (WebCore::raiseDOMException):
              * html/HTMLEmbedElement.idl: Excluded -getSVGDocument method
              in generated Objective-C DOM classes if SVG DOM Objective-C
              bindings are disabled.
              * html/HTMLFrameElement.idl: Ditto.
              * html/HTMLIFrameElement.idl: Ditto.
              * html/HTMLObjectElement.idl: Ditto.
      
      WebKit/mac:
      
              * Configurations/WebKit.xcconfig: Added
              ENABLE_SVG_DOM_OBJC_BINDINGS variable and use it in
              FEATURE_DEFINES.
              * DOM/WebDOMOperations.mm: Removed unused header.
              * MigrateHeaders.make: Switched from using ENABLE_SVG to using
              ENABLE_SVG_DOM_OBJC_BINDINGS.
      
      WebKitTools:
      
              * Scripts/build-webkit: Added --[no-]svg-dom-objc-bindings
              command-line argument.  Set special ENABLE_SVG_DOM_OBJC_BINDINGS
              Xcode variable required by WebCore.xcconfig.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      684b59e0
  11. 09 May, 2008 1 commit
    • weinig@apple.com's avatar
      WebCore: · ba6e665a
      weinig@apple.com authored
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Mark Rowe.
      
              Remove the ENABLE_CROSS_DOCUMENT_MESSAGING #ifdefs.
      
              * Configurations/WebCore.xcconfig:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcproj/build-generated-files.sh:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::customGetOwnPropertySlot):
              (WebCore::JSDOMWindow::postMessage):
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS):
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _wrapEvent:WebCore::]):
              * dom/Document.cpp:
              (WebCore::Document::createEvent):
              * dom/Event.cpp:
              (WebCore::Event::isMessageEvent):
              * dom/Event.h:
              * dom/MessageEvent.cpp:
              * dom/MessageEvent.h:
              * dom/MessageEvent.idl:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::postMessageTimerFired):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      WebKit/win:
      
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Mark Rowe.
      
              Remove the ENABLE_CROSS_DOCUMENT_MESSAGING #ifdefs.
      
              * WebKit.vcproj/WebKit.vcproj:
      
      WebKitTools:
      
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Mark Rowe.
      
              Remove the ENABLE_CROSS_DOCUMENT_MESSAGING #ifdefs.
      
              * Scripts/build-webkit:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba6e665a
  12. 17 Feb, 2008 1 commit
    • weinig@apple.com's avatar
      WebCore: · 4e70ed38
      weinig@apple.com authored
              Reviewed by Dan Bernstein.
      
              Fix for http://bugs.webkit.org/show_bug.cgi?id=17365
              document.createEvent("MessageEvent") throws NOT_SUPPORTED_ERR
      
              - Updated fast/events/event-instanceof.html to test document.createEvent("MessageEvent").
      
              * DerivedSources.make:
              Generate Objective-C binding for DOMProgressEvent which was missing.
      
              * WebCore.xcodeproj/project.pbxproj:
              Add missing DOMProgressEvent files to the project.
      
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS):
              Clean up and add case for SVGZoomEvent that was missing.
      
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _wrapEvent:WebCore::]):
              Clean up and add cases for ProgressEvent and MessageEvent that were missing.
      
              * dom/Document.cpp:
              (WebCore::Document::createEvent):
              Add case for MessageEvent.
      
      WebKit/mac:
      
              Reviewed by Dan Bernstein.
      
              Fix for http://bugs.webkit.org/show_bug.cgi?id=17365
              document.createEvent("MessageEvent") throws NOT_SUPPORTED_ERR
      
              * MigrateHeaders.make: Migrate DOMProgressEvent.h and DOMTextPrivate.h which were
              mistakenly not migrated.
      
      LayoutTests:
      
              Reviewed by Dan Bernstein.
      
              Update test for http://bugs.webkit.org/show_bug.cgi?id=17365
              document.createEvent("MessageEvent") throws NOT_SUPPORTED_ERR
      
              * fast/events/event-instanceof-expected.txt:
              * fast/events/resources/event-instanceof.js: Test MessageEvent as well.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e70ed38
  13. 12 Mar, 2007 1 commit
    • darin's avatar
      LayoutTests: · 45471111
      darin authored
              Reviewed by Tim Hatcher.
      
              - added a test that checks the classes of wrappers created by both
                the JavaScript binding and the Objective-C binding
      
              * fast/dom/wrapper-classes-expected.txt: Added.
              * fast/dom/wrapper-classes.html: Added.
              * fast/js/resources/js-test-pre.js: Improve the format of the failure message when
              both the real results and expected results are strings.
      
      WebCore:
      
              Reviewed by Tim Hatcher.
      
              - fixed JavaScript wrapper classes to be correct for a variety of cases
                that a new test uncovered: was broken for at least 5 classes
      
              - fixed Objective-C wrapper classes to be correct for a variety of cases
                that a test case uncovered: was broken for ast least 50 classes
      
              - added missing DOM API for creating OverflowEvent and WheelEvent instances
      
              Test: fast/dom/wrapper-classes.html
      
              * DerivedSources.make: Added missing bindings: HTMLCanvasElement for ObjC,
              CDATASection, Comment, and EntityReference for JavaScript.
              * WebCore.xcodeproj/project.pbxproj: Added those new generated files.
      
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              (WebCore::createJSHTMLWrapper): Corrected the wrapper classes for <keygen>,
              which needs an HTMLSelectElement wrapper, and <xmp>, which needs an
              HTMLPreElement wrapper.
      
              * bindings/objc/DOMInternal.h: Updated for new naming scheme.
              Also moved createDOMWrapper from the KJS namespace to the WebCore namespace.
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper): Broke the core function into a separate one, and
              left it in the KJS namespace because Objective-C++ rules make it impossible
              for it to work in the WebCore namespace. Used a macro-based implementation
              to cut down on repeated code, and added missing cases for Counter,
              HTMLOptionsCollection, Range, XPathExpression, XPathResult, Event, RGBColor,
              Rect, Window, DOMImplementation, NodeIterator, TreeWalker, and HTMLCollection.
              (WebCore::createDOMWrapper): The other half of the function.
      
              * bindings/objc/DOM.mm:
              (WebCore::createElementClassMap): Corrected the wrapper classes for
              <canvas>, which needs a DOMHTMLCanvasElement wrapper, <del>, which needs
              a DOMHTMLModElement wrapper, <embed>, which needs a DOMHTMLEmbedElement
              wrapper, <ins>, which needs a DOMHTMLModElement wrapper, <th>, which needs
              a DOMHTMLTableCellElement wrapper, and <xmp>, which needs an
              DOMHTMLPreElement wrapper.
              (+[DOMNode _wrapNode:]): Updated for new naming scheme.
              (+[DOMNode _wrapEventTarget:]): Ditto.
              (+[DOMNodeFilter _wrapNodeFilter:]): Ditto.
              (ObjCNodeFilterCondition::acceptNode): Ditto.
              (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]): Ditto.
              (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]): Ditto.
              (WebCore::ObjCEventListener::handleEvent): Ditto.
      
              * dom/Document.cpp: (WebCore::Document::createEvent):
              Added cases for OverflowEvent and WheelEvent.
      
              * dom/OverflowEvent.h: Added empty constructor and initOverflowEvent.
              * dom/OverflowEvent.cpp:
              (WebCore::OverflowEvent::OverflowEvent): Added.
              (WebCore::OverflowEvent::initOverflowEvent): Added.
              * dom/OverflowEvent.idl: Added initOverflowEvent.
      
              * bindings/objc/PublicDOMInterfaces.h: Added initOverflowEvent.
      
              * bindings/objc/DOMCSS.mm:
              (+[DOMStyleSheet _wrapStyleSheet:]): Updated for new naming scheme.
              (+[DOMCSSRule _wrapCSSRule:]): Corrected wrapper for CSSUnknownRule.
              (+[DOMCSSValue _wrapCSSValue:]): Updated for new naming scheme.
      
              * bindings/js/kjs_css.h:
              (KJS::DOMRGBColor::impl): Added. Used when making an ObjC wrapper.
              (KJS::DOMRect::impl): Ditto.
      
              * bindings/js/kjs_dom.cpp: (KJS::toJS): Corrected the wrapper classes for
              CDATASection, Comment, and EntityReference.
      
              * bindings/js/kjs_html.cpp: Corrected the class name for HTMLElement
              (was "DOMHTMLElement") and HTMLCollection (was "Collection").
      
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMImplementationFront.cpp:
              (WebCore::implementationFront): Added new overload that returns a front given
              a JavaScript wrapper. Needed by the code that makes the Objective-C wrapper.
      
              * bindings/objc/WebScriptObject.mm:
              (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
              Updated since createDOMWrapper is now in the WebCore namespace.
      
              * bindings/scripts/CodeGeneratorObjC.pm: Update the naming scheme for the
              wrapper creation functions to use _wrapElement: rather then _elementWith:
              style. Removed now-unneeded special cases for things that needed to stay
              upper-case, since we don't have to do the whole lcfirst thing.
      
              * html/HTMLCanvasElement.idl: Added #if so we can successfully generate the
              Objective-C wrapper for this class, even though we can't yet handle the
              DOMObject return type.
      
              * html/HTMLOptionsCollection.idl: Added GenerateNativeConverter so we get
              an appropriate toJS function.
      
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _wrapEvent:]):
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
              (-[DOMHTMLDocument createDocumentFragmentWithText:]):
              * bindings/objc/DOMObject.mm:
              (-[DOMObject sheet]):
              * bindings/objc/DOMRGBColor.mm:
              (-[DOMRGBColor red]):
              (-[DOMRGBColor green]):
              (-[DOMRGBColor blue]):
              (-[DOMRGBColor alpha]):
              (+[DOMRGBColor _wrapRGBColor:]):
              * bindings/objc/DOMSVGPathSegInternal.mm:
              (+[DOMSVGPathSeg _wrapSVGPathSeg:]):
              * bindings/objc/DOMXPath.mm:
              (+[DOMNativeXPathNSResolver _wrapXPathNSResolver:]):
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge nodesFromList:]):
              (-[WebCoreFrameBridge elementWithName:inForm:]):
              (-[WebCoreFrameBridge formForElement:]):
              (-[WebCoreFrameBridge currentForm]):
              (-[WebCoreFrameBridge controlsInForm:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
              (-[WebCoreFrameBridge convertNSRangeToDOMRange:]):
              (-[WebCoreFrameBridge markDOMRange]):
              (-[WebCoreFrameBridge markedTextDOMRange]):
              (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
              (-[WebCoreFrameBridge documentFragmentWithMarkupString:baseURLString:]):
              (-[WebCoreFrameBridge documentFragmentWithText:inContext:]):
              (-[WebCoreFrameBridge documentFragmentWithNodesAsParagraphs:]):
              (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
              (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
              (-[WebCoreFrameBridge increaseSelectionListLevel]):
              (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
              (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
              (-[WebCoreFrameBridge dragCaretDOMRange]):
              (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
              (-[WebCoreFrameBridge characterRangeAtPoint:]):
              (-[WebCoreFrameBridge typingStyle]):
              (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::declareAndWriteDragImage):
              * platform/mac/PasteboardMac.mm:
              (WebCore::Pasteboard::writeSelection):
              Updated for new naming scheme.
      
      WebKit:
      
              Reviewed by Tim Hatcher.
      
              - update for the new naming scheme for the Objective-C wrapper-creation
                functions: _wrapElement: instead of _elementWith:, etc.
      
              * WebCoreSupport/WebEditorClient.mm:
              (WebEditorClient::textFieldDidBeginEditing):
              (WebEditorClient::textFieldDidEndEditing):
              (WebEditorClient::textDidChangeInTextField):
              (WebEditorClient::doTextFieldCommandFromEvent):
              (WebEditorClient::textWillBeDeletedInTextField):
              (WebEditorClient::textDidChangeInTextArea):
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::createPlugin):
              (WebFrameLoaderClient::createJavaAppletWidget):
              * WebView/WebFrame.mm: (kit):
              Use the _wrapElement-style functions.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45471111
  14. 26 Feb, 2007 1 commit
    • mjs's avatar
      JavaScriptCore: · d2948ef7
      mjs authored
              Reviewed by Lars.
              
              - <rdar://problem/5021698> Disable experimental SVG features (12883)
      
              * wtf/Platform.h: Add ENABLE() macro similar to HAVE() and USE(), to
              allow nicer handling of optional WebKit features.
      
      WebCore:
      
              Reviewed by Lars.
      
              - fixed <rdar://problem/5021698> Disable experimental SVG features (12883)
              
              I added an ENABLE_SVG_EXPERIMENTAL_FEATURES define to guard all use of the experimental
              features, and used it to guard relevant tag names, elements, JS bindings and renderers.
              
              I also converted all the existing optional feature defines to
              ENABLE_FOO instead of FOO_SUPPORT since that is the more standard
              way to do it in open source projects and works with the handy new
              ENABLE() macro.
      
              * CMakeLists.txt:
              * DerivedSources.make:
              * Projects/gdk/webcore-gdk.bkl:
              * WebCore.pro:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.vcproj/WebCore/build-generated-files.sh:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/js/JSCustomXPathNSResolver.h:
              * bindings/js/JSSVGElementWrapperFactory.cpp:
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSSVGMatrixCustom.cpp:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * bindings/js/JSSVGPathSegCustom.cpp:
              * bindings/js/JSSVGPathSegListCustom.cpp:
              * bindings/js/JSSVGPointListCustom.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.cpp:
              (KJS::setDOMException):
              * bindings/js/kjs_css.cpp:
              (KJS::toJS):
              * bindings/js/kjs_dom.cpp:
              (KJS::toJS):
              * bindings/js/kjs_html.cpp:
              (KJS::HTMLElementFunction::callAsFunction):
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              * bindings/objc/DOM.mm:
              (WebCore::createElementClassMap):
              (+[DOMNode _nodeWith:WebCore::]):
              * bindings/objc/DOMCSS.mm:
              (+[DOMCSSValue _CSSValueWith:WebCore::]):
              * bindings/objc/DOMCustomXPathNSResolver.h:
              * bindings/objc/DOMCustomXPathNSResolver.mm:
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _eventWith:WebCore::]):
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMSVGPathSegInternal.mm:
              * bindings/objc/DOMXPath.mm:
              * bindings/objc/ExceptionHandlers.mm:
              (WebCore::raiseDOMException):
              * bindings/objc/PublicDOMInterfaces.h:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * config.h:
              * css/CSSGrammar.y:
              * css/CSSStyleDeclaration.cpp:
              (WebCore::propertyID):
              * css/StyleBase.h:
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::loadDefaultStyle):
              (WebCore::CSSStyleSelector::initForStyleResolve):
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::applyProperty):
              * css/cssstyleselector.h:
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::hasFeature):
              (WebCore::DOMImplementation::createDocument):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::~Document):
              (WebCore::Document::createElement):
              (WebCore::Document::implicitClose):
              (WebCore::Document::recalcStyleSelector):
              (WebCore::Document::createEvent):
              * dom/Document.h:
              * dom/Document.idl:
              * dom/Event.cpp:
              * dom/Event.h:
              * dom/EventTarget.cpp:
              * dom/EventTarget.h:
              * dom/MappedAttributeEntry.h:
              (WebCore::):
              * dom/Node.cpp:
              (WebCore::Node::createRendererIfNeeded):
              (WebCore::Node::shadowAncestorNode):
              * dom/Node.h:
              * dom/ProcessingInstruction.cpp:
              (WebCore::ProcessingInstruction::ProcessingInstruction):
              (WebCore::ProcessingInstruction::checkStyleSheet):
              (WebCore::ProcessingInstruction::setCSSStyleSheet):
              * dom/ProcessingInstruction.h:
              * dom/Text.cpp:
              (WebCore::Text::createRenderer):
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::startElementNs):
              (WebCore::XMLTokenizer::endElementNs):
              (WebCore::XMLTokenizer::processingInstruction):
              (WebCore::XMLTokenizer::end):
              (WebCore::XMLTokenizer::insertErrorMessageBlock):
              * dom/XMLTokenizer.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLEmbedElement.h:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * ksvg2/css/SVGCSSParser.cpp:
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              * ksvg2/css/SVGRenderStyle.cpp:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/events/JSSVGLazyEventListener.cpp:
              * ksvg2/events/JSSVGLazyEventListener.h:
              * ksvg2/events/SVGZoomEvent.cpp:
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/PointerEventsHitRules.cpp:
              * ksvg2/misc/PointerEventsHitRules.h:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/misc/SVGTimer.cpp:
              * ksvg2/misc/SVGTimer.h:
              * ksvg2/misc/TimeScheduler.cpp:
              * ksvg2/misc/TimeScheduler.h:
              * ksvg2/scripts/make_names.pl:
              * ksvg2/svg/ColorDistance.cpp:
              * ksvg2/svg/ColorDistance.h:
              * ksvg2/svg/GradientAttributes.h:
              * ksvg2/svg/LinearGradientAttributes.h:
              * ksvg2/svg/PatternAttributes.h:
              * ksvg2/svg/RadialGradientAttributes.h:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.cpp:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.cpp:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.cpp:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateElement.idl:
              * ksvg2/svg/SVGAnimateMotionElement.cpp:
              * ksvg2/svg/SVGAnimateMotionElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.idl:
              * ksvg2/svg/SVGAnimatedPathData.cpp:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.cpp:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimationElement.cpp:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGCircleElement.cpp:
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.cpp:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.cpp:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.cpp:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDefsElement.cpp:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.cpp:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.cpp:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGElement.cpp:
              (WebCore::SVGElement::dispatchEvent):
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGElementInstance.cpp:
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstance.idl:
              * ksvg2/svg/SVGElementInstanceList.cpp:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGElementInstanceList.idl:
              * ksvg2/svg/SVGEllipseElement.cpp:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGException.h:
              * ksvg2/svg/SVGExternalResourcesRequired.cpp:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.cpp:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEBlendElement.idl:
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.idl:
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.idl:
              * ksvg2/svg/SVGFECompositeElement.cpp:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFECompositeElement.idl:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.idl:
              * ksvg2/svg/SVGFEDistantLightElement.cpp:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.idl:
              * ksvg2/svg/SVGFEFloodElement.cpp:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFloodElement.idl:
              * ksvg2/svg/SVGFEFuncAElement.cpp:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncAElement.idl:
              * ksvg2/svg/SVGFEFuncBElement.cpp:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncBElement.idl:
              * ksvg2/svg/SVGFEFuncGElement.cpp:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncGElement.idl:
              * ksvg2/svg/SVGFEFuncRElement.cpp:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEFuncRElement.idl:
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.idl:
              * ksvg2/svg/SVGFEImageElement.cpp:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFEImageElement.idl:
              * ksvg2/svg/SVGFELightElement.cpp:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeElement.idl:
              * ksvg2/svg/SVGFEMergeNodeElement.cpp:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.idl:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEOffsetElement.idl:
              * ksvg2/svg/SVGFEPointLightElement.cpp:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFEPointLightElement.idl:
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.idl:
              * ksvg2/svg/SVGFESpotLightElement.cpp:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFESpotLightElement.idl:
              * ksvg2/svg/SVGFETileElement.cpp:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETileElement.idl:
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.idl:
              * ksvg2/svg/SVGFilterElement.cpp:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterElement.idl:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.cpp:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGForeignObjectElement.idl:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.cpp:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.cpp:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.cpp:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLengthList.cpp:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.cpp:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGListTraits.h:
              * ksvg2/svg/SVGLocatable.cpp:
              (WebCore::SVGLocatable::nearestViewportElement):
              (WebCore::SVGLocatable::farthestViewportElement):
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMPathElement.cpp:
              * ksvg2/svg/SVGMPathElement.h:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMetadataElement.cpp:
              * ksvg2/svg/SVGMetadataElement.h:
              * ksvg2/svg/SVGNumberList.cpp:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.cpp:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGParserUtilities.cpp:
              * ksvg2/svg/SVGParserUtilities.h:
              * ksvg2/svg/SVGPathElement.cpp:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.cpp:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.cpp:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.cpp:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.cpp:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.cpp:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPointList.cpp:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.cpp:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.cpp:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.cpp:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRectElement.cpp:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGScriptElement.cpp:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.cpp:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.cpp:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.cpp:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.cpp:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.cpp:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::notifyAttributeChange):
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledLocatableElement.cpp:
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.cpp:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.cpp:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.cpp:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.cpp:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.cpp:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.cpp:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformDistance.cpp:
              * ksvg2/svg/SVGTransformDistance.h:
              * ksvg2/svg/SVGTransformList.cpp:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.cpp:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGUseElement.idl:
              * ksvg2/svg/SVGViewElement.cpp:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.cpp:
              * ksvg2/svg/SVGZoomAndPan.h:
              * ksvg2/svg/svgtags.in:
              * loader/Cache.cpp:
              (WebCore::createResource):
              (WebCore::Cache::getStatistics):
              * loader/Cache.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::createImage):
              * loader/CachedResource.h:
              (WebCore::CachedResource::):
              * loader/CachedResourceClient.h:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * page/DOMWindow.idl:
              * page/EventHandler.cpp:
              (WebCore::EventHandler::handleMouseMoveEvent):
              (WebCore::selectCursor):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              * page/PageState.cpp:
              (WebCore::PageState::PageState):
              (WebCore::PageState::restore):
              * platform/MimeTypeRegistry.cpp:
              (WebCore::initialiseSupportedNonImageMimeTypes):
              * platform/graphics/FloatPoint3D.cpp:
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/ImageBuffer.cpp:
              (WebCore::ImageBuffer::renderSubtreeToImage):
              * platform/graphics/svg/SVGImage.cpp:
              * platform/graphics/svg/SVGImage.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
              * platform/graphics/svg/SVGPaintServer.cpp:
              * platform/graphics/svg/SVGPaintServer.h:
              * platform/graphics/svg/SVGPaintServerGradient.cpp:
              * platform/graphics/svg/SVGPaintServerGradient.h:
              * platform/graphics/svg/SVGPaintServerLinearGradient.cpp:
              * platform/graphics/svg/SVGPaintServerLinearGradient.h:
              * platform/graphics/svg/SVGPaintServerPattern.cpp:
              * platform/graphics/svg/SVGPaintServerPattern.h:
              * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
              * platform/graphics/svg/SVGPaintServerRadialGradient.h:
              * platform/graphics/svg/SVGPaintServerSolid.cpp:
              * platform/graphics/svg/SVGPaintServerSolid.h:
              * platform/graphics/svg/SVGResource.cpp:
              * platform/graphics/svg/SVGResource.h:
              * platform/graphics/svg/SVGResourceClipper.cpp:
              * platform/graphics/svg/SVGResourceClipper.h:
              * platform/graphics/svg/SVGResourceFilter.cpp:
              * platform/graphics/svg/SVGResourceFilter.h:
              * platform/graphics/svg/SVGResourceMarker.cpp:
              * platform/graphics/svg/SVGResourceMarker.h:
              * platform/graphics/svg/SVGResourceMasker.cpp:
              * platform/graphics/svg/SVGResourceMasker.h:
              * platform/graphics/svg/cg/CgSupport.cpp:
              * platform/graphics/svg/cg/CgSupport.h:
              * platform/graphics/svg/cg/RenderPathCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
              * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
              * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
              * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.cpp:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.cpp:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.cpp:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.cpp:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.cpp:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.cpp:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.cpp:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.cpp:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.cpp:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.cpp:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
              * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
              * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
              * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
              * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
              * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
              * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
              * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
              * rendering/HitTestResult.cpp:
              (WebCore::HitTestResult::absoluteImageURL):
              (WebCore::HitTestResult::absoluteLinkURL):
              (WebCore::HitTestResult::isLiveLink):
              * rendering/RenderForeignObject.cpp:
              * rendering/RenderForeignObject.h:
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::isTransparent):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::containingBlock):
              * rendering/RenderObject.h:
              * rendering/RenderPath.cpp:
              * rendering/RenderPath.h:
              * rendering/RenderSVGBlock.cpp:
              * rendering/RenderSVGBlock.h:
              * rendering/RenderSVGContainer.cpp:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGGradientStop.cpp:
              * rendering/RenderSVGGradientStop.h:
              * rendering/RenderSVGHiddenContainer.cpp:
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGImage.cpp:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInline.cpp:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.cpp:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGTSpan.cpp:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.cpp:
              * rendering/RenderSVGText.h:
              * rendering/RenderStyle.cpp:
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::operator==):
              (WebCore::RenderStyle::RenderStyle):
              (WebCore::RenderStyle::inheritFrom):
              (WebCore::RenderStyle::operator==):
              (WebCore::RenderStyle::inheritedNotEqual):
              (WebCore::RenderStyle::diff):
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              (WebCore::RenderText::setStyle):
              (WebCore::RenderText::setTextInternal):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::write):
              (WebCore::externalRepresentation):
              * rendering/SVGInlineFlowBox.cpp:
              * rendering/SVGInlineFlowBox.h:
              * rendering/SVGRenderTreeAsText.cpp:
              * rendering/SVGRenderTreeAsText.h:
              * rendering/SVGRootInlineBox.cpp:
              * rendering/SVGRootInlineBox.h:
              * rendering/bidi.cpp:
              (WebCore::shouldPreserveNewline):
              (WebCore::RenderBlock::findNextLineBreak):
              * webcore-base.bkl:
              * xml/NativeXPathNSResolver.cpp:
              * xml/NativeXPathNSResolver.h:
              * xml/XPathEvaluator.cpp:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.cpp:
              * xml/XPathExpression.h:
              * xml/XPathExpressionNode.cpp:
              * xml/XPathExpressionNode.h:
              * xml/XPathFunctions.cpp:
              * xml/XPathFunctions.h:
              * xml/XPathGrammar.y:
              * xml/XPathNSResolver.cpp:
              * xml/XPathNSResolver.h:
              * xml/XPathNamespace.cpp:
              * xml/XPathNamespace.h:
              * xml/XPathParser.cpp:
              * xml/XPathParser.h:
              * xml/XPathPath.cpp:
              * xml/XPathPath.h:
              * xml/XPathPredicate.cpp:
              * xml/XPathPredicate.h:
              * xml/XPathResult.cpp:
              * xml/XPathResult.h:
              * xml/XPathStep.cpp:
              * xml/XPathStep.h:
              * xml/XPathUtil.cpp:
              * xml/XPathUtil.h:
              * xml/XPathValue.cpp:
              * xml/XPathValue.h:
              * xml/XPathVariableReference.cpp:
              * xml/XPathVariableReference.h:
              * xml/XSLImportRule.cpp:
              * xml/XSLImportRule.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessor.cpp:
              * xml/XSLTProcessor.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2948ef7
  15. 09 Feb, 2007 1 commit
    • darin's avatar
      Reviewed by Adele. · a64faa8c
      darin authored
              - Add TextEvent to the DOM (based on the proposed DOM level 3)
                to be used to fix some international input bugs soon.
                At this point, we don't send any text events.
      
              - Remove some obsolete files.
      
              * CMakeLists.txt:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Add new files, remove obsolete files.
      
              * DerivedSources.make: Add TextEvent to the Objective-C and JavaScript bindings lists.
              * WebCore.exp: Export DOMTextEvent Objective-C wrapper.
      
              * bindings/js/kjs_events.cpp: (KJS::toJS): Added TextEvent to the list of Event subclasses
              so we make the right kind of JS wrapper.
              * bindings/objc/DOMEvents.mm: (+[DOMEvent _eventWith:]): Same thing, for Objective-C.
      
              * bindings/objc/DOMInternal.h: Added DOMTextEventInternal.h.
      
              * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::hasFeature):
              Added "TextEvents", "3.0" to the list of things we'll answer true for
              (as specified in the DOM Level 3 documentation).
              This isn't so great until we actually send textInput events, but that's coming soon.
      
              * dom/Document.cpp: (WebCore::Document::createEvent): Add "TextEvent" as a way to make
              a TextEvent (as specified in the DOM Level 3 documentation).
      
              * dom/Event.h:
              * dom/Event.cpp: (WebCore::Event::isTextEvent): Added virtual function to be used
              for runtime type checking of Event objects (as for other event types).
      
              * dom/TextEvent.cpp: Added.
              * dom/TextEvent.h: Added.
              * dom/TextEvent.idl: Added.
      
              * platform/mac/WebCoreWidgetHolder.h: Removed.
              * rendering/CounterListItem.h: Removed.
              * rendering/CounterResetNode.cpp: Removed.
              * rendering/CounterResetNode.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a64faa8c
  16. 17 Oct, 2006 1 commit
    • weinig's avatar
      Reviewed by Tim H. · 742c4518
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=11268
              Implement the Objective-C DOM bindings for SVGNumber, SVGRect, and SVGPoint
      
              - Adds implementation for DOMSVGNumber, DOMSVGRect, and DOMSVGPoint.
      
              - Moves the contents of ksvg/bindings/js/ to bindings/js/.
      
              - Moves SVGZoomEvent.idl from ksvg/svg/ to ksvg/events/.
      
              - Adds isSVGColor() and isSVGPaint() methods to StyleBase, matching 
                the other CSSValue classing, and allowing the bindings to allocate
                appropriately.
      
              - Removes #ifdefs around the getBBox() method in SVGLocatable.idl allowing
                generation for Objective-C.
      
              - Assorted style cleanups.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOMCSS.mm:
              (+[DOMCSSValue _CSSValueWith:WebCore::]):
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _eventWith:WebCore::]):
              * bindings/objc/DOMSVG.h:
              * bindings/objc/DOMSVGNumber.mm:
              (-[DOMSVGNumber dealloc]):
              (-[DOMSVGNumber finalize]):
              (-[DOMSVGNumber value]):
              (-[DOMSVGNumber setValue:]):
              (-[DOMSVGNumber _SVGNumber]):
              (-[DOMSVGNumber _initWithFloat:]):
              (+[DOMSVGNumber _SVGNumberWith:]):
              * bindings/objc/DOMSVGPoint.mm:
              (-[DOMSVGPoint dealloc]):
              (-[DOMSVGPoint finalize]):
              (-[DOMSVGPoint x]):
              (-[DOMSVGPoint setX:]):
              (-[DOMSVGPoint y]):
              (-[DOMSVGPoint setY:]):
              (-[DOMSVGPoint WebCore::]):
              (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
              (+[DOMSVGPoint _SVGPointWith:WebCore::]):
              * bindings/objc/DOMSVGRect.mm:
              (-[DOMSVGRect dealloc]):
              (-[DOMSVGRect finalize]):
              (-[DOMSVGRect x]):
              (-[DOMSVGRect setX:]):
              (-[DOMSVGRect y]):
              (-[DOMSVGRect setY:]):
              (-[DOMSVGRect width]):
              (-[DOMSVGRect setWidth:]):
              (-[DOMSVGRect height]):
              (-[DOMSVGRect setHeight:]):
              (-[DOMSVGRect WebCore::]):
              (-[DOMSVGRect _initWithFloatRect:WebCore::]):
              (+[DOMSVGRect _SVGRectWith:WebCore::]):
              * bindings/scripts/CodeGeneratorObjC.pm:
              * css/StyleBase.h:
              (WebCore::StyleBase::isSVGColor):
              (WebCore::StyleBase::isSVGPaint):
              * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Removed.
              * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Removed.
              * ksvg2/bindings/js/JSSVGNumber.cpp: Removed.
              * ksvg2/bindings/js/JSSVGNumber.h: Removed.
              * ksvg2/bindings/js/JSSVGPoint.cpp: Removed.
              * ksvg2/bindings/js/JSSVGPoint.h: Removed.
              * ksvg2/bindings/js/JSSVGRect.cpp: Removed.
              * ksvg2/bindings/js/JSSVGRect.h: Removed.
              * ksvg2/svg/SVGColor.h:
              (WebCore::SVGColor::isSVGColor):
              * ksvg2/svg/SVGFECompositeElement.idl:
              * ksvg2/svg/SVGFEFloodElement.idl:
              * ksvg2/svg/SVGLocatable.idl:
              * ksvg2/svg/SVGMarkerElement.idl:
              * ksvg2/svg/SVGPaint.h:
              (WebCore::SVGPaint::isSVGPaint):
              * ksvg2/svg/SVGRectElement.idl:
              * ksvg2/svg/SVGZoomEvent.idl: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      742c4518
  17. 15 Oct, 2006 1 commit
  18. 10 Oct, 2006 1 commit
    • weinig's avatar
      Reviewed by Tim H. · c0f8d230
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
              Even More auto-generated Objective-C DOM bindings changes
      
              - Auto-generate DOMSVGPathElement.
      
              - Auto-generate the internal interfaces even for classes that have
                custom internal implementations.  Change IDL property from ObjCNoInternal
                to ObjCCustomInternalImpl to indicate the change.
      
              - Add SVG classes to DOMNode and DOMEvent internal interfaces.
      
              - Add isSVGZoomEvent() method to Event class to match other Event subclasses
                and make DOM binding possible.
      
              - Assorted cleanups.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (WebCore::addElementClass):
              (WebCore::createElementClassMap):
              (WebCore::elementClass):
              (-[DOMNode description]):
              (+[DOMNode _nodeWith:WebCore::]):
              (-[DOMNode addEventListener:listener:useCapture:]):
              (-[DOMNode removeEventListener:listener:useCapture:]):
              (-[DOMElement _NPObject]):
              (WebCore::ObjCEventListener::handleEvent):
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _eventWith:WebCore::]):
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMRGBColor.mm:
              (-[DOMRGBColor WebCore::]):
              * bindings/objc/DOMSVGPathSegInternal.h: Removed.
              * bindings/scripts/CodeGeneratorObjC.pm:
              * css/CSSRule.idl:
              * css/CSSValue.idl:
              * css/StyleSheet.idl:
              * dom/Event.cpp:
              (WebCore::Event::isSVGZoomEvent):
              * dom/Event.h:
              * dom/Event.idl:
              * dom/Node.idl:
              * ksvg2/events/SVGZoomEvent.cpp:
              (WebCore::SVGZoomEvent::isSVGZoomEvent):
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/svg/SVGAnimatedAngle.idl:
              * ksvg2/svg/SVGCircleElement.idl:
              * ksvg2/svg/SVGClipPathElement.idl:
              * ksvg2/svg/SVGPathElement.idl:
              * ksvg2/svg/SVGPathSeg.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0f8d230
  19. 09 Oct, 2006 1 commit
    • weinig's avatar
      Reviewed by Tim H. · b5e08161
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
              Assorted Objective-C bindings changes
      
              - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath, 
                DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel, 
                DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel, 
                DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel, 
                DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel, 
                DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs, 
                DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel, 
                DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel, 
                DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
      
              - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
                DOMHTMLObjectElement.
      
              - Auto-generate the internal methods for classes with ivars (notably 
                DOMNodeIterator and DOMTreeWalker)
      
              - Put more methods in the WebCore namespace and factor out the  
                displayString method into DOMInternal.h as done by Darin in his 
                patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (-[DOMNode _initWithNode:WebCore::]):
              (+[DOMNode _nodeWith:WebCore::]):
              (-[DOMNode addEventListener:listener:useCapture:]):
              (-[DOMNode removeEventListener:listener:useCapture:]):
              (-[DOMNode dispatchEvent:]):
              (-[DOMElement _imageTIFFRepresentation]):
              (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
              (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
              (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
              (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
              * bindings/objc/DOMCSS.mm:
              (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
              (+[DOMStyleSheet _styleSheetWith:WebCore::]):
              (-[DOMCSSRule _initWithCSSRule:WebCore::]):
              (+[DOMCSSRule _CSSRuleWith:WebCore::]):
              (-[DOMCSSValue _initWithCSSValue:WebCore::]):
              (+[DOMCSSValue _CSSValueWith:WebCore::]):
              * bindings/objc/DOMEvents.mm:
              (-[DOMEvent _initWithEvent:WebCore::]):
              (+[DOMEvent _eventWith:WebCore::]):
              * bindings/objc/DOMExtensions.h:
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
              * bindings/objc/DOMInternal.h:
              (-[DOMNodeFilter WebCore::]):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _init]):
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              (WebCore::displayString):
              * bindings/objc/DOMObject.mm:
              (-[DOMObject dealloc]):
              (-[DOMObject finalize]):
              * bindings/objc/DOMRGBColor.mm:
              (-[DOMRGBColor dealloc]):
              (-[DOMRGBColor finalize]):
              (-[DOMRGBColor color]):
              (-[DOMRGBColor _initWithRGB:WebCore::]):
              (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
              * bindings/objc/DOMSVG.h:
              * bindings/objc/DOMSVGPathSegInternal.h: Added.
              * bindings/objc/DOMSVGPathSegInternal.mm: Added.
              (-[DOMSVGPathSeg WebCore::]):
              (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
              (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
              * bindings/objc/DOMXPath.mm:
              (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
              (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
              * bindings/objc/PublicDOMInterfaces.h:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * dom/NodeIterator.idl:
              * dom/TreeWalker.idl:
              * html/HTMLInputElement.idl:
              * html/HTMLObjectElement.idl:
              * ksvg2/svg/SVGDocument.idl:
              * ksvg2/svg/SVGElement.idl:
              * ksvg2/svg/SVGPathSeg.idl:
              * ksvg2/svg/SVGPathSegArcAbs.idl:
              * ksvg2/svg/SVGPathSegArcRel.idl:
              * ksvg2/svg/SVGPathSegClosePath.idl:
              * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
              * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
              * ksvg2/svg/SVGPathSegLinetoAbs.idl:
              * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
              * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
              * ksvg2/svg/SVGPathSegLinetoRel.idl:
              * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
              * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
              * ksvg2/svg/SVGPathSegMovetoAbs.idl:
              * ksvg2/svg/SVGPathSegMovetoRel.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b5e08161
  20. 24 Sep, 2006 1 commit
    • weinig's avatar
      Reviewed by Tim H. · 4f67b13c
      weinig authored
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=11009
              Auto-generate the internal methods interfaces for the Objective-C bindings
      
              - Auto-generate the internal method declarations into their own files
                named in the form DOMFooBarInternal.h for class DOMFooBar.
      
              - Remove all use of DOM_cast from code.
      
              - Assorted cleanups.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (-[DOMNode _initWithNode:WebCore::]):
              (-[DOMNode WebCore::]):
              (-[DOMRange dealloc]):
              (-[DOMRange finalize]):
              (-[DOMRange _initWithRange:WebCore::]):
              (-[DOMRange WebCore::]):
              (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
              (-[DOMNodeFilter WebCore::]):
              (-[DOMNodeFilter dealloc]):
              (-[DOMNodeFilter finalize]):
              (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
              (-[DOMNodeIterator WebCore::]):
              (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
              (-[DOMTreeWalker WebCore::]):
              * bindings/objc/DOMAbstractView.mm:
              (-[DOMAbstractView _initWithAbstractView:WebCore::]):
              * bindings/objc/DOMCSS.mm:
              (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
              (-[DOMCSSRule _initWithRule:WebCore::]):
              (-[DOMCSSValue _initWithValue:WebCore::]):
              * bindings/objc/DOMEvents.mm:
              (-[DOMEvent _initWithEvent:WebCore::]):
              * bindings/objc/DOMHTMLAppletElement.mm:
              (-[DOMHTMLAppletElement align]):
              (-[DOMHTMLAppletElement setAlign:]):
              (-[DOMHTMLAppletElement alt]):
              (-[DOMHTMLAppletElement setAlt:]):
              (-[DOMHTMLAppletElement archive]):
              (-[DOMHTMLAppletElement setArchive:]):
              (-[DOMHTMLAppletElement code]):
              (-[DOMHTMLAppletElement setCode:]):
              (-[DOMHTMLAppletElement codeBase]):
              (-[DOMHTMLAppletElement setCodeBase:]):
              (-[DOMHTMLAppletElement height]):
              (-[DOMHTMLAppletElement setHeight:]):
              (-[DOMHTMLAppletElement hspace]):
              (-[DOMHTMLAppletElement setHspace:]):
              (-[DOMHTMLAppletElement name]):
              (-[DOMHTMLAppletElement setName:]):
              (-[DOMHTMLAppletElement object]):
              (-[DOMHTMLAppletElement setObject:]):
              (-[DOMHTMLAppletElement vspace]):
              (-[DOMHTMLAppletElement setVspace:]):
              (-[DOMHTMLAppletElement width]):
              (-[DOMHTMLAppletElement setWidth:]):
              * bindings/objc/DOMInternal.h:
              (getDOMWrapper):
              (addDOMWrapper):
              (raiseOnDOMError):
              * bindings/objc/DOMXPath.mm:
              (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
              * bindings/scripts/CodeGeneratorObjC.pm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f67b13c
  21. 18 Sep, 2006 1 commit
    • weinig's avatar
      WebCore: · 6d74c0dc
      weinig authored
              Reviewed by Tim H.
      
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10903
              Yet Another Objective-C Bindings Patch
      
              - Whitespace cleanup for IDLParser.pm
      
              - Split DOMException, DOMRangeException, DOMXPathException, DOMEventsException
                and DOMAbstractView into their own files.
      
              - Remove private method [DOMRGBColor _color] from DOMPrivate.h as
                it is not used and a public method is available now.
      
              - Remove internal method [DOMDocument _ownerElement] from DOMInternal.h
                as it not used.
      
              - Auto-generate method isContentEditable for DOMNode.
      
              - General cleanup of bindings code including removing unneeded #imports
                and whitespace cleanup
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (addElementClass):
              (elementClass):
              (-[DOMNode _initWithNode:WebCore::]):
              (+[DOMNode _nodeWith:WebCore::]):
              (-[DOMNode WebCore::]):
              (-[DOMNode KJS::Bindings::]):
              (-[DOMNode addEventListener:::]):
              (-[DOMNode removeEventListener:::]):
              (-[DOMNode dispatchEvent:]):
              (-[DOMElement image]):
              (-[DOMElement _font]):
              (-[DOMElement _imageTIFFRepresentation]):
              (-[DOMElement _getURLAttribute:]):
              (-[DOMElement _NPObject]):
              (-[DOMElement isFocused]):
              (-[DOMRange dealloc]):
              (-[DOMRange finalize]):
              (-[DOMRange description]):
              (-[DOMRange startContainer]):
              (-[DOMRange startOffset]):
              (-[DOMRange endContainer]):
              (-[DOMRange endOffset]):
              (-[DOMRange collapsed]):
              (-[DOMRange commonAncestorContainer]):
              (-[DOMRange setStart::]):
              (-[DOMRange setEnd::]):
              (-[DOMRange setStartBefore:]):
              (-[DOMRange setStartAfter:]):
              (-[DOMRange setEndBefore:]):
              (-[DOMRange setEndAfter:]):
              (-[DOMRange collapse:]):
              (-[DOMRange selectNode:]):
              (-[DOMRange selectNodeContents:]):
              (-[DOMRange compareBoundaryPoints::]):
              (-[DOMRange deleteContents]):
              (-[DOMRange extractContents]):
              (-[DOMRange cloneContents]):
              (-[DOMRange insertNode:]):
              (-[DOMRange surroundContents:]):
              (-[DOMRange cloneRange]):
              (-[DOMRange toString]):
              (-[DOMRange detach]):
              (-[DOMRange _initWithRange:WebCore::]):
              (+[DOMRange _rangeWith:WebCore::]):
              (-[DOMRange WebCore::]):
              (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
              (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
              (-[DOMNodeFilter WebCore::]):
              (-[DOMNodeFilter dealloc]):
              (-[DOMNodeFilter finalize]):
              (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
              (-[DOMNodeIterator WebCore::]):
              (+[DOMNodeIterator _nodeIteratorWith:WebCore::filter:]):
              (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
              (-[DOMTreeWalker WebCore::]):
              (+[DOMTreeWalker _treeWalkerWith:WebCore::filter:]):
              (ObjCNodeFilterCondition::acceptNode):
              (-[DOMDocument createNodeIterator::::]):
              (-[DOMDocument createTreeWalker::::]):
              (ObjCEventListener::find):
              (ObjCEventListener::create):
              (ObjCEventListener::handleEvent):
              * bindings/objc/DOMAbstractView.h: Added.
              * bindings/objc/DOMAbstractView.mm: Added.
              (-[DOMAbstractView document]):
              (-[DOMAbstractView WebCore::]):
              (-[DOMAbstractView _initWithAbstractView:WebCore::]):
              (+[DOMAbstractView _abstractViewWith:WebCore::]):
              * bindings/objc/DOMCSS.mm:
              (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
              (+[DOMStyleSheet _styleSheetWith:WebCore::]):
              (+[DOMCSSStyleSheet _CSSStyleSheetWith:WebCore::]):
              (-[DOMCSSRule _initWithRule:WebCore::]):
              (+[DOMCSSRule _CSSRuleWith:WebCore::]):
              (-[DOMCSSValue _initWithValue:WebCore::]):
              (+[DOMCSSValue _CSSValueWith:WebCore::]):
              (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:WebCore::]):
              (-[DOMDocument getComputedStyle::]):
              (-[DOMDocument getMatchedCSSRules::]):
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEventException.h: Added.
              * bindings/objc/DOMEvents.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMException.h: Added.
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
              (viewForElement):
              (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
              (-[DOMHTMLInputElement _selectedRange]):
              (-[DOMHTMLInputElement _setAutofilled:]):
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMObject.h:
              * bindings/objc/DOMPrivate.h:
              * bindings/objc/DOMRange.h:
              * bindings/objc/DOMRangeException.h: Added.
              * bindings/objc/DOMViews.h:
              * bindings/objc/DOMViews.mm: Removed.
              * bindings/objc/DOMXPath.h:
              * bindings/objc/DOMXPathException.h: Added.
              * bindings/scripts/IDLParser.pm:
              * dom/Node.idl:
      
      WebKit:
      
              Reviewed by Tim H.
      
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10903
              Yet Another Objective-C Bindings Patch
      
              * MigrateHeaders.make:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d74c0dc
  22. 15 Sep, 2006 1 commit
    • weinig's avatar
      Reviewed by Tim H. · c6bbaebd
      weinig authored
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10869
              Auto-generate the internal methods for the Objective-C bindings
      
              - Auto-generates the internal method (ie. the _fooBar and _fooBarWith methods)
                implementations where standard.  For cases where a custom implementation was
                needed, added a [ObjCNoInternal] extended attribute to the corresponding IDL.
      
              - Some general cleanup of some of the non-generated bindings, to bring them in-
                line with what the generated bindings look like.
      
              * bindings/objc/DOM.mm:
              (-[DOMNode description]):
              * bindings/objc/DOMCSS.mm:
              (-[DOMCSSPrimitiveValue WebCore::]):
              (-[DOMDocument getComputedStyle::]):
              (-[DOMDocument getMatchedCSSRules::]):
              * bindings/objc/DOMEvents.mm:
              (-[DOMEvent WebCore::]):
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMHTMLDocument.mm:
              (-[DOMHTMLDocument title]):
              (-[DOMHTMLDocument setTitle:]):
              (-[DOMHTMLDocument referrer]):
              (-[DOMHTMLDocument domain]):
              (-[DOMHTMLDocument URL]):
              (-[DOMHTMLDocument body]):
              (-[DOMHTMLDocument setBody:]):
              (-[DOMHTMLDocument images]):
              (-[DOMHTMLDocument applets]):
              (-[DOMHTMLDocument links]):
              (-[DOMHTMLDocument forms]):
              (-[DOMHTMLDocument anchors]):
              (-[DOMHTMLDocument cookie]):
              (-[DOMHTMLDocument setCookie:]):
              (-[DOMHTMLDocument open]):
              (-[DOMHTMLDocument close]):
              (-[DOMHTMLDocument write:]):
              (-[DOMHTMLDocument writeln:]):
              (-[DOMHTMLDocument getElementById:]):
              (-[DOMHTMLDocument getElementsByName:]):
              (-[DOMHTMLDocument WebCore::]):
              (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
              * bindings/objc/DOMHTMLOptionElement.mm:
              (-[DOMHTMLOptionElement form]):
              (-[DOMHTMLOptionElement defaultSelected]):
              (-[DOMHTMLOptionElement setDefaultSelected:]):
              (-[DOMHTMLOptionElement text]):
              (-[DOMHTMLOptionElement index]):
              (-[DOMHTMLOptionElement disabled]):
              (-[DOMHTMLOptionElement setDisabled:]):
              (-[DOMHTMLOptionElement label]):
              (-[DOMHTMLOptionElement setLabel:]):
              (-[DOMHTMLOptionElement selected]):
              (-[DOMHTMLOptionElement setSelected:]):
              (-[DOMHTMLOptionElement value]):
              (-[DOMHTMLOptionElement setValue:]):
              (-[DOMHTMLOptionElement WebCore::]):
              (+[DOMHTMLOptionElement _HTMLOptionElementWith:WebCore::]):
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMNode.mm:
              (-[DOMNode dealloc]):
              (-[DOMNode finalize]):
              (-[DOMNode nodeName]):
              (-[DOMNode nodeValue]):
              (-[DOMNode setNodeValue:]):
              (-[DOMNode nodeType]):
              (-[DOMNode parentNode]):
              (-[DOMNode childNodes]):
              (-[DOMNode firstChild]):
              (-[DOMNode lastChild]):
              (-[DOMNode previousSibling]):
              (-[DOMNode nextSibling]):
              (-[DOMNode attributes]):
              (-[DOMNode ownerDocument]):
              (-[DOMNode insertBefore::]):
              (-[DOMNode replaceChild::]):
              (-[DOMNode removeChild:]):
              (-[DOMNode appendChild:]):
              (-[DOMNode hasChildNodes]):
              (-[DOMNode cloneNode:]):
              (-[DOMNode normalize]):
              (-[DOMNode isSupported::]):
              (-[DOMNode namespaceURI]):
              (-[DOMNode prefix]):
              (-[DOMNode setPrefix:]):
              (-[DOMNode localName]):
              (-[DOMNode hasAttributes]):
              (-[DOMNode isSameNode:]):
              (-[DOMNode isEqualNode:]):
              (-[DOMNode isDefaultNamespace:]):
              (-[DOMNode lookupPrefix:]):
              (-[DOMNode lookupNamespaceURI:]):
              (-[DOMNode textContent]):
              (-[DOMNode setTextContent:]):
              (-[DOMNode boundingBox]):
              (-[DOMNode lineBoxRects]):
              * bindings/objc/DOMObject.mm:
              (-[DOMObject _init]):
              * bindings/objc/DOMXPath.mm:
              (-[DOMNativeXPathNSResolver dealloc]):
              (-[DOMNativeXPathNSResolver finalize]):
              (-[DOMNativeXPathNSResolver WebCore::]):
              (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
              (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
              (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
              * bindings/scripts/CodeGeneratorObjC.pm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
              * css/CSSCharsetRule.idl:
              * css/CSSFontFaceRule.idl:
              * css/CSSImportRule.idl:
              * css/CSSMediaRule.idl:
              * css/CSSPageRule.idl:
              * css/CSSPrimitiveValue.idl:
              * css/CSSRule.idl:
              * css/CSSStyleRule.idl:
              * css/CSSStyleSheet.idl:
              * css/CSSUnknownRule.idl:
              * css/CSSValue.idl:
              * css/CSSValueList.idl:
              * css/StyleSheet.idl:
              * dom/Event.idl:
              * dom/KeyboardEvent.idl:
              * dom/MouseEvent.idl:
              * dom/MutationEvent.idl:
              * dom/NodeIterator.idl:
              * dom/OverflowEvent.idl:
              * dom/TreeWalker.idl:
              * dom/UIEvent.idl:
              * dom/WheelEvent.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6bbaebd
  23. 07 Sep, 2006 1 commit
    • weinig's avatar
      WebCore: · f83c3e84
      weinig authored
              Reviewed by Darin.
      
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10766
              Auto-generate the Objective-C DOM Events bindings
      
              - Auto-generates DOMEvent, DOMKeyboardEvent, DOMMouseEvent, DOMMutationEvent, 
                DOMOverflowEvent, DOMUIEvent, and DOMWheelEvent.
                
              - Splits out DOMEventListener and DOMEventTarget into their own files.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOMEventListener.h: Added.
              * bindings/objc/DOMEventTarget.h: Added.
              * bindings/objc/DOMEvents.h:
              * bindings/objc/DOMEvents.mm:
              (-[DOMEvent WebCore::]):
              (-[DOMEvent _initWithEvent:WebCore::]):
              (+[DOMEvent _eventWith:WebCore::]):
              * bindings/objc/DOMEventsNonstandard.mm: Removed.
              * bindings/objc/DOMNode.h:
              * bindings/objc/PublicDOMInterfaces.h:
              * bindings/scripts/CodeGenerator.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * dom/Event.idl:
              * dom/EventListener.idl: Added.
              * dom/EventTarget.idl: Added.
              * dom/KeyboardEvent.idl:
              * dom/MouseEvent.idl:
              * dom/UIEvent.idl:
              * dom/WheelEvent.idl:
      
      WebKit:
      
              Reviewed by Darin.
      
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10766
              Auto-generate the Objective-C DOM Events bindings
      
              * MigrateHeaders.make:
              * WebKit.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f83c3e84
  24. 05 Sep, 2006 1 commit
    • weinig's avatar
      Reviewed by Tim H. · 6e404d9f
      weinig authored
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10738
              Consolidate the Objective-C DOM Bindings Internal files into DOMInternal.h
      
              - Consolidate DOMHTMLInternal.h, DOMCSSInternal.h, DOMEventsInternal.h,
                DOMViewsInternal.h and DOMXPathInternal.h into DOMInternal.h.
      
              - Rename the "type-makers" (used to make a binding from an implementation 
                type) so that all the HTML ones begin with the prefix HTML.  Did the same
                for the CSS.
      
              - Auto-generate a couple more methods from DOMExtensions.h.
      
              - Various cleanups of the Objective-C auto-generation code.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (-[DOMDocument createCSSStyleDeclaration]):
              * bindings/objc/DOMCSS.mm:
              (+[DOMCSSRuleList _CSSRuleListWith:]):
              (+[DOMCSSRule _CSSRuleWith:]):
              (+[DOMCSSStyleDeclaration _CSSStyleDeclarationWith:]):
              (+[DOMCSSValue _CSSValueWith:]):
              (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:]):
              (-[DOMDocument getComputedStyle::]):
              (-[DOMDocument getMatchedCSSRules::]):
              * bindings/objc/DOMCSSInternal.h: Removed.
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMEventsInternal.h: Removed.
              * bindings/objc/DOMEventsNonstandard.mm:
              * bindings/objc/DOMExtensions.h:
              * bindings/objc/DOMHTML.mm:
              (+[DOMHTMLCollection _HTMLCollectionWith:]):
              (+[DOMHTMLOptionsCollection _HTMLOptionsCollectionWith:]):
              (+[DOMHTMLElement _HTMLElementWith:]):
              (+[DOMHTMLFormElement _HTMLFormElementWith:]):
              (+[DOMHTMLTableCaptionElement _HTMLTableCaptionElementWith:]):
              (+[DOMHTMLTableSectionElement _HTMLTableSectionElementWith:]):
              (+[DOMHTMLTableElement _HTMLTableElementWith:]):
              (+[DOMHTMLTableCellElement _HTMLTableCellElementWith:]):
              * bindings/objc/DOMHTMLAppletElement.mm:
              * bindings/objc/DOMHTMLDocument.mm:
              (-[DOMHTMLDocument body]):
              (-[DOMHTMLDocument images]):
              (-[DOMHTMLDocument applets]):
              (-[DOMHTMLDocument links]):
              (-[DOMHTMLDocument forms]):
              (-[DOMHTMLDocument anchors]):
              * bindings/objc/DOMHTMLInternal.h: Removed.
              * bindings/objc/DOMHTMLOptionElement.mm:
              (-[DOMHTMLOptionElement form]):
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMRGBColor.mm:
              (setWrapperForRGB):
              (-[DOMRGBColor red]):
              (-[DOMRGBColor green]):
              (-[DOMRGBColor blue]):
              (-[DOMRGBColor alpha]):
              * bindings/objc/DOMUtility.mm:
              (KJS::ScriptInterpreter::createObjcInstanceForValue):
              * bindings/objc/DOMViews.mm:
              (-[DOMAbstractView WebCore::]):
              (-[DOMAbstractView _initWithAbstractView:WebCore::]):
              (+[DOMAbstractView _abstractViewWith:WebCore::]):
              * bindings/objc/DOMViewsInternal.h: Removed.
              * bindings/objc/DOMXPath.mm:
              * bindings/objc/DOMXPathInternal.h: Removed.
              * bindings/objc/PublicDOMInterfaces.h:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge typingStyle]):
              * html/HTMLAnchorElement.idl:
              * html/HTMLAreaElement.idl:
              * html/HTMLImageElement.idl:
              * html/HTMLInputElement.idl:
              * html/HTMLLinkElement.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e404d9f
  25. 27 Aug, 2006 1 commit
    • weinig's avatar
      WebCore: · a8192c04
      weinig authored
              Reviewed by Tim H.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=4624
                WebCore needs autogenerated Obj-C DOM bindings
      
                First round of auto-generated Objective C DOM bindings, starting
                with the DOM Core.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (-[DOMNode description]):
              (-[DOMNode KJS::Bindings::]):
              (-[DOMNode dispatchEvent:]):
              (-[DOMNamedNodeMap _initWithNamedNodeMap:]):
              (+[DOMNamedNodeMap _namedNodeMapWith:]):
              (-[DOMNodeList _initWithNodeList:]):
              (+[DOMNodeList _nodeListWith:]):
              (-[DOMImplementation _initWithDOMImplementation:]):
              (+[DOMImplementation _DOMImplementationWith:]):
              (-[DOMImplementation _DOMImplementation]):
              (+[DOMDocumentFragment _documentFragmentWith:]):
              (-[DOMDocumentFragment _fragment]):
              (-[DOMDocument createCSSStyleDeclaration]):
              (+[DOMDocument _documentWith:]):
              (-[DOMDocument _document]):
              (-[DOMDocument _ownerElement]):
              (+[DOMAttr _attrWith:]):
              (-[DOMAttr _attr]):
              (+[DOMDocumentType _documentTypeWith:WebCore::]):
              (-[DOMDocumentType WebCore::]):
              (+[DOMText _textWith:WebCore::]):
              (+[DOMComment _commentWith:WebCore::]):
              (+[DOMCDATASection _CDATASectionWith:WebCore::]):
              (+[DOMProcessingInstruction _processingInstructionWith:WebCore::]):
              (+[DOMEntityReference _entityReferenceWith:WebCore::]):
              * bindings/objc/DOMCSS.h:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEvents.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMExtensions.h:
              * bindings/objc/DOMHTML.mm:
              (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
              * bindings/objc/DOMHTMLInternal.h:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMInternal.h:
              * bindings/objc/DOMNode.h: Added.
              * bindings/objc/DOMNode.mm: Added.
              (-[DOMNode dealloc]):
              (-[DOMNode finalize]):
              (-[DOMNode nodeName]):
              (-[DOMNode nodeValue]):
              (-[DOMNode setNodeValue:]):
              (-[DOMNode nodeType]):
              (-[DOMNode parentNode]):
              (-[DOMNode childNodes]):
              (-[DOMNode firstChild]):
              (-[DOMNode lastChild]):
              (-[DOMNode previousSibling]):
              (-[DOMNode nextSibling]):
              (-[DOMNode attributes]):
              (-[DOMNode ownerDocument]):
              (-[DOMNode insertBefore::]):
              (-[DOMNode replaceChild::]):
              (-[DOMNode removeChild:]):
              (-[DOMNode appendChild:]):
              (-[DOMNode hasChildNodes]):
              (-[DOMNode cloneNode:]):
              (-[DOMNode normalize]):
              (-[DOMNode isSupported::]):
              (-[DOMNode namespaceURI]):
              (-[DOMNode prefix]):
              (-[DOMNode setPrefix:]):
              (-[DOMNode localName]):
              (-[DOMNode hasAttributes]):
              (-[DOMNode isSameNode:]):
              (-[DOMNode isEqualNode:]):
              (-[DOMNode isDefaultNamespace:]):
              (-[DOMNode lookupPrefix:]):
              (-[DOMNode lookupNamespaceURI:]):
              (-[DOMNode textContent]):
              (-[DOMNode setTextContent:]):
              (-[DOMNode boundingBox]):
              (-[DOMNode lineBoxRects]):
              * bindings/objc/DOMObject.h: Added.
              * bindings/objc/DOMObject.mm: Added.
              (-[DOMObject init]):
              (-[DOMObject dealloc]):
              (-[DOMObject finalize]):
              (-[DOMObject copyWithZone:]):
              (-[DOMObject sheet]):
              * bindings/objc/DOMPrivate.h:
              * bindings/objc/DOMRange.h:
              * bindings/objc/DOMStylesheets.h:
              * bindings/objc/DOMTraversal.h:
              * bindings/objc/DOMViews.h:
              * bindings/objc/DOMViews.mm:
              * bindings/objc/DOMXPath.h:
              * bindings/objc/DOMXPath.mm:
              * bindings/scripts/CodeGenerator.pm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm: Added.
              * dom/Attr.idl:
              * dom/CDATASection.idl: Added.
              * dom/Comment.idl: Added.
              * dom/DOMImplementation.idl:
              * dom/Document.idl:
              * dom/Element.idl:
              * dom/EntityReference.idl: Added.
              * dom/NamedNodeMap.idl: Added.
              * dom/NodeList.idl: Added.
              * dom/ProcessingInstruction.idl:
      
      WebKit:
      
              Reviewed by Tim H.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=4624
                WebCore needs autogenerated Obj-C DOM bindings
      
                First round of auto-generated Objective C DOM bindings, starting
                with the DOM Core.
      
              * WebKit.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8192c04
  26. 15 Aug, 2006 1 commit
    • darin's avatar
      LayoutTests: · c1f6b2b5
      darin authored
              Reviewed by Darin.
      
              - added a test to check keyboard events fired from the ObjC API:
                http://bugzilla.opendarwin.org/show_bug.cgi?id=9736
      
              * fast/events/objc-keyboard-event-creation-expected.txt: Added.
              * fast/events/objc-keyboard-event-creation.html: Added.
      
      WebCore:
      
              Reviewed by Darin.
      
              - added ObjC wrappers for the KeyboardEvent and WheelEvent initializers
                http://bugzilla.opendarwin.org/show_bug.cgi?id=9736
      
              * bindings/objc/DOMEvents.mm:
              (-[DOMKeyboardEvent initKeyboardEvent::::::::::]):
              * bindings/objc/DOMEventsNonstandard.mm:
              (-[DOMWheelEvent initWheelEvent:::::::::::]):
              * bindings/objc/DOMPrivate.h:
      
              - added an initializer for the WheelEvent
      
              * dom/WheelEvent.cpp:
              (WebCore::WheelEvent::initWheelEvent):
              * dom/WheelEvent.h:
      
      WebKitTools:
      
              Reviewed by Darin.
      
              - added a function to create a few DOMKeyboardEvents and dispatch
                them to a specified HTML element
                http://bugzilla.opendarwin.org/show_bug.cgi?id=9736
      
              * DumpRenderTree/EventSendingController.m:
              (+[EventSendingController isSelectorExcludedFromWebScript:]):
              (+[EventSendingController webScriptNameForSelector:]):
              (-[EventSendingController fireKeyboardEventsToElement:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1f6b2b5
  27. 07 Jul, 2006 1 commit
  28. 06 Jul, 2006 1 commit
    • andersca's avatar
      WebCore: · 0afc15f0
      andersca authored
      2006-07-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4610891> Support overflow events
              
              * DerivedSources.make:
              Add generated sources.
              
              * WebCore.xcodeproj/project.pbxproj:
              Add new files.
              
              * bindings/js/kjs_events.cpp:
              (KJS::toJS):
              Support creating wrappers for overflow events..
              
              * bindings/objc/DOMEvents.h:
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _eventWith:]):
              (-[DOMOverflowEvent _overflowEvent]):
              (-[DOMOverflowEvent orient]):
              (-[DOMOverflowEvent horizontalOverflow]):
              (-[DOMOverflowEvent verticalOverflow]):
              Add Objective-C wrapper for overflow events.
              
              * dom/Event.cpp:
              (WebCore::Event::isOverflowEvent):        
              * dom/Event.h:
              * dom/EventNames.h:
              * dom/OverflowEvent.cpp: Added.
              (WebCore::OverflowEvent::OverflowEvent):
              (WebCore::OverflowEvent::isOverflowEvent):
              * dom/OverflowEvent.h: Added.
              (WebCore::OverflowEvent::):
              (WebCore::OverflowEvent::orient):
              (WebCore::OverflowEvent::horizontalOverflow):
              (WebCore::OverflowEvent::verticalOverflow):
              * dom/OverflowEvent.idl: Added.
              Add overflow events.
              
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameView::applyOverflowToViewport):        
              (WebCore::FrameView::layout):
              Dispatch any scheduled events when layout is done.
              
              (WebCore::FrameView::scheduleEvent):
              New function which schedules an event.
              
              (WebCore::FrameView::updateOverflowStatus):
              Update overflow status for the viewport.
              
              (WebCore::FrameView::dispatchScheduledEvents):
              New function which dispatches all scheduled events.
              
              * page/FrameView.h:
              Add declarations.
              
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer):
              (WebCore::RenderLayer::updateOverflowStatus):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              * rendering/RenderLayer.h:
              Schedule overflow events when overflow status changes.
      
      LayoutTests:
      
      2006-07-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4610891> Support overflow events
              
              * fast/events/overflow-events-expected.txt: Added.
              * fast/events/overflow-events.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0afc15f0
  29. 24 Jun, 2006 1 commit
  30. 19 Jun, 2006 1 commit
  31. 11 Apr, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · 36d1136a
      darin authored
              Rubber-stamped by John Sullivan.
      
              - switched from a shell script to a makefile for generated files
              - removed lots of unneeded includes
              - added new Forward.h and HashForward.h headers that allow compiling with
                fewer unneeded templates
      
              * DerivedSources.make: Added.
              * generate-derived-sources: Removed.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new files, changed to use
              DerivedSources.make.
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
              * kxmlcore/HashCountedSet.h: Include HashForward for default args.
              * kxmlcore/HashMap.h: Ditto.
              * kxmlcore/HashSet.h: Ditto.
      
              * kjs/object.h:
              * kjs/object.cpp:
              Moved KJS_MAX_STACK into the .cpp file.
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_instance.h:
              * bindings/jni/jni_class.h:
              * bindings/jni/jni_runtime.h:
              * bindings/jni/jni_utility.h:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/WebScriptObjectPrivate.h:
              * bindings/objc/objc_class.h:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.h:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.h:
              * bindings/runtime_array.cpp:
              * bindings/runtime_array.h:
              * bindings/runtime_method.cpp:
              * bindings/runtime_method.h:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.h:
              * kjs/JSImmediate.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/array_object.h:
              * kjs/bool_object.cpp:
              * kjs/bool_object.h:
              * kjs/collector.h:
              * kjs/context.h:
              * kjs/debugger.cpp:
              * kjs/error_object.h:
              * kjs/function_object.h:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              * kjs/math_object.cpp:
              * kjs/math_object.h:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/number_object.h:
              * kjs/object_object.cpp:
              * kjs/operations.cpp:
              * kjs/protected_reference.h:
              * kjs/reference.h:
              * kjs/reference_list.h:
              * kjs/regexp_object.h:
              * kjs/string_object.cpp:
              * kjs/string_object.h:
              * kjs/testkjs.cpp:
              * kjs/value.cpp:
              * kjs/value.h:
              * kxmlcore/HashTable.h:
              * kxmlcore/ListRefPtr.h:
              * kxmlcore/TCPageMap.h:
              * kxmlcore/Vector.h:
              Removed unneeded header includes.
      
      JavaScriptGlue:
      
              Rubber-stamped by John Sullivan.
      
              - added forwarding headers for the new Forward.h and HashForward.h files
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
      WebCore:
      
              Rubber-stamped by John Sullivan (except for pbxproj change).
      
              - updated to use the new Forward.h and HashForward.h headers
              - moved the showTree debugging functions out of the WebCore
                namespace so they are easier to call from gdb, and renamed
                the showTree member functions so they don't get in the way;
                now you can do "call showTree(x)" in gdb and it just works
              - removed a lot of unneeded includes
      
              * WebCore.xcodeproj/project.pbxproj: Fixed a lot of paths that
              were not relative to the enclosing group.
      
              * ForwardingHeaders/kxmlcore/Forward.h: Added.
              * ForwardingHeaders/kxmlcore/HashForward.h: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMInternal.mm:
              * bindings/objc/DOMUtility.mm:
              * bindings/objc/DOMViews.mm:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCoreJavaScript.mm:
              * bridge/win/PageWin.cpp:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/css_base.h:
              * css/css_ruleimpl.h:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/AbstractView.h:
              * dom/AtomicStringList.h:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/Comment.cpp:
              * dom/ContainerNode.cpp:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dump):
              (WebCore::forbidEventDispatch):
              (WebCore::allowEventDispatch):
              (WebCore::eventDispatchForbidden):
              * dom/EventTargetNode.h:
              (WebCore::EventTargetNode::postDispatchEventHandler):
              * dom/NamedAttrMap.h:
              * dom/Node.cpp:
              (WebCore::Node::showNode):
              (WebCore::Node::showTree):
              (WebCore::Node::showTreeAndMark):
              (showTree):
              * dom/Node.h:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/Position.cpp:
              (showTree):
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_traversalimpl.h:
              * dom/dom_xmlimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * dom/xml_tokenizer.h:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/CreateLinkCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              * editing/EditCommand.cpp:
              * editing/EditCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/InsertTextCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/ModifySelectionListLevelCommand.cpp:
              * editing/MoveSelectionCommand.cpp:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              (WebCore::Selection::formatForDebugger):
              (WebCore::Selection::showTree):
              (showTree):
              * editing/Selection.h:
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::formatForDebugger):
              (WebCore::SelectionController::showTree):
              (showTree):
              * editing/SelectionController.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.cpp:
              * editing/VisiblePosition.cpp:
              (WebCore::isEqualIgnoringAffinity):
              (WebCore::VisiblePosition::formatForDebugger):
              (WebCore::VisiblePosition::showTree):
              (showTree):
              * editing/VisiblePosition.h:
              (WebCore::VisiblePosition::VisiblePosition):
              (WebCore::operator==):
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/markup.h:
              (WebCore::):
              * editing/visible_units.cpp:
              * html/CanvasGradient.cpp:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/CanvasStyle.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLElement.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLParser.cpp:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/html_baseimpl.cpp:
              * html/html_headimpl.h:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/decoder.h:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * khtml/xsl/XSLTProcessor.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/ecma/GlobalObject.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimatedColor.h:
              * ksvg2/svg/SVGAnimatedLengthList.h:
              * ksvg2/svg/SVGAnimatedNumberList.h:
              * ksvg2/svg/SVGAnimatedString.h:
              * ksvg2/svg/SVGAnimatedTransformList.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGTransform.h:
              * kwq/AccessibilityObjectCache.mm:
              * kwq/ClipboardMac.mm:
              * kwq/JavaAppletWidget.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/RegularExpression.h:
              * kwq/RenderTreeAsText.cpp:
              * kwq/RenderTreeAsText.h:
              * kwq/WebCoreAXObject.mm:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Color.cpp:
              * platform/FloatRect.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontFamily.cpp:
              * platform/GraphicsContext.cpp:
              * platform/Image.cpp:
              * platform/Image.h:
              * platform/IntRect.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.h:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              * platform/cairo/ImageCairo.cpp:
              * platform/cairo/ImageSourceCairo.cpp:
              * platform/image-decoders/gif/GIFImageReader.cpp:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/mac/FontFamilyMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/ImageMac.mm:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/TransferJobMac.mm:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/TransferJobWin.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderCanvas.cpp:
              * rendering/RenderCanvas.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (showTree):
              * rendering/RenderObject.h:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeWin.cpp:
              * rendering/bidi.cpp:
              * rendering/render_form.h:
              * rendering/render_line.cpp:
              (showTree):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              * rendering/render_replaced.cpp:
              * rendering/render_replaced.h:
              * rendering/render_style.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36d1136a
  32. 28 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-28 Eric Seidel <eseidel@apple.com> · d1baca46
      eseidel authored
              Reviewed by darin.
      
              Switch UIEvent, MouseEvent and KeyboardEvent over to
              be new auto-generated bindings.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7928
      
              Updated test: fast/dom/prototype-chain.html
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOMEvents.mm:
              (-[DOMEvent ::]):
              (-[DOMMouseEvent initMouseEvent:::::::::::::::]):
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchMouseEvent):
              * dom/KeyboardEvent.idl: Added.
              * dom/MouseEvent.idl: Added.
              * dom/UIEvent.idl: Added.
              * dom/WheelEvent.idl:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::MouseEvent::MouseEvent):
              (WebCore::MouseEvent::initMouseEvent):
              * dom/dom2_eventsimpl.h:
              (WebCore::MouseEvent::relatedTarget):
              (WebCore::MouseEvent::clipboard):
              * generate-derived-sources:
              * khtml/ecma/kjs_dom.cpp:
              (KJS::toEventTargetNode):
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::toJS):
              * khtml/ecma/kjs_events.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1baca46
  33. 19 Mar, 2006 1 commit
  34. 06 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Maciej. · 8d1badc7
      darin authored
              - 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
      8d1badc7
  35. 16 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Eric and Justin. · 85c3a50e
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7310
                fix leaks by using RefPtr more
      
              * bindings/objc/DOM.mm:
              (-[DOMDocument adoptNode:]):
              (-[DOMDocument createElement:]):
              (-[DOMDocument createDocumentFragment]):
              (-[DOMDocument createTextNode:]):
              (-[DOMDocument createComment:]):
              (-[DOMDocument createCDATASection:]):
              (-[DOMDocument createProcessingInstruction::]):
              (-[DOMDocument createEntityReference:]):
              (-[DOMDocument importNode::]):
              (-[DOMDocument createElementNS::]):
              (-[DOMDocument createRange]):
              (-[DOMDocument createCSSStyleDeclaration]):
              (-[DOMDocument createNodeIterator::::]):
              (-[DOMDocument createTreeWalker::::]):
              * bindings/objc/DOMCSS.mm:
              (-[DOMCSSStyleDeclaration getPropertyCSSValue:]):
              * bindings/objc/DOMEvents.mm:
              (-[DOMDocument createEvent:]):
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame):
              (WebCore::MacFrame::freeClipboard):
              (WebCore::MacFrame::setView):
              (WebCore::MacFrame::wheelEvent):
              (WebCore::MacFrame::openURLFromPageCache):
              (WebCore::MacFrame::mouseDownViewIfStillGood):
              (WebCore::MacFrame::khtmlMouseMoveEvent):
              (WebCore::MacFrame::dispatchCPPEvent):
              (WebCore::MacFrame::mouseDown):
              (WebCore::MacFrame::mouseDragged):
              (WebCore::MacFrame::mouseUp):
              (WebCore::MacFrame::mouseMoved):
              (WebCore::MacFrame::sendContextMenuEvent):
              (WebCore::MacFrame::dispatchDragSrcEvent):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge convertToDOMRange:]):
              (-[WebCoreFrameBridge convertNSRangeToDOMRange:]):
              (-[WebCoreFrameBridge selectNSRange:]):
              (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
              (-[WebCoreFrameBridge typingStyle]):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
              * css/css_computedstyle.cpp:
              (WebCore::CSSComputedStyleDeclarationImpl::CSSComputedStyleDeclarationImpl):
              (WebCore::CSSComputedStyleDeclarationImpl::cssText):
              (WebCore::CSSComputedStyleDeclarationImpl::setCssText):
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyValue):
              (WebCore::CSSComputedStyleDeclarationImpl::removeProperty):
              (WebCore::CSSComputedStyleDeclarationImpl::setProperty):
              (WebCore::CSSComputedStyleDeclarationImpl::item):
              (WebCore::CSSComputedStyleDeclarationImpl::copyInheritableProperties):
              (WebCore::CSSComputedStyleDeclarationImpl::copy):
              (WebCore::CSSComputedStyleDeclarationImpl::makeMutable):
              * css/css_computedstyle.h:
              * css/css_grammar.y:
              * css/css_ruleimpl.cpp:
              (WebCore::CSSStyleRuleImpl::~CSSStyleRuleImpl):
              (WebCore::CSSStyleRuleImpl::setDeclaration):
              * css/css_ruleimpl.h:
              (DOM::CSSStyleRuleImpl::style):
              (DOM::CSSStyleRuleImpl::declaration):
              * css/css_valueimpl.cpp:
              (WebCore::propertyID):
              (WebCore::quoteStringIfNeeded):
              (WebCore::CSSStyleDeclarationImpl::getPropertyCSSValue):
              (WebCore::CSSStyleDeclarationImpl::getPropertyValue):
              (WebCore::CSSStyleDeclarationImpl::getPropertyPriority):
              (WebCore::CSSStyleDeclarationImpl::getPropertyShorthand):
              (WebCore::CSSStyleDeclarationImpl::isPropertyImplicit):
              (WebCore::CSSStyleDeclarationImpl::setProperty):
              (WebCore::CSSStyleDeclarationImpl::removeProperty):
              (WebCore::CSSStyleDeclarationImpl::isPropertyName):
              (WebCore::CSSMutableStyleDeclarationImpl::getPropertyValue):
              (WebCore::CSSMutableStyleDeclarationImpl::get4Values):
              (WebCore::CSSMutableStyleDeclarationImpl::getShortHandValue):
              (WebCore::CSSMutableStyleDeclarationImpl::getPropertyCSSValue):
              (WebCore::CSSMutableStyleDeclarationImpl::removeProperty):
              (WebCore::CSSMutableStyleDeclarationImpl::setProperty):
              (WebCore::CSSMutableStyleDeclarationImpl::setStringProperty):
              (WebCore::CSSMutableStyleDeclarationImpl::setImageProperty):
              (WebCore::CSSMutableStyleDeclarationImpl::parseDeclaration):
              (WebCore::CSSMutableStyleDeclarationImpl::setLengthProperty):
              (WebCore::CSSMutableStyleDeclarationImpl::item):
              (WebCore::CSSMutableStyleDeclarationImpl::cssText):
              (WebCore::CSSMutableStyleDeclarationImpl::setCssText):
              (WebCore::CSSMutableStyleDeclarationImpl::copyBlockProperties):
              (WebCore::CSSStyleDeclarationImpl::copyPropertiesInSet):
              (WebCore::CSSMutableStyleDeclarationImpl::removePropertiesInSet):
              (WebCore::CSSMutableStyleDeclarationImpl::makeMutable):
              (WebCore::CSSMutableStyleDeclarationImpl::copy):
              (WebCore::CSSInheritedValueImpl::cssText):
              (WebCore::CSSInitialValueImpl::cssText):
              (WebCore::CSSValueListImpl::append):
              (WebCore::CSSValueListImpl::cssText):
              (WebCore::CSSPrimitiveValueImpl::CSSPrimitiveValueImpl):
              (WebCore::CSSPrimitiveValueImpl::cleanup):
              (WebCore::CSSPrimitiveValueImpl::setStringValue):
              (WebCore::CSSPrimitiveValueImpl::getStringValue):
              (WebCore::CSSPrimitiveValueImpl::parseString):
              (WebCore::CSSPrimitiveValueImpl::cssText):
              (WebCore::CSSImageValueImpl::CSSImageValueImpl):
              (WebCore::CSSBorderImageValueImpl::CSSBorderImageValueImpl):
              (WebCore::CSSBorderImageValueImpl::cssText):
              (WebCore::FontFamilyValueImpl::FontFamilyValueImpl):
              (WebCore::FontFamilyValueImpl::cssText):
              (WebCore::FontValueImpl::cssText):
              (WebCore::ShadowValueImpl::ShadowValueImpl):
              (WebCore::ShadowValueImpl::cssText):
              (WebCore::CSSProperty::cssText):
              * css/css_valueimpl.h:
              (WebCore::CSSValueImpl::setCssText):
              (WebCore::CSSValueListImpl::item):
              (WebCore::CSSPrimitiveValueImpl::getFloatValue):
              (WebCore::CSSPrimitiveValueImpl::getCounterValue):
              (WebCore::CSSPrimitiveValueImpl::getRectValue):
              (WebCore::CSSPrimitiveValueImpl::getRGBColorValue):
              (WebCore::CSSPrimitiveValueImpl::getPairValue):
              (WebCore::CSSPrimitiveValueImpl::getDashboardRegionValue):
              (WebCore::CSSPrimitiveValueImpl::):
              (WebCore::CSSQuirkPrimitiveValueImpl::CSSQuirkPrimitiveValueImpl):
              (WebCore::CounterImpl::identifier):
              (WebCore::CounterImpl::listStyle):
              (WebCore::CounterImpl::separator):
              (WebCore::RectImpl::top):
              (WebCore::RectImpl::right):
              (WebCore::RectImpl::bottom):
              (WebCore::RectImpl::left):
              (WebCore::RectImpl::setTop):
              (WebCore::RectImpl::setRight):
              (WebCore::RectImpl::setBottom):
              (WebCore::RectImpl::setLeft):
              (WebCore::PairImpl::first):
              (WebCore::PairImpl::second):
              (WebCore::PairImpl::setFirst):
              (WebCore::PairImpl::setSecond):
              (WebCore::DashboardRegionImpl::DashboardRegionImpl):
              (WebCore::FontFamilyValueImpl::fontName):
              (WebCore::CSSProperty::CSSProperty):
              (WebCore::CSSProperty::value):
              (WebCore::CSSMutableStyleDeclarationImpl::setNode):
              (WebCore::CSSMutableStyleDeclarationImpl::setProperty):
              (WebCore::CSSMutableStyleDeclarationImpl::removeProperty):
              * css/cssparser.cpp:
              (CSSParser::createStyleDeclaration):
              (CSSParser::parseDashboardRegions):
              * css/cssparser.h:
              (WebCore::Value::):
              (WebCore::qString):
              (WebCore::domString):
              (WebCore::atomicString):
              (WebCore::ValueList::current):
              (WebCore::ValueList::next):
              (WebCore::CSSParser::current):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * dom/DOMImplementationImpl.cpp:
              (DOM::DOMImplementationImpl::createDocument):
              (DOM::DOMImplementationImpl::instance):
              * dom/DOMImplementationImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl):
              (WebCore::DocumentImpl::~DocumentImpl):
              (WebCore::DocumentImpl::setDocType):
              (WebCore::DocumentImpl::createElement):
              (WebCore::DocumentImpl::createDocumentFragment):
              (WebCore::DocumentImpl::createTextNode):
              (WebCore::DocumentImpl::createComment):
              (WebCore::DocumentImpl::createCDATASection):
              (WebCore::DocumentImpl::createProcessingInstruction):
              (WebCore::DocumentImpl::createEntityReference):
              (WebCore::DocumentImpl::createEditingTextNode):
              (WebCore::DocumentImpl::createCSSStyleDeclaration):
              (WebCore::DocumentImpl::importNode):
              (WebCore::DocumentImpl::adoptNode):
              (WebCore::DocumentImpl::createElementNS):
              (WebCore::DocumentImpl::setTitle):
              (WebCore::DocumentImpl::createRange):
              (WebCore::DocumentImpl::createNodeIterator):
              (WebCore::DocumentImpl::createTreeWalker):
              (WebCore::DocumentImpl::setStyleSheet):
              (WebCore::DocumentImpl::setHoverNode):
              (WebCore::DocumentImpl::setActiveNode):
              (WebCore::DocumentImpl::setFocusNode):
              (WebCore::DocumentImpl::defaultView):
              (WebCore::DocumentImpl::createEvent):
              (WebCore::DocumentImpl::setHTMLWindowEventListener):
              (WebCore::DocumentImpl::addWindowEventListener):
              (WebCore::DocumentImpl::createHTMLEventListener):
              (WebCore::DocumentImpl::images):
              (WebCore::DocumentImpl::applets):
              (WebCore::DocumentImpl::embeds):
              (WebCore::DocumentImpl::objects):
              (WebCore::DocumentImpl::links):
              (WebCore::DocumentImpl::forms):
              (WebCore::DocumentImpl::anchors):
              (WebCore::DocumentImpl::all):
              (WebCore::DocumentImpl::windowNamedItems):
              (WebCore::DocumentImpl::documentNamedItems):
              (WebCore::DocumentImpl::getElementsByName):
              * dom/DocumentImpl.h:
              (WebCore::DocumentImpl::realDocType):
              (WebCore::DocumentImpl::createAttribute):
              (WebCore::DocumentImpl::title):
              (WebCore::DocumentImpl::styleSelector):
              (WebCore::DocumentImpl::setRestoreState):
              (WebCore::DocumentImpl::restoreState):
              (WebCore::DocumentImpl::view):
              (WebCore::DocumentImpl::docLoader):
              (WebCore::DocumentImpl::tokenizer):
              (WebCore::DocumentImpl::focusNode):
              (WebCore::DocumentImpl::hoverNode):
              (WebCore::DocumentImpl::activeNode):
              (WebCore::DocumentImpl::policyBaseURL):
              (WebCore::DocumentImpl::setPolicyBaseURL):
              (WebCore::DocumentImpl::):
              (WebCore::DocumentImpl::transformSourceDocument):
              (WebCore::DocumentImpl::domTreeVersion):
              (WebCore::DocumentImpl::decoder):
              * dom/NodeListImpl.cpp:
              (DOM::NodeListImpl::NodeListImpl):
              (DOM::NodeListImpl::~NodeListImpl):
              (DOM::NodeListImpl::recursiveLength):
              (DOM::NodeListImpl::recursiveItem):
              (DOM::NodeListImpl::itemById):
              * dom/NodeListImpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::RegisteredEventListener::RegisteredEventListener):
              * dom/dom2_eventsimpl.h:
              (WebCore::operator!=):
              * dom/dom2_traversalimpl.cpp:
              (DOM::TraversalImpl::TraversalImpl):
              (DOM::NodeIteratorImpl::NodeIteratorImpl):
              (DOM::TreeWalkerImpl::TreeWalkerImpl):
              * dom/dom2_traversalimpl.h:
              (WebCore::TraversalImpl::root):
              (WebCore::TraversalImpl::filter):
              (WebCore::NodeIteratorImpl::referenceNode):
              (WebCore::NodeIteratorImpl::setPointerBeforeReferenceNode):
              (WebCore::NodeIteratorImpl::setDetached):
              (WebCore::NodeIteratorImpl::document):
              (WebCore::TreeWalkerImpl::currentNode):
              * dom/dom_position.cpp:
              (WebCore::Position::computedStyle):
              * dom/dom_position.h:
              * dom/xml_tokenizer.cpp:
              (WebCore::XMLTokenizer::insertErrorMessageBlock):
              * editing/ApplyStyleCommand.cpp:
              (WebCore::createFontElement):
              (WebCore::createStyleSpanElement):
              (WebCore::ApplyStyleCommand::ApplyStyleCommand):
              (WebCore::ApplyStyleCommand::updateStartEnd):
              (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
              (WebCore::ApplyStyleCommand::extractTextDecorationStyle):
              (WebCore::ApplyStyleCommand::extractAndNegateTextDecorationStyle):
              (WebCore::ApplyStyleCommand::applyTextDecorationStyle):
              (WebCore::ApplyStyleCommand::removeInlineStyle):
              (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
              (WebCore::ApplyStyleCommand::computedFontSize):
              * editing/ApplyStyleCommand.h:
              (WebCore::ApplyStyleCommand::style):
              * editing/EditCommand.cpp:
              (WebCore::EditCommandPtr::setTypingStyle):
              (WebCore::EditCommand::setTypingStyle):
              (WebCore::EditCommand::styleAtPosition):
              * editing/EditCommand.h:
              (WebCore::EditCommand::document):
              (WebCore::EditCommand::typingStyle):
              * editing/InsertLineBreakCommand.cpp:
              (WebCore::InsertLineBreakCommand::InsertLineBreakCommand):
              (WebCore::InsertLineBreakCommand::doApply):
              * editing/InsertTextCommand.cpp:
              (WebCore::InsertTextCommand::prepareForTextInsertion):
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::computeAndStoreNodeDesiredStyle):
              (WebCore::NodeDesiredStyle::NodeDesiredStyle):
              (WebCore::ReplaceSelectionCommand::doApply):
              * editing/ReplaceSelectionCommand.h:
              (WebCore::NodeDesiredStyle::node):
              (WebCore::NodeDesiredStyle::style):
              (WebCore::ReplacementFragment::root):
              * editing/WrapContentsInDummySpanCommand.cpp:
              (WebCore::WrapContentsInDummySpanCommand::doApply):
              * editing/htmlediting.cpp:
              (WebCore::createDefaultParagraphElement):
              (WebCore::createBreakElement):
              * editing/markup.cpp:
              (WebCore::createFragmentFromMarkup):
              (WebCore::createParagraphContentsFromString):
              * editing/visible_text.cpp:
              (khtml::TextIterator::rangeFromLocationAndLength):
              * editing/visible_text.h:
              (WebCore::isCollapsibleWhitespace):
              (WebCore::WordAwareIterator::range):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::cssPropertyGetter):
              (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocumentProtoFunc::callAsFunction):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::HTMLSelectCollection::put):
              (KJS::OptionConstructorImp::construct):
              * khtml/html/HTMLElementImpl.cpp:
              (WebCore::HTMLElementImpl::createContextualFragment):
              (WebCore::HTMLElementImpl::setInnerHTML):
              (WebCore::HTMLElementImpl::setOuterHTML):
              (WebCore::HTMLElementImpl::setOuterText):
              * khtml/html/HTMLElementImpl.h:
              * khtml/html/HTMLNameCollectionImpl.cpp:
              (WebCore::HTMLNameCollectionImpl::HTMLNameCollectionImpl):
              (WebCore::HTMLNameCollectionImpl::traverseNextItem):
              * khtml/html/HTMLNameCollectionImpl.h:
              * khtml/html/html_documentimpl.cpp:
              (WebCore::HTMLDocumentImpl::createElement):
              * khtml/html/html_documentimpl.h:
              (WebCore::HTMLDocumentImpl::collectionInfo):
              * khtml/html/htmlfactory.cpp:
              (DOM::htmlConstructor):
              (DOM::headConstructor):
              (DOM::bodyConstructor):
              (DOM::baseConstructor):
              (DOM::linkConstructor):
              (DOM::metaConstructor):
              (DOM::styleConstructor):
              (DOM::titleConstructor):
              (DOM::frameConstructor):
              (DOM::framesetConstructor):
              (DOM::iframeConstructor):
              (DOM::formConstructor):
              (DOM::buttonConstructor):
              (DOM::inputConstructor):
              (DOM::isindexConstructor):
              (DOM::fieldsetConstructor):
              (DOM::labelConstructor):
              (DOM::legendConstructor):
              (DOM::optgroupConstructor):
              (DOM::optionConstructor):
              (DOM::selectConstructor):
              (DOM::textareaConstructor):
              (DOM::dlConstructor):
              (DOM::ulConstructor):
              (DOM::olConstructor):
              (DOM::dirConstructor):
              (DOM::menuConstructor):
              (DOM::liConstructor):
              (DOM::blockquoteConstructor):
              (DOM::divConstructor):
              (DOM::headingConstructor):
              (DOM::hrConstructor):
              (DOM::paragraphConstructor):
              (DOM::preConstructor):
              (DOM::basefontConstructor):
              (DOM::fontConstructor):
              (DOM::modConstructor):
              (DOM::anchorConstructor):
              (DOM::imageConstructor):
              (DOM::mapConstructor):
              (DOM::areaConstructor):
              (DOM::canvasConstructor):
              (DOM::appletConstructor):
              (DOM::embedConstructor):
              (DOM::objectConstructor):
              (DOM::paramConstructor):
              (DOM::scriptConstructor):
              (DOM::tableConstructor):
              (DOM::tableCaptionConstructor):
              (DOM::tableColConstructor):
              (DOM::tableRowConstructor):
              (DOM::tableCellConstructor):
              (DOM::tableSectionConstructor):
              (DOM::brConstructor):
              (DOM::quoteConstructor):
              (DOM::marqueeConstructor):
              (DOM::HTMLElementFactory::createHTMLElement):
              * khtml/html/htmlfactory.h:
              * khtml/html/htmlparser.cpp:
              (HTMLParser::parseToken):
              (HTMLParser::textCreateErrorCheck):
              (HTMLParser::commentCreateErrorCheck):
              (HTMLParser::headCreateErrorCheck):
              (HTMLParser::bodyCreateErrorCheck):
              (HTMLParser::framesetCreateErrorCheck):
              (HTMLParser::iframeCreateErrorCheck):
              (HTMLParser::formCreateErrorCheck):
              (HTMLParser::isindexCreateErrorCheck):
              (HTMLParser::selectCreateErrorCheck):
              (HTMLParser::ddCreateErrorCheck):
              (HTMLParser::dtCreateErrorCheck):
              (HTMLParser::nestedCreateErrorCheck):
              (HTMLParser::nestedStyleCreateErrorCheck):
              (HTMLParser::tableCellCreateErrorCheck):
              (HTMLParser::tableSectionCreateErrorCheck):
              (HTMLParser::noembedCreateErrorCheck):
              (HTMLParser::noframesCreateErrorCheck):
              (HTMLParser::noscriptCreateErrorCheck):
              (HTMLParser::mapCreateErrorCheck):
              (HTMLParser::getNode):
              * khtml/html/htmlparser.h:
              * khtml/html/htmltokenizer.cpp:
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::processToken):
              * khtml/html/htmltokenizer.h:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::createSVGEventListener):
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              (SVGDOMImplementationImpl::createDocumentType):
              (SVGDOMImplementationImpl::createDocument):
              (SVGDOMImplementationImpl::createCSSStyleSheet):
              * ksvg2/svg/SVGDOMImplementationImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::createElement):
              (WebCore::SVGDocumentImpl::dispatchZoomEvent):
              (WebCore::SVGDocumentImpl::dispatchKeyEvent):
              (WebCore::SVGDocumentImpl::dispatchUIEvent):
              (WebCore::SVGDocumentImpl::dispatchMouseEvent):
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGElementImpl.cpp:
              (WebCore::SVGElementImpl::addSVGEventListener):
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              (WebCore::SVGSVGElementImpl::addSVGWindowEventListner):
              * page/Frame.cpp:
              (WebCore::Frame::view):
              (WebCore::Frame::begin):
              (WebCore::Frame::computeAndSetTypingStyle):
              (WebCore::Frame::selectionHasStyle):
              (WebCore::Frame::selectionStartHasStyle):
              (WebCore::Frame::selectionStartStylePropertyValue):
              (WebCore::Frame::selectionComputedStyle):
              (WebCore::Frame::forceLayout):
              (WebCore::Frame::sendResizeEvent):
              (WebCore::Frame::sendScrollEvent):
              (WebCore::Frame::clearTimers):
              (WebCore::Frame::styleForSelectionStart):
              * page/FramePrivate.h:
              * page/FrameTree.h:
              (WebCore::FrameTree::name):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85c3a50e
  36. 16 Jan, 2006 1 commit
    • hyatt's avatar
      Move the Objective-C dom bindings from kwq to bindings/objc. · e3d1f4a2
      hyatt authored
              Reviewed by eseidel
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings: Added.
              * bindings/js: Added.
              * bindings/objc: Added.
              * bindings/objc/DOM.h: Added.
              * bindings/objc/DOM.mm: Added.
              * bindings/objc/DOMCSS.h: Added.
              * bindings/objc/DOMCSS.mm: Added.
              * bindings/objc/DOMCore.h: Added.
              * bindings/objc/DOMEvents.h: Added.
              * bindings/objc/DOMEvents.mm: Added.
              * bindings/objc/DOMEventsInternal.h: Added.
              * bindings/objc/DOMExtensions.h: Added.
              * bindings/objc/DOMHTML.h: Added.
              * bindings/objc/DOMHTML.mm: Added.
              * bindings/objc/DOMHTMLInternal.h: Added.
              * bindings/objc/DOMInternal.h: Added.
              * bindings/objc/DOMInternal.mm: Added.
              * bindings/objc/DOMPrivate.h: Added.
              * bindings/objc/DOMRange.h: Added.
              * bindings/objc/DOMStylesheets.h: Added.
              * bindings/objc/DOMTraversal.h: Added.
              * bindings/objc/DOMUtility.mm: Added.
              * bindings/objc/DOMViews.h: Added.
              * bindings/objc/DOMViews.mm: Added.
              * bindings/objc/DOMViewsInternal.h: Added.
              * kwq/DOM-CSS.mm: Removed.
              * kwq/DOM.h: Removed.
              * kwq/DOM.mm: Removed.
              * kwq/DOMCSS.h: Removed.
              * kwq/DOMCore.h: Removed.
              * kwq/DOMEvents.h: Removed.
              * kwq/DOMEvents.mm: Removed.
              * kwq/DOMEventsInternal.h: Removed.
              * kwq/DOMExtensions.h: Removed.
              * kwq/DOMHTML.h: Removed.
              * kwq/DOMHTML.mm: Removed.
              * kwq/DOMHTMLInternal.h: Removed.
              * kwq/DOMInternal.h: Removed.
              * kwq/DOMInternal.mm: Removed.
              * kwq/DOMPrivate.h: Removed.
              * kwq/DOMRange.h: Removed.
              * kwq/DOMStylesheets.h: Removed.
              * kwq/DOMTraversal.h: Removed.
              * kwq/DOMUtility.mm: Removed.
              * kwq/DOMViews.h: Removed.
              * kwq/DOMViews.mm: Removed.
              * kwq/DOMViewsInternal.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e3d1f4a2
  37. 12 Jan, 2006 1 commit
    • eseidel's avatar
      2006-01-12 Eric Seidel <eseidel@apple.com> · fec1cc82
      eseidel authored
              Reviewed by anders & mjs.
      
              Split dom_docimpl.* out into separate files (one per class):
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6502
      
              * ForwardingHeaders/kdom/core/DOMImplementationImpl.h: Removed.
              * ForwardingHeaders/kdom/core/DocumentImpl.h: Removed.
              * ForwardingHeaders/kdom/core/DocumentTypeImpl.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/WebCoreBridge.mm:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/RenderSVGText.h:
              * khtml/css/css_base.cpp:
              * khtml/css/css_computedstyle.cpp:
              * khtml/css/css_ruleimpl.cpp:
              * khtml/css/css_valueimpl.cpp:
              * khtml/css/cssparser.cpp:
              * khtml/css/parser.y:
              * khtml/ecma/XSLTProcessor.cpp:
              * khtml/ecma/domparser.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/jsediting.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/markup.h:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_text.cpp:
              * khtml/editing/visible_units.cpp:
              * khtml/html/HTMLGenericFormElementImpl.cpp:
              * khtml/html/HTMLInputElementImpl.cpp:
              * khtml/html/HTMLKeygenElementImpl.cpp:
              * khtml/html/HTMLLabelElementImpl.cpp:
              * khtml/html/HTMLOptionElementImpl.cpp:
              * khtml/html/HTMLSelectElementImpl.cpp:
              * khtml/html/HTMLTextAreaElementImpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_documentimpl.h:
              * khtml/html/html_listimpl.cpp:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/htmlfactory.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              * khtml/misc/Cache.cpp:
              * khtml/misc/DocLoader.cpp:
              * khtml/rendering/InlineTextBox.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/render_applet.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_br.cpp:
              * khtml/rendering/render_button.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_container.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_inline.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_list.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_theme.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/xml/DOMImplementationImpl.cpp: Added.
              * khtml/xml/DOMImplementationImpl.h: Added.
              * khtml/xml/DocumentFragmentImpl.cpp: Added.
              * khtml/xml/DocumentFragmentImpl.h: Added.
              * khtml/xml/DocumentImpl.cpp: Added.
              (DocumentImpl::setDocType):
              (DocumentImpl::getElementsByName):
              * khtml/xml/DocumentImpl.h: Added.
              * khtml/xml/DocumentTypeImpl.cpp: Added.
              * khtml/xml/DocumentTypeImpl.h: Added.
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom2_rangeimpl.cpp:
              * khtml/xml/dom2_traversalimpl.cpp:
              * khtml/xml/dom2_viewsimpl.cpp:
              * khtml/xml/dom_docimpl.cpp: Removed.
              * khtml/xml/dom_docimpl.h: Removed.
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_textimpl.cpp:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGAElementImpl.cpp:
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              * ksvg2/svg/SVGClipPathElementImpl.cpp:
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.h:
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGElementImpl.cpp:
              * ksvg2/svg/SVGFEImageElementImpl.cpp:
              * ksvg2/svg/SVGGradientElementImpl.cpp:
              * ksvg2/svg/SVGHelper.cpp:
              * ksvg2/svg/SVGPatternElementImpl.cpp:
              * ksvg2/svg/SVGPolyElementImpl.cpp:
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              * ksvg2/svg/SVGStopElementImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.cpp:
              * ksvg2/svg/SVGStyledElementImpl.cpp:
              * ksvg2/svg/SVGUseElementImpl.cpp:
              * kwq/DOM-CSS.mm:
              * kwq/DOM.mm:
              * kwq/DOMEvents.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              * kwq/DOMViews.mm:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQSlot.mm:
              * page/Frame.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fec1cc82
  38. 03 Oct, 2005 1 commit
    • mjs's avatar
      JavaScriptCore: · b64c50a2
      mjs authored
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	A number of optimizations to the new threadsafe malloc that make it actually as fast
      	as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc.
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
      	via a private inline operator new that is now included into every file via config.h.
      
      	- tweaked some of the numeric parameters for size classes and amount of wasted memory
      	allowed per allocation - this saves on memory use and consequently improves speed.
      
      	- so long as the allocator is not being used on background threads, get the per-thread
      	cache from a global variable instead of from pthread_getspecific, since the latter is slow.
      
      	- inline more functions, and force the ones GCC refuses to inline with
      	attribute(always_inline), nearly all of these have one call site so inlining them has
      	to be a win.
      
      	- use some tricks to calculate allocation size more efficiently and fewer times for small
      	allocations, to avoid hitting the huge size table array.
      
      	- avoid hitting the per-thread cache on code paths that don't need it.
      
      	- implement inline assembly version of spinlock for PowerPC (was already done for x86)
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_class.cpp:
              * bindings/c/c_instance.cpp:
              * bindings/c/c_runtime.cpp:
              * bindings/c/c_utility.cpp:
              * bindings/jni/jni_class.cpp:
              * bindings/jni/jni_instance.cpp:
              * bindings/jni/jni_jsobject.cpp:
              * bindings/jni/jni_objc.mm:
              * bindings/jni/jni_runtime.cpp:
              * bindings/jni/jni_utility.cpp:
              * bindings/npruntime.cpp:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.cpp:
              * bindings/runtime_array.cpp:
              * bindings/runtime_method.cpp:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.cpp:
              * bindings/testbindings.cpp:
              * bindings/testbindings.mm:
              * kjs/array_object.cpp:
              (ArrayInstanceImp::ArrayInstanceImp):
              (ArrayInstanceImp::~ArrayInstanceImp):
              (ArrayInstanceImp::resizeStorage):
              * kjs/bool_object.cpp:
              * kjs/collector.cpp:
              (KJS::Collector::registerThread):
              * kjs/config.h:
              * kjs/debugger.cpp:
              * kjs/error_object.cpp:
              * kjs/function.cpp:
              * kjs/function_object.cpp:
              * kjs/identifier.cpp:
              (KJS::Identifier::rehash):
              * kjs/internal.cpp:
              (KJS::Parser::saveNewNode):
              (KJS::clearNewNodes):
              * kjs/interpreter.cpp:
              * kjs/lexer.cpp:
              (Lexer::doneParsing):
              (Lexer::makeIdentifier):
              (Lexer::makeUString):
              * kjs/list.cpp:
              * kjs/math_object.cpp:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/nodes2string.cpp:
              * kjs/number_object.cpp:
              (integer_part_noexp):
              (char_sequence):
              * kjs/object.cpp:
              * kjs/object_object.cpp:
              * kjs/property_map.cpp:
              * kjs/property_slot.cpp:
              * kjs/protected_values.cpp:
              (KJS::ProtectedValues::rehash):
              * kjs/reference.cpp:
              * kjs/reference_list.cpp:
              * kjs/regexp.cpp:
              * kjs/regexp_object.cpp:
              * kjs/scope_chain.cpp:
              * kjs/scope_chain.h:
              * kjs/string_object.cpp:
              * kjs/testkjs.cpp:
              * kjs/ustring.h:
              * kjs/value.cpp:
              * kxmlcore/Assertions.mm:
              * kxmlcore/FastMalloc.cpp:
              (KXMLCore::InitSizeClasses):
              (KXMLCore::DLL_IsEmpty):
              (KXMLCore::DLL_Prepend):
              (KXMLCore::TCMalloc_Central_FreeList::Insert):
              (KXMLCore::TCMalloc_Central_FreeList::Remove):
              (KXMLCore::TCMalloc_Central_FreeList::Populate):
              (KXMLCore::TCMalloc_ThreadCache::Allocate):
              (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
              (KXMLCore::fastMallocRegisterThread):
              (KXMLCore::TCMalloc_ThreadCache::GetCache):
              (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
              (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
              (KXMLCore::do_malloc):
              (KXMLCore::do_free):
              (KXMLCore::realloc):
              * kxmlcore/FastMalloc.h:
              (operator new):
              (operator delete):
              (operator new[]):
              (operator delete[]):
              * kxmlcore/HashTable.cpp:
              * kxmlcore/TCSpinLock.h:
              (TCMalloc_SpinLock::Lock):
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * kxmlcore/TCSystemAlloc.cpp:
      
      WebCore:
      
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
              via a private inline operator new that is now included into every file via config.h
      
              * WebCore.xcodeproj/project.pbxproj:
              * WebCorePrefix.h:
              * khtml/css/css_base.cpp:
              * khtml/css/css_base.h:
              * khtml/css/css_computedstyle.cpp:
              * khtml/css/css_ruleimpl.cpp:
              * khtml/css/css_stylesheetimpl.cpp:
              * khtml/css/css_valueimpl.cpp:
              * khtml/css/css_valueimpl.h:
              * khtml/css/csshelper.cpp:
              * khtml/css/cssparser.cpp:
              (ValueList::ValueList):
              (ValueList::~ValueList):
              (ValueList::addValue):
              (CSSParser::CSSParser):
              (CSSParser::~CSSParser):
              (CSSParser::setupParser):
              (CSSParser::addProperty):
              * khtml/css/cssstyleselector.cpp:
              * khtml/css/cssstyleselector.h:
              * khtml/dom/dom2_events.cpp:
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom_misc.cpp:
              * khtml/dom/dom_string.cpp:
              * khtml/ecma/domparser.cpp:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Gradient::~Gradient):
              (KJS::Gradient::addColorStop):
              (KJS::Gradient::colorStops):
              * khtml/ecma/kjs_navigator.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/break_blockquote_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_from_text_node_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/html_interchange.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_into_text_node_command.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/jsediting.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/remove_css_property_command.cpp:
              * khtml/editing/remove_node_attribute_command.cpp:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/set_node_attribute_command.cpp:
              * khtml/editing/split_element_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/split_text_node_containing_element.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_range.cpp:
              * khtml/editing/visible_text.cpp:
              (khtml::CircularSearchBuffer::~CircularSearchBuffer):
              (khtml::CircularSearchBuffer::CircularSearchBuffer):
              * khtml/editing/visible_units.cpp:
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_blockimpl.cpp:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_elementimpl.cpp:
              * khtml/html/html_formimpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              * khtml/html/html_listimpl.cpp:
              * khtml/html/html_miscimpl.cpp:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlfactory.cpp:
              * khtml/html/htmlnames.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::enlargeBuffer):
              (khtml::HTMLTokenizer::enlargeScriptBuffer):
              * khtml/khtml_events.cpp:
              * khtml/khtml_part.cpp:
              * khtml/khtmlview.cpp:
              * khtml/misc/arena.cpp:
              * khtml/misc/arena.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/formdata.cpp:
              * khtml/misc/helper.cpp:
              * khtml/misc/loader.cpp:
              * khtml/misc/stringit.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/break_lines.cpp:
              * khtml/rendering/font.cpp:
              * khtml/rendering/render_arena.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_br.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_canvasimage.cpp:
              (RenderCanvasImage::~RenderCanvasImage):
              (RenderCanvasImage::createDrawingContext):
              * khtml/rendering/render_container.cpp:
              * khtml/rendering/render_flexbox.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_image.cpp:
              * khtml/rendering/render_inline.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_list.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_style.cpp:
              * khtml/rendering/render_style.h:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_text.cpp:
              * khtml/rendering/render_theme.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/rendering/table_layout.cpp:
              * khtml/xbl/xbl_binding.cpp:
              * khtml/xbl/xbl_binding_manager.cpp:
              * khtml/xbl/xbl_docimpl.cpp:
              * khtml/xbl/xbl_protobinding.cpp:
              * khtml/xbl/xbl_protohandler.cpp:
              * khtml/xbl/xbl_protoimplementation.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xml/EventNames.cpp:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom2_rangeimpl.cpp:
              * khtml/xml/dom2_rangeimpl.h:
              * khtml/xml/dom2_traversalimpl.cpp:
              * khtml/xml/dom2_traversalimpl.h:
              * khtml/xml/dom2_viewsimpl.cpp:
              * khtml/xml/dom2_viewsimpl.h:
              * khtml/xml/dom_atomicstring.cpp:
              * khtml/xml/dom_docimpl.cpp:
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_qname.cpp:
              * khtml/xml/dom_stringimpl.cpp:
              * khtml/xml/dom_stringimpl.h:
              * khtml/xml/dom_textimpl.cpp:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * kwq/DOM-CSS.mm:
              * kwq/DOM.mm:
              * kwq/DOMEvents.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (DOMString::DOMString):
              * kwq/DOMUtility.mm:
              * kwq/DOMViews.mm:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQApplication.mm:
              * kwq/KWQArrayImpl.h:
              * kwq/KWQArrayImpl.mm:
              * kwq/KWQBuffer.mm:
              * kwq/KWQButton.mm:
              * kwq/KWQCString.mm:
              * kwq/KWQCharsets.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQCollection.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQCursor.mm:
              * kwq/KWQDateTime.mm:
              * kwq/KWQDictImpl.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQEvent.mm:
              * kwq/KWQExceptions.mm:
              * kwq/KWQFile.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFontFamily.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQFormData.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQGlobal.mm:
              * kwq/KWQGuardedPtr.mm:
              * kwq/KWQKCharsets.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKCookieJar.mm:
              * kwq/KWQKCursor.mm:
              * kwq/KWQKGlobal.mm:
              * kwq/KWQKGlobalSettings.mm:
              * kwq/KWQKHTMLFactory.mm:
              * kwq/KWQKHTMLPart.cpp:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHTMLView.mm:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKJob.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQKPartsEvent.mm:
              * kwq/KWQKPartsPart.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQKStandardDirs.mm:
              * kwq/KWQKStringHandler.mm:
              * kwq/KWQKURL.mm:
              (KURL::KURL):
              (KURL::decode_string):
              (KURL::parse):
              (KURL::encode_string):
              (encodeRelativeString):
              * kwq/KWQKWin.mm:
              * kwq/KWQKWinModule.mm:
              * kwq/KWQLabel.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLoader.mm:
              (KWQIsResponseURLEqualToURL):
              * kwq/KWQMapImpl.h:
              * kwq/KWQMapImpl.mm:
              * kwq/KWQMovie.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPaintDeviceMetrics.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPalette.mm:
              * kwq/KWQPen.mm:
              * kwq/KWQPixmap.mm:
              * kwq/KWQPoint.mm:
              * kwq/KWQPointArray.mm:
              * kwq/KWQPtrDictImpl.mm:
              * kwq/KWQPushButton.mm:
              * kwq/KWQRect.mm:
              * kwq/KWQRegExp.mm:
              * kwq/KWQRegion.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQSignal.mm:
              * kwq/KWQSignalStubs.mm:
              * kwq/KWQSize.mm:
              * kwq/KWQSlider.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.h:
              * kwq/KWQString.mm:
              (ALLOC_CHAR):
              (REALLOC_CHAR):
              (DELETE_CHAR):
              (ALLOC_QCHAR):
              (REALLOC_QCHAR):
              (DELETE_QCHAR):
              (_printQStringAllocationStatistics):
              (allocateHandle):
              (KWQStringData::operator new):
              (KWQStringData::operator delete):
              (freeHandle):
              * kwq/KWQStringList.mm:
              * kwq/KWQStyle.mm:
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextCodec.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQTextStream.mm:
              * kwq/KWQTextUtilities.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQValueListImpl.h:
              * kwq/KWQValueListImpl.mm:
              * kwq/KWQVariant.mm:
              * kwq/KWQVectorImpl.mm:
              (KWQVectorImpl::KWQVectorImpl):
              (KWQVectorImpl::~KWQVectorImpl):
              (KWQVectorImpl::clear):
              (KWQVectorImpl::resize):
              (KWQVectorImpl::assign):
              * kwq/KWQWMatrix.mm:
              * kwq/KWQWidget.mm:
              * kwq/KWQWindowWidget.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCache.mm:
              * kwq/WebCoreEncodings.mm:
              * kwq/WebCoreJavaScript.mm:
              * kwq/WebCoreScriptDebugger.mm:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/can-convert.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b64c50a2