1. 05 Nov, 2006 1 commit
    • darin's avatar
      Reviewed by Geoff. · 647be15c
      darin authored
              - more preparation for splitting up Frame into sub-pieces
              - removed unnecessary includes from Frame.h
      
              * page/Frame.h: Removed unneeded includes and forward declarations.
              Added additional forward declarations. Removed the constant
              NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
              Created sections of functions to be moved into Chrome, Editor,
              EventHandler, FrameLoader, SelectionController, and the Platform
              directory, as well as marking one function for deletion.
      
              * page/FramePrivate.h: Removed the definition of the constructor and
              destructor and removed unnecessary includes.
      
              * page/FrameView.h: Removed unneeded forward declarations and friend
              declarations. Created a section of functions and data to be moved into
              EventHandler.
      
              * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
              Created sections of functions and data to be moved into Chrome,
              Editor, EventHandler, FrameLoader, and the Platform directory.
      
              * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
              Removed unused methods areScrollbarsVisible,
              nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
      
              * page/Frame.cpp:
              (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
              to include KURL.h just for the KURL default constructor.
              (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
              (WebCore::FramePrivate::~FramePrivate): Ditto.
      
              * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
              booleans, scrollbarMoved and cleared funcitons.
              (WebCore::FrameView::clear): Moved the code from the cleared
              function in here.
              (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
              for changes to header.
      
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::xPosForVerticalArrowNavigation):
              Moved NoXPosForVerticalArrowNavigation into this file.
      
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_window.cpp:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/cssstyleselector.cpp:
              * dom/Document.cpp:
              * dom/Element.cpp:
              * dom/EventTargetNode.cpp:
              * dom/MouseRelatedEvent.cpp:
              * dom/XMLTokenizer.cpp:
              * html/HTMLBaseElement.cpp:
              * html/HTMLDocument.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFrameElementBase.cpp:
              * html/HTMLGenericFormElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLTokenizer.cpp:
              * loader/mac/FrameLoaderMac.mm:
              * page/PageState.cpp:
              * rendering/RenderApplet.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderTreeAsText.cpp:
              * xml/XSLTProcessor.cpp:
              Added includes as needed to keep compiling, since there are fewer
              includes in Frame.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      647be15c
  2. 29 Oct, 2006 1 commit
    • darin's avatar
      WebCore: · 5b2cbe11
      darin authored
              - did the do-webcore-rename renames, including a number of changes
                to the names of loader files (and WebResourceLoader -> ResourceLoader),
                jScript() to scriptProxy(), jScriptEnabled() to javaScriptEnabled(),
                and improvements to the names of decoder classes and their source
                files (Decoder -> TextResourceDecoder, StreamingTextDecoder -> TextCodec)
      
      WebKit:
      
              - update for the WebCore renames
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b2cbe11
  3. 20 Sep, 2006 1 commit
    • andersca's avatar
      2006-09-20 Anders Carlsson <acarlsson@apple.com> · 506828fc
      andersca authored
              Reviewed by Darin.
      
              Add String::split which returns a Vector of Strings and use it instead of 
              DeprecatedStringList.
              
              * bindings/js/kjs_events.cpp:
              (KJS::Clipboard::getValueProperty):
              * bindings/js/kjs_window.cpp:
              (KJS::parseModalDialogFeatures):
              * css/MediaList.cpp:
              (WebCore::MediaList::setMediaText):
              * dom/Clipboard.h:
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formData):
              * html/HTMLLinkElement.cpp:
              (WebCore::HTMLLinkElement::tokenizeRelAttribute):
              * platform/PlatformString.h:
              * platform/String.cpp:
              (WebCore::String::split):
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::types):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      506828fc
  4. 17 Sep, 2006 1 commit
    • andersca's avatar
      2006-09-17 Anders Carlsson <acarlsson@apple.com> · 9cf539a5
      andersca authored
              Reviewed by Brady.
      
              Add simplifyWhiteSpace and stripWhiteSpace to the String class. 
              Change the XSLT Parameter Map to use Strings instead of StringImpls.
              General cleanup.
      
              * bindings/js/JSXSLTProcessor.cpp:
              (KJS::XSLTProcessorProtoFunc::callAsFunction):
              * bindings/js/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              * bindings/js/kjs_window.cpp:
              (KJS::ScheduledAction::execute):
              * css/MediaList.cpp:
              (WebCore::MediaList::setMediaText):
              * dom/Document.cpp:
              (WebCore::Document::processHttpEquiv):
              * editing/ApplyStyleCommand.cpp:
              (WebCore::StyleChange::init):
              * html/HTMLDocument.cpp:
              (WebCore::parseDocTypeDeclaration):
              * html/HTMLLinkElement.cpp:
              (WebCore::HTMLLinkElement::parseMappedAttribute):
              * html/HTMLObjectElement.cpp:
              (WebCore::HTMLObjectElement::HTMLObjectElement):
              (WebCore::HTMLObjectElement::parseMappedAttribute):
              (WebCore::HTMLObjectElement::attach):
              (WebCore::HTMLObjectElement::setComplete):
              (WebCore::HTMLObjectElement::detach):
              (WebCore::HTMLObjectElement::recalcStyle):
              (WebCore::HTMLObjectElement::childrenChanged):
              (WebCore::HTMLObjectElement::isImageType):
              * html/HTMLObjectElement.h:
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::value):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::appendFormData):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::parseTag):
              * ksvg2/svg/SVGColor.cpp:
              (WebCore::SVGColor::setRGBColor):
              * ksvg2/svg/SVGDescElement.cpp:
              (WebCore::SVGDescElement::description):
              * platform/PlatformString.h:
              * platform/String.cpp:
              (WebCore::String::stripWhiteSpace):
              (WebCore::String::simplifyWhiteSpace):
              * platform/StringImpl.cpp:
              (WebCore::isSpace):
              (WebCore::parseLength):
              (WebCore::StringImpl::stripWhiteSpace):
              (WebCore::StringImpl::simplifyWhiteSpace):
              (WebCore::StringImpl::toInt):
              * platform/StringImpl.h:
              * platform/mac/ClipboardMac.mm:
              (WebCore::cocoaTypeFromMIMEType):
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::updateWidget):
              * xml/XPathFunctions.cpp:
              (WebCore::XPath::FunNormalizeSpace::doEvaluate):
              * xml/XPathGrammar.y:
              * xml/XPathStep.cpp:
              (WebCore::XPath::Step::nodeTestMatches):
              * xml/XSLStyleSheet.cpp:
              (WebCore::XSLStyleSheet::loadChildSheets):
              (WebCore::XSLStyleSheet::locateStylesheetSubResource):
              * xml/XSLTProcessor.cpp:
              (WebCore::xsltParamArrayFromParameterMap):
              (WebCore::XSLTProcessor::setParameter):
              (WebCore::XSLTProcessor::getParameter):
              (WebCore::XSLTProcessor::removeParameter):
              * xml/XSLTProcessor.h:
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::getStatusText):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9cf539a5
  5. 13 Aug, 2006 1 commit
    • mjs's avatar
      JavaScriptCore: · 308be5ab
      mjs authored
              Reviewed (and tweaked a little) by Maciej.
              
              - shrank the size of JSObject by 8 bytes and made the corresponding reduction to the cell size, resulting
              in a 1.2% speed improvement on JS iBench (and probably overall memory savings).
      
              This was done by removing _scope and _internalValue data members
              from JSObject and moving them only to the subclasses that actually
              make use of them.
              
              * kjs/object.cpp: 
              (KJS::JSObject::mark): No need to mark scope or internal value here.
              * kjs/object.h:
              (KJS::JSObject::JSObject): Don't initialize them.
              * kjs/JSWrapperObject.cpp: Added. New base class for object types that
              wrap primitive values (Number, String, Boolean, Date).
              (KJS::JSWrapperObject::mark): 
              * kjs/JSWrapperObject.h: Added.
              (KJS::JSWrapperObject::JSWrapperObject):
              (KJS::JSWrapperObject::internalValue):
              (KJS::JSWrapperObject::setInternalValue):
              * kjs/array_object.cpp:
              (ArrayPrototype::ArrayPrototype): Don't set useless internal value.
              * kjs/bool_object.cpp:
              (BooleanInstance::BooleanInstance): Inherit from JSWrapperObject.
              (BooleanProtoFunc::callAsFunction): Fixed to account for fact that not all
              JSObjects have an internal value.
              (BooleanObjectImp::construct): ditto.
              * kjs/bool_object.h:
              * kjs/collector.cpp: Lowered cell size to 48.
              (KJS::Collector::allocate): meaningless whitespace change
              * kjs/date_object.cpp:
              (KJS::DateInstance::DateInstance): Inherit from JSWrapperObject.
              (KJS::DateProtoFunc::callAsFunction): adjusted for move of internalValue
              (KJS::DateObjectImp::construct): ditto
              * kjs/date_object.h:
              * kjs/error_object.cpp:
              (ErrorPrototype::ErrorPrototype): don't set internal value
              * kjs/function.cpp: move _scope and related handling here
              (KJS::FunctionImp::mark): mark scope
              * kjs/function.h:
              (KJS::FunctionImp::scope): moved here from JSObject
              (KJS::FunctionImp::setScope): ditto
              * kjs/number_object.cpp:
              (NumberInstance::NumberInstance): inherit from JSWrapperObject
              (NumberProtoFunc::callAsFunction): adjusted
              (NumberObjectImp::construct): adjusted
              * kjs/number_object.h: shring RegExp-related objects a little
              * kjs/regexp_object.cpp:
              (RegExpPrototype::RegExpPrototype): Adjust for size tweaks
              (RegExpObjectImp::RegExpObjectImp): ditto
              * kjs/regexp_object.h:
              * kjs/string_object.cpp:
              (StringInstance::StringInstance): inherit from JSWrapperObject
              (StringProtoFunc::callAsFunction): adjusted
              * kjs/string_object.h:
              * JavaScriptCore.exp: Exported new methods as needed.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new files to build.
      
      WebCore:
      
              Reviewed (and tweaked a little) by Maciej.
              
              - shrank the size of JSObject by 8 bytes and made the corresponding reduction to the cell size, resulting
              in a 1.2% speed improvement on JS iBench (and probably overall memory savings).
      
              The WebCore part of this is to expect only FunctionImp to have a scope, not all JSObjects.
              
              * bindings/js/kjs_events.cpp:
              (KJS::JSLazyEventListener::parseCode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      308be5ab
  6. 09 Jul, 2006 1 commit
    • darin's avatar
      Reviewed by Tim Hatcher. · f4b05b29
      darin authored
              - put more into the WebCore namespace
              - removed unused code for plain text fields
      
              Put more classes, class templates, enums, functions, and constants into
              the WebCore namespace, including all the headers in the platform directory.
      
              Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
      
              Added some "WebCore::" qualifiers in a few places.
      
              Removed "uses WebCore::" in headers that we said we'd remove "when
              everything is in the WebCore namespace".
      
              * bindings/js/JSDOMParser.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bridge/History.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/FormDataMac.h:
              * bridge/mac/FormDataMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              * bridge/mac/WebCoreSettings.h:
              * css/CSSGrammar.y:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/MediaList.cpp:
              * css/cssstyleselector.h:
              * dom/Clipboard.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/XMLTokenizer.cpp:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/CompositeEditCommand.cpp:
              * editing/CompositeEditCommand.h:
              * editing/CreateLinkCommand.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/FormatBlockCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/IndentOutdentCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertListCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertTextCommand.cpp:
              * editing/InsertTextCommand.h:
              * editing/JSEditor.cpp:
              * editing/JSEditor.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.cpp:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.h:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/WrapContentsInDummySpanCommand.h:
              * editing/markup.cpp:
              * editing/markup.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLBodyElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDocument.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLLabelElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTablePartElement.cpp:
              * icon/IconDatabase.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGContainer.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/svgpathparser.cpp:
              * ksvg2/svg/svgpathparser.h:
              * loader/Cache.h:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.h:
              * page/FrameView.h:
              * page/Page.h:
              * page/Settings.h:
              * platform/AffineTransform.cpp:
              * platform/AffineTransform.h:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/CookieJar.h:
              * platform/DeprecatedCString.cpp:
              * platform/DeprecatedCString.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedPtrQueue.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FileButton.h:
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              * platform/IntSize.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/ListBox.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/Pen.h:
              * platform/PopUpButton.h:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SSLKeyGenerator.h:
              * platform/ScrollBar.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/Slider.h:
              * platform/StringImpl.h:
              * platform/TextBox.h:
              * platform/TextField.h:
              * platform/TextStream.cpp:
              * platform/TextStream.h:
              * platform/TransferJob.h:
              * platform/TransferJobClient.h:
              * platform/Widget.h:
              * platform/cg/AffineTransformCG.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/DeprecatedStringListMac.mm:
              * platform/mac/FontCacheMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/ListBoxMac.mm:
              * platform/mac/PopUpButtonMac.mm:
              * platform/mac/SSLKeyGeneratorMac.mm:
              * platform/mac/TextBoxMac.mm:
              * platform/mac/TextFieldMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.h:
              * rendering/bidi.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4b05b29
  7. 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
  8. 19 Jun, 2006 1 commit
  9. 18 Jun, 2006 1 commit
    • andersca's avatar
      JavaScriptCore: · db812fdd
      andersca authored
      2006-06-18  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Geoff.
      
              * kjs/interpreter.cpp:
              (KJS::TimeoutChecker::pauseTimeoutCheck):
              Do nothing if the timeout check hasn't been started.
              
              (KJS::TimeoutChecker::resumeTimeoutCheck):
              Do nothing if the timeout check hasn't been started.
              Use the right signal handler when unblocking.
              
              (KJS::Interpreter::handleTimeout):
              pause/resume the timeout check around the call to
              shouldInterruptScript().
              
      WebCore:
      
      2006-06-17  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Geoff.
      
              * bindings/js/kjs_binding.cpp:
              (KJS::ScriptInterpreter::ScriptInterpreter):
              Set the default script timeout.
              
              (KJS::ScriptInterpreter::shouldInterruptScript):
              New function which asks the frame if the script should be interrupted.
              
              * bindings/js/kjs_binding.h:
                      
              * bindings/js/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              * bindings/js/kjs_proxy.cpp:
              (WebCore::KJSProxy::evaluate):
              Add calls to startTimeoutCheck/stopTimeoutCheck
              
              * bindings/js/kjs_window.cpp:
              (KJS::WindowFunc::callAsFunction):
              Add calls to pauseTimeoutCheck/unpauseTimeoutCheck 
              
              (KJS::ScheduledAction::execute):
              Add calls to startTimeoutCheck/stopTimeoutCheck
              
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::shouldInterruptJavaScript):
              New function which asks the bridge if the script should be interrupted.
              
              * bridge/mac/WebCoreFrameBridge.h:
              * page/Frame.h:
              Add function declarations.
              
      WebKit:
      
      2006-06-18  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Geoff.
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge shouldInterruptJavaScript]):
              Ask the UI delegate if the script should be interrupted.
              
              * WebView/WebUIDelegatePrivate.h:
              Declare webViewShouldInterruptJavaScript: delegate method
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14904 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db812fdd
  10. 13 Jun, 2006 1 commit
    • darin's avatar
      LayoutTests: · cc6c79f2
      darin authored
              Reviewed by Geoff.
      
              - test for <rdar://problem/4585333> Changing location for weather on yahoo.com home page redirects to another page
      
              * fast/events/event-listener-html-non-html-confusion-expected.txt: Added.
              * fast/events/event-listener-html-non-html-confusion.html: Added.
      
      WebCore:
      
              Reviewed by Geoff.
      
              - fix <rdar://problem/4585333> Changing location for weather on yahoo.com home page redirects to another page
      
              This patch fixes a bug where the event listener cache does not distinguish
              HTML and non-HTML listeners. Incorrect behavior where stopPropagation also
              prevented default masked a case of this bug on the yahoo.com home page until
              we fixed bug 5180 on 2005-10-03.
      
              Test: fast/events/event-listener-html-non-html-confusion.html
      
              * bindings/js/kjs_window.h: Add additional listener maps for HTML event listeners.
      
              * bindings/js/kjs_window.cpp:
              (KJS::Window::~Window): Go through the additional maps when clearing the window object
              pointer in event listeners.
              (KJS::Window::getJSEventListener): Look in the HTML or non-HTML map depending on the
              argument passed.
              (KJS::Window::getJSUnprotectedEventListener): Ditto.
      
              * bindings/js/kjs_events.cpp:
              (KJS::JSUnprotectedEventListener::JSUnprotectedEventListener): Add to either the HTML
              or non-HTML map depending on the argument passed.
              (KJS::JSUnprotectedEventListener::~JSUnprotectedEventListener): Remove from either the
              HTML or non-HTML map depending on whether the HTML flag is set.
              (KJS::JSEventListener::JSEventListener): More of the same.
              (KJS::JSEventListener::~JSEventListener): Ditto.
              (KJS::JSLazyEventListener::parseCode): Same thing here. In a lazy event listener there
              is not a listener at construction time, thus the code here to put the listener into a
              map needs the HTML vs. non-HTML logic.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14856 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc6c79f2
  11. 15 May, 2006 1 commit
    • eseidel's avatar
      2006-05-15 Eric Seidel <eseidel@apple.com> · 8494362c
      eseidel authored
              Reviewed by Tim Hatcher.
      
              Split html_imageimpl.* into separate files (one per class).
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8929
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_html.cpp:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * dom/Document.cpp:
              * editing/JSEditor.cpp:
              * html/CanvasRenderingContext2D.cpp:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLAreaElement.cpp: Added.
              (WebCore::HTMLAreaElement::HTMLAreaElement):
              (WebCore::HTMLAreaElement::mapMouseEvent):
              (WebCore::HTMLAreaElement::getRect):
              (WebCore::HTMLAreaElement::getRegion):
              * html/HTMLAreaElement.h: Added.
              * html/HTMLCanvasElement.h:
              * html/HTMLDocument.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLImageElement.cpp: Added.
              (WebCore::HTMLImageElement::HTMLImageElement):
              * html/HTMLImageElement.h: Added.
              * html/HTMLImageLoader.cpp: Added.
              (WebCore::HTMLImageLoader::HTMLImageLoader):
              * html/HTMLImageLoader.h: Added.
              * html/HTMLInputElement.cpp:
              * html/HTMLMapElement.cpp: Added.
              (WebCore::HTMLMapElement::mapMouseEvent):
              (WebCore::HTMLMapElement::parseMappedAttribute):
              * html/HTMLMapElement.h: Added.
              * html/HTMLObjectElement.cpp:
              * html/HTMLParser.cpp:
              * html/html_imageimpl.cpp: Removed.
              * html/html_imageimpl.h: Removed.
              * ksvg2/misc/SVGImageLoader.h:
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject addChildrenToArray:]):
              * page/Frame.cpp:
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::nodeAtPoint):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8494362c
  12. 21 Apr, 2006 1 commit
    • ggaren's avatar
      LayoutTests: · 23e4afae
      ggaren authored
              Tests for global constants related to CSSRule, CSSValue, Event, and
              NodeFilter objects.
      
              * fast/dom/constants-expected.txt: Added.
              * fast/dom/constants.html: Added.
              * fast/dom/prototype-chain-expected.txt:
              * fast/dom/resources/stylesheet.css: Added.
              * fast/dom/xmlhttprequest-get-expected.txt:
      
      WebCore:
      
              Reviewed by Maciej.
      
              - Added autogeneration of JS bindings for CSSRule, CSSValue,
              Event, and NodeFilter.  
      
              - Made related prototype objects hold the relevant constants, to
              match Mozilla and the DOM 2 spec. (Previously, only the related
              constructor objects held those constants, in accordance with the
              DOM 3 spec.)
      
              - Fixed up remaining Windows build issues.
      
              * DerivedSources.make: Added new autogenerated files
              * WebCore.xcodeproj/project.pbxproj: ditto
              * bindings/js/kjs_css.cpp:
              (KJS::DOMCSSRule::classInfo):
              (KJS::DOMCSSRule::getOwnPropertySlot): scope call to classInfo()
              because it's virtual and DOMCSSRule has a derrived class now.
              (KJS::DOMCSSRule::put): ditto
              (KJS::DOMCSSRuleFunc::callAsFunction):
              (KJS::toJS):
              * bindings/js/kjs_css.h:
              * bindings/js/kjs_events.cpp:
              (KJS::toJS):
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
              (KJS::OptionConstructorImp::OptionConstructorImp):
              * bindings/js/kjs_traversal.cpp:
              (KJS::toJS):
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.cpp: 
              (KJS::Window::getValueProperty): added CSSValue global object
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * bindings/scripts/CodeGeneratorJS.pm: Changed generator to write
              constants to prototype objects (previously only wrote constants to
              constructor objects)
              * css/CSSPrimitiveValue.idl: Removed LegacyParent since CSSValue now
              exists in IDL
              * css/CSSRule.idl: Added.
              * css/CSSValue.idl: Added.
              * css/css_ruleimpl.h:
              (WebCore::CSSRule::):
              * css/css_valueimpl.h:
              * dom/Event.idl: Added.
              * dom/MutationEvent.idl: Removed LegacyParent since Event now exists
              in IDL
              * dom/NodeFilter.idl: Added.
              * dom/UIEvent.idl: Removed LegacyParent since event now exists in IDL
              * dom/dom2_eventsimpl.h:
              (WebCore::Event::):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      23e4afae
  13. 13 Apr, 2006 1 commit
    • ggaren's avatar
      JavaScriptCore: · 2f992b39
      ggaren authored
              Reviewed by Darin.
      
              * kjs/internal.cpp:
              (KJS::InterpreterImp::initGlobalObject): Add the built-in object
              prototype to the end of the global object's prototype chain instead of
              just blowing away its existing prototype. We need to do this because
              the window object has a meaningful prototype now.
      
      LayoutTests:
      
              Layout test for document.defaultView
      
              * fast/dom/defaultView-expected.txt: Added.
              * fast/dom/defaultView.html: Added.
              * fast/events/event-view-toString-expected.txt: Updated to reflect new
              prototype chain for defaultView.
      
      WebCore:
      
              Reviewed by Darin.
      
              - Fixed <rdar://problem/4478467> document.defaultView should return 
              the window object
              
              Also made part of the window object autogenerated by IDL file.
              
              * DerivedSources.make: Added /page to IDL file search path, added
              JSDOMWindow.h, removed kjs_views.lut.h
              * WebCore.xcodeproj/project.pbxproj: Added missing files, removed
              obsolete files
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.cpp:
              (WebCore::KJSProxy::initScriptIfNeeded):
              * bindings/js/kjs_views.cpp: Removed.
              * bindings/js/kjs_views.h: Removed.
              * bindings/js/kjs_window.cpp: Removed document property -- it now
              belongs to JSDOMWindow. Added toJS and toDOMWindow.
              (KJS::Window::Window):
              (KJS::Window::impl):
              (KJS::Window::getValueProperty):
              (KJS::Window::clear): Added call to setPrototype to ensure
              that the prototype gets cleared during navigation. (Previously
              this wasn't an issue because the window object had no real prototype.)
              (WebCore::toJS):
              (WebCore::toDOMWindow):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * bindings/objc/DOMCSS.mm: Added NULL checks for the AbstractView
              (Presumably this is an issue after the window is closed.) Typedef-ed
              AbstractView as DOMWindow. I could have just replaced AbstractView
              with DOMWindow, but I think it's clearer to say, "There's this thing
              called the AbstractView, but really it's just the window."
              (-[DOMDocument getComputedStyle::]):
              (-[DOMDocument getMatchedCSSRules::]):
              * bindings/objc/DOMViews.mm:
              * bindings/objc/DOMViewsInternal.h:
              * bindings/scripts/CodeGeneratorJS.pm: Removed unused
              GetLegacyImplementationIncludes. Added support for DOMWindow and new
              "DoNotCache" attribute. Replaced C macros with text because (1) it
              makes the generated source easier to read and debug and (2) it made 
              it much easier to implement the DoNotCache attribute.
              * bindings/scripts/IDLParser.pm: Return a hash reference instead of
              a hash, because otherwise an interface with more than one attribute
              returns too many arguments to be processed.
              * bridge/mac/FrameMac.mm:
              * dom/AbstractView.cpp: Removed.
              * dom/AbstractView.h: Removed.
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::defaultView):
              * dom/Document.h:
              * dom/Document.idl:
              * dom/KeyboardEvent.idl:
              * dom/MouseEvent.idl:
              * dom/Position.cpp:
              * dom/UIEvent.idl:
              * dom/dom2_eventsimpl.h:
              * page/DOMWindow.cpp: Added.
              (WebCore::DOMWindow::DOMWindow):
              (WebCore::DOMWindow::frame):
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::document):
              (WebCore::DOMWindow::getComputedStyle):
              (WebCore::DOMWindow::getMatchedCSSRules):
              * page/DOMWindow.h: Added.
              * page/DOMWindow.idl: Added.
              * page/Frame.cpp:
              (WebCore::Frame::~Frame): Disconnect the new DOMWindow object in
              addition to the Window object. Maybe we can unify this in the future.
              (WebCore::Frame::tree):
              (WebCore::Frame::domWindow):
              * page/Frame.h:
              * page/FramePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f992b39
  14. 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
  15. 10 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Geoff. · 17fa870f
      darin authored
              - death to khtml/ecma, long live bindings/js
      
              * khtml/ecma: Removed. Moved all files to bindings/js.
      
              * bindings/js/JSDOMParser.cpp: Added.
              * bindings/js/JSDOMParser.h: Added.
              * bindings/js/JSXMLHttpRequest.cpp: Added.
              * bindings/js/JSXMLHttpRequest.h: Added.
              * bindings/js/JSXMLSerializer.cpp: Added.
              * bindings/js/JSXMLSerializer.h: Added.
              * bindings/js/JSXSLTProcessor.cpp: Added.
              * bindings/js/JSXSLTProcessor.h: Added.
              * bindings/js/kjs_binding.cpp: Added.
              * bindings/js/kjs_binding.h: Added.
              * bindings/js/kjs_css.cpp: Added.
              * bindings/js/kjs_css.h: Added.
              * bindings/js/kjs_dom.cpp: Added.
              * bindings/js/kjs_dom.h: Added.
              * bindings/js/kjs_events.cpp: Added.
              * bindings/js/kjs_events.h: Added.
              * bindings/js/kjs_html.cpp: Added.
              * bindings/js/kjs_html.h: Added.
              * bindings/js/kjs_navigator.cpp: Added.
              * bindings/js/kjs_navigator.h: Added.
              * bindings/js/kjs_proxy.cpp: Added.
              * bindings/js/kjs_proxy.h: Added.
              * bindings/js/kjs_traversal.cpp: Added.
              * bindings/js/kjs_traversal.h: Added.
              * bindings/js/kjs_views.cpp: Added.
              * bindings/js/kjs_views.h: Added.
              * bindings/js/kjs_window.cpp: Added.
              * bindings/js/kjs_window.h: Added.
      
              * DerivedSources.make: Removed khtml/ecma from directory list.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Moved files from
              khtml/ecma to bindings/js.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      17fa870f
  16. 02 Apr, 2006 1 commit
    • eseidel's avatar
      2006-04-02 Eric Seidel <eseidel@apple.com> · a6b011be
      eseidel authored
              Reviewed by andersca.
      
              Make WebCore safe against KJS::Node in JavaScriptCore private headers.
      
              * editing/ReplaceSelectionCommand.h:
              * khtml/ecma/JSXMLSerializer.cpp:
              (KJS::XMLSerializerProtoFunc::callAsFunction):
              * khtml/ecma/JSXSLTProcessor.cpp:
              (KJS::XSLTProcessorProtoFunc::callAsFunction):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::forgetDOMNodeForDocument):
              (KJS::ScriptInterpreter::putDOMNodeForDocument):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::DOMNode):
              (KJS::DOMNode::mark):
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMNodeProtoFunc::callAsFunction):
              (KJS::toNode):
              (KJS::DOMEventTargetNode::DOMEventTargetNode):
              (KJS::DOMDocumentProtoFunc::callAsFunction):
              (KJS::DOMElement::putValueProperty):
              (KJS::DOMElementProtoFunc::callAsFunction):
              (KJS::checkNodeSecurity):
              (KJS::toJS):
              (KJS::getRuntimeObject):
              (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
              (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSLazyEventListener::JSLazyEventListener):
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_html.cpp:
              (KJS::JSHTMLDocument::namedItemGetter):
              (KJS::JSHTMLElement::framesetNameGetter):
              (KJS::JSHTMLElement::getOwnPropertySlot):
              (KJS::JSHTMLElement::pushEventHandlerScope):
              (KJS::JSHTMLCollection::callAsFunction):
              (KJS::JSHTMLCollection::getNamedItems):
              (KJS::JSHTMLSelectCollection::put):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::put):
              * kwq/KWQPageState.mm:
              (-[KWQPageState WebCore::]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6b011be
  17. 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
  18. 23 Mar, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · 2ec969bc
      darin authored
              Reviewed by Maciej.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7726
                REGRESSION: orbitz calendar fails (JavaScript function serialization/parsing)
      
              * kjs/object.h: Take function name, as well as source URL and line number, when
              using the special overloaded construct for making functions.
              * kjs/object.cpp: (KJS::JSObject::construct): Ditto.
              * kjs/function_object.h: Ditto.
              * kjs/function_object.cpp: (FunctionObjectImp::construct): Pass a name when
              constructing the function rather than null. Use "anonymous" when making a
              function using the default function constructor.
      
              * kjs/nodes2string.cpp: (FuncDeclNode::streamTo): Put a line break just before
              a function declaration.
      
              - unrelated fix
      
              * kxmlcore/HashMapPtrSpec.h: Add missing needed friend declaration.
      
      LayoutTests:
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7726
                REGRESSION: orbitz calendar fails (JavaScript function serialization/parsing)
      
              * fast/js/resources/function-names.js: Added.
              * fast/js/function-names.html: Generated.
              * fast/js/function-names-expected.txt: Generated.
      
      WebCore:
      
              Reviewed by Maciej.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7726
                REGRESSION: orbitz calendar fails (JavaScript function serialization/parsing)
      
              Test: fast/js/function-names.html
      
              * dom/Document.h: Add function name parameter to createHTMLEventListener.
              * dom/Document.cpp:
              (WebCore::Document::createHTMLEventListener): Pass function name when calling
              createHTMLEventHandler.
              (WebCore::Document::setHTMLWindowEventListener): Pass attribute name as function name
              when calling createHTMLEventListener.
      
              * html/HTMLElement.cpp: (WebCore::HTMLElement::setHTMLEventListener): Pass attribute
              name as function name when calling createHTMLEventListener.
      
              * khtml/ecma/kjs_events.h: Add a function name parameter to JSLazyEventListener.
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSLazyEventListener::JSLazyEventListener): Take and store a function name.
              (KJS::JSLazyEventListener::parseCode): Pass function name when constructing the function.
      
              * khtml/ecma/kjs_proxy.h: Add a function name parameter to createHTMLEventHandler and
              createSVGEventHandler.
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxy::createHTMLEventHandler): Pass function name when creating
              a JSLazyEventListener.
              (WebCore::KJSProxy::createSVGEventHandler): Ditto.
      
              * ksvg2/events/JSSVGLazyEventListener.h: Add a function name parameter to
              JSSVGLazyEventListener.
              * ksvg2/events/JSSVGLazyEventListener.cpp:
              (WebCore::JSSVGLazyEventListener::JSSVGLazyEventListener): Pass the function name
              on to the base class constructor.
      
              * ksvg2/misc/SVGDocumentExtensions.h: Add function name parameter to createSVGEventListener.
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::createSVGEventListener): Pass function name when
              calling createSVGEventHandler.
      
              * ksvg2/svg/SVGElement.cpp: (WebCore::SVGElement::addSVGEventListener):
              * ksvg2/svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::addSVGWindowEventListner):
              Pass attribute name as function name when calling createSVGEventListener.
      
              * WebCore.xcodeproj/project.pbxproj: Moved generation script to the top.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ec969bc
  19. 20 Mar, 2006 2 commits
    • darin's avatar
      Reviewed by Geoff. · d18e72a9
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7867
                get rid of macro hacks for DOM, KDOM, KSVG, khtml, DOMString, QString
      
              * config.h: Remove the defines for DOM, KDOM, KSVG, khtml, DOMString, QString,
              and qstring().
      
              * WebCore.xcodeproj/project.pbxproj: Pass in WebCore instead of KSVG as the
              namespace for SVG names.
              * ksvg2/scripts/make_names.pl: Made a couple changes to trick the SVG names into
              recompiling, since they are in a different namespace now.
      
              * ForwardingHeaders/kjs/identifier.h: Added.
      
              * dom/PlatformWheelEvent.idl: Removed.
              * dom/WheelEvent.idl: Added. This file was renamed by accident.
      
              * bindings/js/JSDOMCore.cpp:
              * bindings/js/JSDOMEvents.cpp:
              * bindings/js/JSDOMHTML.cpp:
              * 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:
              * html/CanvasGradient.idl:
              * html/CanvasPattern.idl:
              * html/CanvasRenderingContext2D.idl:
              Touched, to get CodeGeneratorJS.pm changes to take effect.
       
              * css/CSSGrammar.y:
              * css/css_valueimpl.cpp: (WebCore::propertyID):
              Changed calls to get CSS property values to use an explicit SVG:: namespace,
              to match what the script writes out.
      
              * khtml/ecma/kjs_binding.h: Added forward declaration of WebCore::String.
      
              * ksvg2/scripts/cssmakeget rid of macro hacks for DOM, KDOM, KSVG, khtml, DOMString, QString
                props: Made this compile with warnings and strict turned on.
              Really just a trick to get properties to recompile, which turned out to be unneeded.
              * ksvg2/scripts/cssmakevalues: Ditto.
      
              * ksvg2/svg/SVGAElement.cpp:
              (SVGAElement::parseMappedAttribute):
              (SVGAElement::defaultEventHandler):
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              (SVGAnimateTransformElement::parseMappedAttribute):
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::parseMappedAttribute):
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::parseMappedAttribute):
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              (SVGComponentTransferFunctionElement::parseMappedAttribute):
              * ksvg2/svg/SVGExternalResourcesRequired.cpp:
              (SVGExternalResourcesRequired::parseMappedAttribute):
              * ksvg2/svg/SVGFEBlendElement.cpp:
              (SVGFEBlendElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              (SVGFEColorMatrixElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              (SVGFEComponentTransferElement::parseMappedAttribute):
              * ksvg2/svg/SVGFECompositeElement.cpp:
              (SVGFECompositeElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
              (SVGFEDisplacementMapElement::stringToChannel):
              (SVGFEDisplacementMapElement::parseMappedAttribute):
              (SVGFEDisplacementMapElement::filterEffect):
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEFloodElement.cpp:
              (SVGFEFloodElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              (SVGFEGaussianBlurElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEImageElement.cpp:
              (SVGFEImageElement::parseMappedAttribute):
              * ksvg2/svg/SVGFELightElement.cpp:
              (SVGFELightElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEMergeNodeElement.cpp:
              (SVGFEMergeNodeElement::parseMappedAttribute):
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              (SVGFEOffsetElement::parseMappedAttribute):
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              (SVGFESpecularLightingElement::parseMappedAttribute):
              * ksvg2/svg/SVGFETileElement.cpp:
              (SVGFETileElement::parseMappedAttribute):
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              (SVGFETurbulenceElement::parseMappedAttribute):
              * ksvg2/svg/SVGFilterElement.cpp:
              (SVGFilterElement::parseMappedAttribute):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::parseMappedAttribute):
              * ksvg2/svg/SVGMaskElement.cpp:
              (WebCore::SVGMaskElement::parseMappedAttribute):
              * ksvg2/svg/SVGPolyElement.cpp:
              (SVGPolyElement::parseMappedAttribute):
              * ksvg2/svg/SVGStopElement.cpp:
              (SVGStopElement::parseMappedAttribute):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::parseMappedAttribute):
              * ksvg2/svg/SVGTests.cpp:
              (WebCore::SVGTests::parseMappedAttribute):
              * ksvg2/svg/SVGTextContentElement.cpp:
              (SVGTextContentElement::parseMappedAttribute):
              * ksvg2/svg/SVGTextPositioningElement.cpp:
              (SVGTextPositioningElement::parseMappedAttribute):
              * ksvg2/svg/SVGViewElement.cpp:
              (SVGViewElement::parseMappedAttribute):
              * ksvg2/svg/SVGZoomAndPan.cpp:
              (SVGZoomAndPan::parseMappedAttribute):
              Changed code that converts an AtomicString to a String to do it in a
              more-efficient fashion that works even with all the new conversions.
      
              * page/Frame.cpp:
              (WebCore::getString): Removed unneeded .deprecatedString().
              (WebCore::Frame::begin): Removed the only use of QSTRING_NULL.
      
              * platform/AtomicString.h: Added conversion to and from KJS::Identifier
              and KJS::UString.
              * platform/AtomicString.cpp:
              (WebCore::AtomicString::add): Added overloads for Identifier and UString.
              (WebCore::AtomicString::operator Identifier): Added.
              (WebCore::AtomicString::operator UString): Added.
      
              * platform/DeprecatedString.h: Added conversion to and from KJS::Identifier
              and KJS::UString.
              * platform/DeprecatedString.cpp:
              (DeprecatedString::DeprecatedString): Added overloads for Identifier and UString.
              (DeprecatedString::operator Identifier): Added.
              (DeprecatedString::operator UString): Added.
      
              * platform/PlatformString.h: Added conversion to and from KJS::Identifier
              and KJS::UString.
              * platform/String.cpp:
              (WebCore::String::String): Added overloads for Identifier and UString.
              (WebCore::String::operator Identifier): Added.
              (WebCore::String::operator UString): Added.
      
              * platform/StringImpl.h: Added constructors that take KJS::Identifier
              and KJS::UString
              * platform/StringImpl.cpp:
              (WebCore::getWordBreakIterator): Changed a use of UChar to say ::UChar
              instead because of ambiguity with KJS::UChar.
              (WebCore::StringImpl::StringImpl): Added overloads for Identifier and String.
      
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
              (WebCore::toHTMLCanvasStyle):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (aeDescFromJSValue):
              (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              * dom/QualifiedName.cpp:
              (WebCore::QualifiedName::toString):
              * khtml/ecma/JSDOMParser.cpp:
              (KJS::DOMParserProtoFunc::callAsFunction):
              * khtml/ecma/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
              * khtml/ecma/JSXSLTProcessor.cpp:
              (KJS::XSLTProcessorProtoFunc::callAsFunction):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::valueToStringWithNullCheck):
              * khtml/ecma/kjs_css.cpp:
              (KJS::cssPropertyName):
              (KJS::DOMCSSStyleDeclaration::put):
              (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
              (KJS::DOMStyleSheetList::nameGetter):
              (KJS::DOMStyleSheetList::getOwnPropertySlot):
              (KJS::DOMMediaList::put):
              (KJS::KJS::DOMMediaListProtoFunc::callAsFunction):
              (KJS::DOMCSSStyleSheetProtoFunc::callAsFunction):
              (KJS::DOMCSSRule::putValueProperty):
              (KJS::DOMCSSRuleFunc::callAsFunction):
              (KJS::DOMCSSValue::put):
              (KJS::DOMCSSPrimitiveValueProtoFunc::callAsFunction):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMNode::toString):
              (KJS::DOMNodeProtoFunc::callAsFunction):
              (KJS::DOMEventTargetNodeProtoFunc::callAsFunction):
              (KJS::DOMNodeList::nameGetter):
              (KJS::DOMNodeList::getOwnPropertySlot):
              (KJS::DOMDocument::putValueProperty):
              (KJS::DOMDocumentProtoFunc::callAsFunction):
              (KJS::DOMElement::attributeGetter):
              (KJS::DOMElement::getOwnPropertySlot):
              (KJS::DOMNamedNodeMap::nameGetter):
              (KJS::DOMNamedNodeMap::getOwnPropertySlot):
              (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
              (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMEventProtoFunc::callAsFunction):
              (KJS::DOMUIEventProtoFunc::callAsFunction):
              (KJS::DOMMouseEventProtoFunc::callAsFunction):
              (KJS::DOMKeyboardEventProtoFunc::callAsFunction):
              (KJS::Clipboard::putValueProperty):
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocFunction::callAsFunction):
              (KJS::JSHTMLDocument::namedItemGetter):
              (KJS::JSHTMLDocument::getOwnPropertySlot):
              (KJS::JSHTMLDocument::putValueProperty):
              (KJS::JSHTMLElement::framesetNameGetter):
              (KJS::JSHTMLElement::getOwnPropertySlot):
              (KJS::HTMLElementFunction::callAsFunction):
              (KJS::JSHTMLElement::putValueProperty):
              (KJS::JSHTMLCollection::callAsFunction):
              (KJS::JSHTMLCollection::getNamedItems):
              (KJS::HTMLCollectionProtoFunc::callAsFunction):
              (KJS::OptionConstructorImp::construct):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Plugins::nameGetter):
              (KJS::Plugins::getOwnPropertySlot):
              (KJS::MimeTypes::nameGetter):
              (KJS::MimeTypes::getOwnPropertySlot):
              (KJS::Plugin::nameGetter):
              (KJS::Plugin::getOwnPropertySlot):
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxy::evaluate):
              * khtml/ecma/kjs_range.cpp:
              (KJS::DOMRangeProtoFunc::callAsFunction):
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              * khtml/ecma/kjs_window.cpp:
              (KJS::parseModalDialogFeatures):
              (KJS::showModalDialog):
              (KJS::Window::childFrameGetter):
              (KJS::Window::namedFrameGetter):
              (KJS::Window::namedItemGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::Window::put):
              (KJS::WindowFunc::callAsFunction):
              (KJS::ScheduledAction::execute):
              (KJS::Window::installTimeout):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              (KJS::Location::put):
              (KJS::LocationFunc::callAsFunction):
              (KJS::SelectionFunc::callAsFunction):
              Removed explicit calls to domString(), sometimes replacing with explicit calls to the
              String() constructor. Other similar changes for AtomicString and DeprecatedString use.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d18e72a9
    • darin's avatar
      Rubber stamped by Eric. · 98fa8b83
      darin authored
              - moved khtml/html files all into html directory
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new paths.
              * WebCore.vcproj/WebCore/build-generated-files.sh: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * khtml/html: Removed.
      
              * html/DocTypeStrings.gperf: Moved.
              * html/FormDataList.cpp: Ditto.
              * html/FormDataList.h: Ditto.
              * html/HTMLBaseFontElement.cpp: Ditto.
              * html/HTMLBaseFontElement.h: Ditto.
              * html/HTMLButtonElement.cpp: Ditto.
              * html/HTMLButtonElement.h: Ditto.
              * html/HTMLCanvasElement.cpp: Ditto.
              * html/HTMLCanvasElement.h: Ditto.
              * html/HTMLCollection.cpp: Ditto.
              * html/HTMLCollection.h: Ditto.
              * html/HTMLDocument.cpp: Ditto.
              * html/HTMLDocument.h: Ditto.
              * html/HTMLElement.cpp: Ditto.
              * html/HTMLElement.h: Ditto.
              * html/HTMLElementFactory.cpp: Ditto.
              * html/HTMLElementFactory.h: Ditto.
              * html/HTMLEntityNames.gperf: Ditto.
              * html/HTMLFieldSetElement.cpp: Ditto.
              * html/HTMLFieldSetElement.h: Ditto.
              * html/HTMLFormCollection.cpp: Ditto.
              * html/HTMLFormCollection.h: Ditto.
              * html/HTMLFormElement.cpp: Ditto.
              * html/HTMLFormElement.h: Ditto.
              * html/HTMLGenericFormElement.cpp: Ditto.
              * html/HTMLGenericFormElement.h: Ditto.
              * html/HTMLInputElement.cpp: Ditto.
              * html/HTMLInputElement.h: Ditto.
              * html/HTMLIsIndexElement.cpp: Ditto.
              * html/HTMLIsIndexElement.h: Ditto.
              * html/HTMLKeygenElement.cpp: Ditto.
              * html/HTMLKeygenElement.h: Ditto.
              * html/HTMLLabelElement.cpp: Ditto.
              * html/HTMLLabelElement.h: Ditto.
              * html/HTMLLegendElement.cpp: Ditto.
              * html/HTMLLegendElement.h: Ditto.
              * html/HTMLNameCollection.cpp: Ditto.
              * html/HTMLNameCollection.h: Ditto.
              * html/HTMLNames.cpp: Ditto.
              * html/HTMLNames.h: Ditto.
              * html/HTMLOptGroupElement.cpp: Ditto.
              * html/HTMLOptGroupElement.h: Ditto.
              * html/HTMLOptionElement.cpp: Ditto.
              * html/HTMLOptionElement.h: Ditto.
              * html/HTMLOptionsCollection.cpp: Ditto.
              * html/HTMLOptionsCollection.h: Ditto.
              * html/HTMLParser.cpp: Ditto.
              * html/HTMLParser.h: Ditto.
              * html/HTMLSelectElement.cpp: Ditto.
              * html/HTMLSelectElement.h: Ditto.
              * html/HTMLTextAreaElement.cpp: Ditto.
              * html/HTMLTextAreaElement.h: Ditto.
              * html/HTMLTextFieldInnerElement.cpp: Ditto.
              * html/HTMLTextFieldInnerElement.h: Ditto.
              * html/HTMLTokenizer.cpp: Ditto.
              * html/HTMLTokenizer.h: Ditto.
              * html/html_baseimpl.cpp: Ditto.
              * html/html_baseimpl.h: Ditto.
              * html/html_blockimpl.cpp: Ditto.
              * html/html_blockimpl.h: Ditto.
              * html/html_headimpl.cpp: Ditto.
              * html/html_headimpl.h: Ditto.
              * html/html_imageimpl.cpp: Ditto.
              * html/html_imageimpl.h: Ditto.
              * html/html_inlineimpl.cpp: Ditto.
              * html/html_inlineimpl.h: Ditto.
              * html/html_listimpl.cpp: Ditto.
              * html/html_listimpl.h: Ditto.
              * html/html_objectimpl.cpp: Ditto.
              * html/html_objectimpl.h: Ditto.
              * html/html_tableimpl.cpp: Ditto.
              * html/html_tableimpl.h: Ditto.
      
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/CSSGrammar.y:
              * css/cssstyleselector.cpp:
              * dom/Document.cpp:
              * dom/EventTargetNode.cpp:
              * dom/NameNodeList.cpp:
              * dom/Node.cpp:
              * dom/Position.cpp:
              * dom/dom_elementimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteSelectionCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/TextIterator.cpp:
              * editing/VisiblePosition.cpp:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/visible_units.cpp:
              * html/CanvasRenderingContext2D.cpp:
              * kcanvas/KCanvasTreeDebug.cpp:
              * khtml/ecma/JSDOMParser.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/misc/decoder.cpp:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * kwq/WebCoreAXObject.mm:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderHTMLCanvas.cpp:
              * rendering/RenderImage.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderTable.cpp:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTheme.cpp:
              * rendering/render_applet.cpp:
              * rendering/render_button.cpp:
              * rendering/render_frames.cpp:
              * rendering/render_list.cpp:
              Updated includes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98fa8b83
  20. 19 Mar, 2006 1 commit
  21. 17 Mar, 2006 1 commit
    • ggaren's avatar
      LayoutTests: · 42e58c6d
      ggaren authored
              Reviewed by Darin.
      
              * fast/dom/prototype-chain-expected.txt: Updated to reflect new
              prototype chain.
      
      WebCore:
      
              Reviewed by Darin.
      
              - Fixed some crashes in event dispatch and settled the question of 
              when getDocument() can return NULL, removing superfluous NULL checks.
      
              I promise to check in a test case soon, but I need to land this before
              the global rename happens, and I left the test file on my other machine.
      
              Here's what I did:
      
              (1) Removed NULL checks for getDocument() in cases where we know it
              should not return NULL (which turned out to be all but one). Replaced 
              with ASSERT inside getDocument(). Tested to ensure there was no 
              regression @ albertsons.com.
      
              (2) Added the EventTargetNode class, which represents Nodes that
              implement the DOM EventTarget interface. Discussed this design with
              Maciej and Hyatt. The previous dsign -- assuming that all Nodes were 
              EventTargets -- made it possible to crash WebKit by, for example, 
              dispatching a mouse event to a documentType node that was not 
              associated with a document.
      
              (3) Reflected (2) into the JS bindings and touched JSDOMCore.cpp to 
              force a re-build.
      
              (4) Using classInfo checking, strengthened type constraints on 
              JavaScript method dispatch so that you can't finagle JavaScript into, 
              for example, invoking a document-dependent method belonging to a
              node type that's guaranteed to have a document on a node type that may
              not have one. 
      
              (5) Pushed some IE-specific JS bindings that depend on a node having a 
              document down from DOMNode to DOMElement. (An element always has a 
              document.) Tested that Firefox's behavior matched. Confirmed with MSDN.
      
              (6) Updated Objc bindigns to throw an exception if you try to use
              the event interface on a node that doesn't support it. Discussed this
              design with Maciej and TimH.
      
              (7) Consolidated repeated documentElement-finding code in the Position 
              class into the Position::documentElement() method. Did the same for
              repeated top-level document finding and DocumentImpl::topDocument().
              
              * WebCore+SVG/KDOMHeaders.h:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMCore.cpp:
              * bindings/objc/DOM.mm:
              (-[DOMNode addEventListener:::]):
              (-[DOMNode removeEventListener:::]):
              (-[DOMNode dispatchEvent:]):
              (-[DOMNode KJS::Bindings::]):
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::keyEvent):
              (WebCore::MacFrame::dispatchCPPEvent):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
              * css/css_base.cpp:
              (WebCore::StyleBaseImpl::baseURL):
              * css/css_computedstyle.cpp:
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/css_valueimpl.cpp:
              (WebCore::CSSMutableStyleDeclarationImpl::removeProperty):
              (WebCore::CSSMutableStyleDeclarationImpl::setProperty):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * dom/Attr.idl:
              * dom/CharacterData.idl:
              * dom/CharacterDataImpl.cpp:
              (WebCore::CharacterDataImpl::CharacterDataImpl):
              (WebCore::CharacterDataImpl::rendererIsNeeded):
              (WebCore::CharacterDataImpl::dump):
              * dom/CharacterDataImpl.h:
              * dom/ContainerNodeImpl.cpp:
              (WebCore::ContainerNodeImpl::ContainerNodeImpl):
              (WebCore::ContainerNodeImpl::removeChild):
              (WebCore::ContainerNodeImpl::attach):
              (WebCore::ContainerNodeImpl::detach):
              (WebCore::ContainerNodeImpl::insertedIntoDocument):
              (WebCore::ContainerNodeImpl::removedFromDocument):
              (WebCore::ContainerNodeImpl::insertedIntoTree):
              (WebCore::ContainerNodeImpl::removedFromTree):
              (WebCore::ContainerNodeImpl::setFocus):
              (WebCore::ContainerNodeImpl::setActive):
              (WebCore::ContainerNodeImpl::setHovered):
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/ContainerNodeImpl.h:
              * dom/DOMImplementationImpl.cpp:
              (WebCore::DOMImplementationImpl::createDocument):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::removeAllEventListenersFromAllNodes):
              (WebCore::DocumentImpl::removeAllDisconnectedNodeEventListeners):
              (WebCore::DocumentImpl::getAccObjectCache):
              (WebCore::DocumentImpl::setFocusNode):
              (WebCore::DocumentImpl::topDocument):
              * dom/Element.idl:
              * dom/EventTargetNodeImpl.cpp: Added.
              (WebCore::EventTargetNodeImpl::EventTargetNodeImpl):
              (WebCore::EventTargetNodeImpl::~EventTargetNodeImpl):
              (WebCore::EventTargetNodeImpl::insertedIntoDocument):
              (WebCore::EventTargetNodeImpl::removedFromDocument):
              (WebCore::EventTargetNodeImpl::addEventListener):
              (WebCore::EventTargetNodeImpl::removeEventListener):
              (WebCore::EventTargetNodeImpl::removeAllEventListeners):
              (WebCore::EventTargetNodeImpl::handleLocalEvents):
              (WebCore::EventTargetNodeImpl::dispatchGenericEvent):
              (WebCore::EventTargetNodeImpl::dispatchEvent):
              (WebCore::EventTargetNodeImpl::dispatchSubtreeModifiedEvent):
              (WebCore::EventTargetNodeImpl::dispatchWindowEvent):
              (WebCore::EventTargetNodeImpl::dispatchUIEvent):
              (WebCore::EventTargetNodeImpl::dispatchKeyEvent):
              (WebCore::EventTargetNodeImpl::dispatchMouseEvent):
              (WebCore::EventTargetNodeImpl::dispatchSimulatedMouseEvent):
              (WebCore::EventTargetNodeImpl::dispatchWheelEvent):
              (WebCore::EventTargetNodeImpl::dispatchHTMLEvent):
              (WebCore::EventTargetNodeImpl::removeHTMLEventListener):
              (WebCore::EventTargetNodeImpl::setHTMLEventListener):
              (WebCore::EventTargetNodeImpl::getHTMLEventListener):
              (WebCore::EventTargetNodeImpl::disabled):
              (WebCore::EventTargetNodeImpl::defaultEventHandler):
              (WebCore::EventTargetNodeImpl::dump):
              * dom/EventTargetNodeImpl.h: Added.
              (WebCore::EventTargetNodeImpl::isEventTargetNode):
              (WebCore::EventTargetNodeImpl::preDispatchEventHandler):
              (WebCore::EventTargetNodeImpl::postDispatchEventHandler):
              (WebCore::EventTarget):
              (WebCore::forbidEventDispatch):
              (WebCore::allowEventDispatch):
              (WebCore::eventDispatchForbidden):
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::NodeImpl):
              (WebCore::NodeImpl::~NodeImpl):
              (WebCore::NodeImpl::dump):
              (WebCore::NodeImpl::detach):
              (WebCore::NodeImpl::insertedIntoDocument):
              (WebCore::NodeImpl::removedFromDocument):
              * dom/NodeImpl.h:
              (WebCore::NodeImpl::isEventTargetNode):
              (WebCore::NodeImpl::isLink):
              (WebCore::NodeImpl::getDocument):
              (WebCore::NodeImpl::inDocument):
              * dom/dom2_eventsimpl.cpp:
              (WebCore::MouseRelatedEventImpl::receivedTarget):
              * dom/dom2_rangeimpl.cpp:
              (WebCore::RangeImpl::commonAncestorContainer):
              * dom/dom_elementimpl.cpp:
              (WebCore::inHTMLDocument):
              (WebCore::ElementImpl::focus):
              (WebCore::ElementImpl::blur):
              (WebCore::StyledElementImpl::parseMappedAttribute):
              * dom/dom_position.cpp:
              (WebCore::Position::documentElement):
              * dom/dom_position.h:
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::computeAndStoreNodeDesiredStyle):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::needsCaretRepaint):
              * editing/visible_units.cpp:
              (WebCore::previousBoundary):
              (WebCore::nextBoundary):
              (WebCore::previousLinePosition):
              (WebCore::nextLinePosition):
              (WebCore::startOfDocument):
              (WebCore::endOfDocument):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::mark):
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMNodeProtoFunc::callAsFunction):
              (KJS::DOMEventTargetNode::DOMEventTargetNode):
              (KJS::DOMEventTargetNode::getOwnPropertySlot):
              (KJS::DOMEventTargetNode::getValueProperty):
              (KJS::DOMEventTargetNode::put):
              (KJS::DOMEventTargetNode::putValueProperty):
              (KJS::DOMEventTargetNode::setListener):
              (KJS::DOMEventTargetNode::getListener):
              (KJS::DOMEventTargetNode::pushEventHandlerScope):
              (KJS::DOMEventTargetNodeProtoFunc::callAsFunction):
              (KJS::):
              (KJS::DOMDocument::DOMDocument):
              (KJS::DOMDocument::getOwnPropertySlot):
              (KJS::DOMDocument::put):
              (KJS::DOMDocument::putValueProperty):
              (KJS::DOMDocumentProtoFunc::callAsFunction):
              (KJS::DOMElement::DOMElement):
              (KJS::DOMElement::getValueProperty):
              (KJS::DOMElement::put):
              (KJS::DOMElement::putValueProperty):
              (KJS::DOMElement::getOwnPropertySlot):
              (KJS::DOMElementProtoFunc::callAsFunction):
              (KJS::checkNodeSecurity):
              * khtml/ecma/kjs_dom.h:
              (KJS::DOMNode::):
              (KJS::DOMEventTargetNode::):
              (KJS::DOMElement::):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSLazyEventListener::parseCode):
              (KJS::getNodeEventListener):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLElement::bodyGetter):
              (KJS::HTMLElement::anchorGetter):
              (KJS::HTMLElement::getValueProperty):
              (KJS::HTMLElement::bodySetter):
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              * khtml/html/HTMLFormElementImpl.cpp:
              (WebCore::HTMLFormElementImpl::registerFormElement):
              (WebCore::HTMLFormElementImpl::removeFormElement):
              * khtml/html/HTMLGenericFormElementImpl.cpp:
              (WebCore::HTMLGenericFormElementImpl::insertedIntoTree):
              * khtml/html/HTMLInputElementImpl.cpp:
              (WebCore::HTMLInputElementImpl::~HTMLInputElementImpl):
              (WebCore::HTMLInputElementImpl::focus):
              * khtml/html/HTMLOptionElementImpl.cpp:
              (WebCore::HTMLOptionElementImpl::text):
              * khtml/html/HTMLSelectElementImpl.cpp:
              (WebCore::HTMLSelectElementImpl::~HTMLSelectElementImpl):
              * khtml/html/HTMLTextAreaElementImpl.cpp:
              (WebCore::HTMLTextAreaElementImpl::~HTMLTextAreaElementImpl):
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLBodyElementImpl::insertedIntoDocument):
              (WebCore::HTMLFrameElementImpl::isURLAllowed):
              (WebCore::HTMLFrameElementImpl::openURL):
              (WebCore::HTMLFrameElementImpl::frameWidth):
              (WebCore::HTMLFrameElementImpl::frameHeight):
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLImageLoader::~HTMLImageLoader):
              (WebCore::HTMLImageLoader::updateFromElement):
              (WebCore::HTMLImageLoader::notifyFinished):
              (WebCore::HTMLImageElementImpl::width):
              (WebCore::HTMLImageElementImpl::height):
              (WebCore::HTMLMapElementImpl::~HTMLMapElementImpl):
              * khtml/html/html_inlineimpl.cpp:
              (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              * khtml/html/htmltokenizer.cpp:
              (WebCore::HTMLTokenizer::notifyFinished):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
              (SVGAnimateTransformElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              (SVGAnimationElementImpl::closeRenderer):
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::dispatchRecursiveEvent):
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGImageElementImpl.cpp:
              * ksvg2/svg/SVGSetElementImpl.cpp:
              (SVGSetElementImpl::handleTimerEvent):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject mouseButtonListener]):
              (-[KWQAccObject accessibilityPerformAction:]):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView dispatchHTMLEvent:]):
              * page/Frame.cpp:
              (WebCore::dispatchKHTMLEditableContentChanged):
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchDragEvent):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::viewportWheelEvent):
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::scrollToOffset):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::shouldSelect):
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::sendConsumedMouseUp):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42e58c6d
  22. 16 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 991c938e
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7749
                canvas should be in DOM, not implemented in the JS bindings
      
              * WebCore.xcodeproj/project.pbxproj: Added new files.
              Changed bindings-generation code to work on the new html directory
              as well as the dom one.
      
              * bindings/js/JSCanvasRenderingContext2DBase.cpp: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.h: Added.
              * bindings/js/JSDOMHTML.cpp: Added.
              * html: Added.
              * html/CanvasGradient.cpp: Added.
              * html/CanvasGradient.h: Added.
              * html/CanvasGradient.idl: Added.
              * html/CanvasPattern.cpp: Added.
              * html/CanvasPattern.h: Added.
              * html/CanvasPattern.idl: Added.
              * html/CanvasRenderingContext2D.cpp: Added.
              * html/CanvasRenderingContext2D.h: Added.
              * html/CanvasRenderingContext2D.idl: Added.
              * html/CanvasStyle.cpp: Added.
              * html/CanvasStyle.h: Added.
      
              * bindings/js/JSDOMCore.cpp: Touched so that it will recompile.
              * bindings/js/JSDOMEvents.cpp: Ditto.
              * dom/Attr.idl: Ditto.
              * dom/DOMImplementation.idl: Ditto.
              * dom/DocumentType.idl: Ditto.
              * dom/MutationEvent.idl: Ditto.
              * dom/ProcessingInstruction.idl: Ditto.
              * dom/Text.idl: Ditto.
      
              * khtml/ecma/kjs_binding.h: (KJS::toJS): Added. Template so that you can call
              toJS on a PassRefPtr as well as on a raw pointer.
      
              * bindings/scripts/CodeGeneratorJS.pm: Fixed handling of a class that has only
              a legacy parent, no conventional parents. Added JSCanvasRenderingContext2DBase
              as a legacy parent, and html as a legacy module. Added CanvasRenderingContext2D,
              CanvasGradient, and CanvasPattern to the "waht to include". Added a special
              case for strings beginning with Canvas to not add an "Impl" suffix. Made the
              generated impl() function be a const member function. Made m_mimpl be private
              instead of protected. Generate a toJS function for each class. Added flaot as
              a type. Generate String, not DOMString. Made the HashTable const.
      
              * bindings/scripts/IDLParser.pm: Fix a couple small things. I had started to
              try to make a missing semicolon trigger an error, but ended up giving up on
              that for now.
      
              * khtml/html/html_canvasimpl.h:
              * khtml/html/html_canvasimpl.cpp:
              (WebCore::HTMLCanvasElementImpl::HTMLCanvasElementImpl): Set m_2DContext to 0.
              (WebCore::HTMLCanvasElementImpl::~HTMLCanvasElementImpl): Call detachCanvas
              on m_2DContext, if any.
              (WebCore::HTMLCanvasElementImpl::detach): Call reset on m_2DContext, if any.
              (WebCore::HTMLCanvasElementImpl::getContext): Added.
              (WebCore::HTMLCanvasElementImpl::size): Added.
              (WebCore::HTMLCanvasElementImpl::createPlatformImage): Added.
      
              * platform/Image.h:
              * platform/Image.cpp: (WebCore::Image::compositeOperatorFromString):
              Changed to take a String instead of a const char*.
      
              * khtml/html/html_imageimpl.h:
              * khtml/html/html_imageimpl.cpp: (WebCore::HTMLMapElementImpl::areas):
              Tweaked formatting. Changed to use PassRefPtr.
      
              * bindings/objc/DOMInternal.mm: (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * khtml/ecma/JSXMLHttpRequest.cpp: (KJS::JSXMLHttpRequest::getValueProperty):
              * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
              * khtml/ecma/domparser.cpp: (KJS::DOMParserProtoFunc::callAsFunction):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::getValueProperty):
              (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
              (KJS::toJS):
              (KJS::DOMStyleSheet::getValueProperty):
              (KJS::DOMStyleSheetList::indexGetter):
              (KJS::DOMStyleSheetList::nameGetter):
              (KJS::DOMStyleSheetListFunc::callAsFunction):
              (KJS::DOMCSSStyleSheet::getValueProperty):
              (KJS::DOMCSSRuleList::indexGetter):
              (KJS::DOMCSSRuleListFunc::callAsFunction):
              (KJS::DOMCSSRule::getValueProperty):
              (KJS::DOMCSSPrimitiveValueProtoFunc::callAsFunction):
              (KJS::DOMCSSValueList::indexGetter):
              (KJS::DOMCSSValueListFunc::callAsFunction):
              (KJS::DOMRect::getValueProperty):
              * khtml/ecma/kjs_css.h:
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNodeProtoFunc::callAsFunction):
              (KJS::DOMNodeList::indexGetter):
              (KJS::DOMNodeList::nameGetter):
              (KJS::DOMNodeList::callAsFunction):
              (KJS::DOMNodeListFunc::callAsFunction):
              (KJS::DOMDocument::getValueProperty):
              (KJS::DOMDocumentProtoFunc::callAsFunction):
              (KJS::DOMNamedNodeMap::indexGetter):
              (KJS::DOMNamedNodeMap::nameGetter):
              (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
              (KJS::toJS):
              (KJS::DOMNamedNodesCollection::indexGetter):
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              (KJS::JSLazyEventListener::parseCode):
              (KJS::DOMEvent::getValueProperty):
              (KJS::toJS):
              (KJS::DOMUIEvent::getValueProperty):
              (KJS::DOMMouseEvent::getValueProperty):
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocFunction::callAsFunction):
              (KJS::HTMLDocument::namedItemGetter):
              (KJS::HTMLDocument::getValueProperty):
              (KJS::HTMLDocument::put):
              (KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::classInfo):
              (KJS::HTMLElement::formIndexGetter):
              (KJS::HTMLElement::selectIndexGetter):
              (KJS::HTMLElement::implementsCall):
              (KJS::HTMLElement::callAsFunction):
              (KJS::HTMLElement::linkGetter):
              (KJS::HTMLElement::isIndexGetter):
              (KJS::HTMLElement::styleGetter):
              (KJS::HTMLElement::selectGetter):
              (KJS::HTMLElement::optionGetter):
              (KJS::HTMLElement::inputGetter):
              (KJS::HTMLElement::textAreaGetter):
              (KJS::HTMLElement::buttonGetter):
              (KJS::HTMLElement::labelGetter):
              (KJS::HTMLElement::fieldSetGetter):
              (KJS::HTMLElement::legendGetter):
              (KJS::HTMLElement::objectGetter):
              (KJS::HTMLElement::tableGetter):
              (KJS::HTMLElement::frameGetter):
              (KJS::HTMLElement::iFrameGetter):
              (KJS::HTMLElement::getValueProperty):
              (KJS::HTMLElement::toString):
              (KJS::HTMLElement::pushEventHandlerScope):
              (KJS::toJS):
              (KJS::HTMLElementFunction::callAsFunction):
              (KJS::HTMLElement::put):
              (KJS::HTMLCollection::indexGetter):
              (KJS::HTMLCollection::callAsFunction):
              (KJS::HTMLCollection::getNamedItems):
              (KJS::HTMLCollectionProtoFunc::callAsFunction):
              (KJS::HTMLSelectCollection::put):
              (KJS::OptionConstructorImp::construct):
              (KJS::ImageConstructorImp::construct):
              * khtml/ecma/kjs_html.h:
              * khtml/ecma/kjs_proxy.cpp: (WebCore::KJSProxyImpl::evaluate):
              * khtml/ecma/kjs_range.cpp:
              (KJS::DOMRange::getValueProperty):
              (KJS::DOMRangeProtoFunc::callAsFunction):
              (KJS::toJS):
              * khtml/ecma/kjs_range.h:
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::getValueProperty):
              (KJS::DOMNodeIteratorProtoFunc::callAsFunction):
              (KJS::toJS):
              (KJS::DOMTreeWalker::getValueProperty):
              (KJS::DOMTreeWalkerProtoFunc::callAsFunction):
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_traversal.h:
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractView::getValueProperty):
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              (KJS::toJS):
              * khtml/ecma/kjs_views.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::Window::namedItemGetter):
              (KJS::Selection::getValueProperty):
              (KJS::SelectionFunc::callAsFunction):
              Rename uses and definitions of all the various converstions to JavaScript
              wrappers to the new common overloaded name: "toJS".
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      991c938e
  23. 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
  24. 05 Mar, 2006 1 commit
    • ggaren's avatar
      JavaScriptCore: · 77d8fc4c
      ggaren authored
              Reviewed by Maciej.
      
              - JSC support for the fix for <rdar://problem/4467143> JavaScript 
              enumeration of HTML element properties skips DOM node properties
      
              * kjs/lookup.h: 
              (1) Added the KJS_DEFINE_PROTOTYPE_WITH_PROTOTYPE macro. The 
              class definiton macro needs to know about the prototype's prototype so 
              that the class constructor properly sets it. 
              (2) Removed the KJS_IMPLEMENT_PROTOTYPE_WITH_PARENT macro. The class
              implementation macro does not need to know about the prototype's
              prototype, since getOwnPropertySlot should only look in the current 
              object's property map, and not its prototype's.
      
      LayoutTests:
      
              Reviewed by Maciej.
      
              - Layout test for <rdar://problem/4467143> JavaScript enumeration of 
              HTML element properties skips DOM node properties
      
              * fast/dom/prototype-chain-expected.txt: Added.
              * fast/dom/prototype-chain.html: Added.
      
      WebCore:
      
              Reviewed by Maciej.
      
              - Second cut at fixing <rdar://problem/4467143> JavaScript enumeration 
              of HTML element properties skips DOM node properties
       
              The approach here is for prototypes, in their constructor methods, 
              to set their own prototypes, preserving the prototype 
              chain in cases of multiple levels of inheritance. (Previously, our
              code assumed that a prototype never had a prototype of its own,
              and always used an empty object as a prototype's prototype).
      
              * bindings/scripts/CodeGeneratorJS.pm: Use the new
              DEFINE_PROTOTYPE_WITH_PROTOTYPE macro in place of the  
              KJS_IMPLEMENT_PROTOTYPE_WITH_PARENT macro.
              * khtml/ecma/kjs_dom.cpp: Ditto.
              * khtml/ecma/kjs_dom.h: Ditto.
              * khtml/ecma/kjs_events.cpp: Ditto.
      
              Touched these files to force a rebuild:
      
              * bindings/js/JSDOMCore.cpp:
              * bindings/js/JSDOMEvents.cpp:
              * 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:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77d8fc4c
  25. 20 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 644b75ef
      darin authored
              - moved Cursor into the platform directory from KWQ
              - removed a lot of other unneeded stuff from KWQ
      
              * platform/Cursor.h: Added.
              * platform/mac/CursorMac.mm: Added.
              * platform/mac/CursorWin.cpp: Added.
      
              * kwq/KWQBuffer.cpp: Removed.
              * kwq/KWQBuffer.h: Removed.
              * kwq/KWQCursor.h: Removed.
              * kwq/KWQCursor.mm: Removed.
              * kwq/KWQIODevice.h: Removed.
              * kwq/KWQKCursor.h: Removed.
              * kwq/KWQKCursor.mm: Removed.
              * kwq/KWQKDebug.h: Removed.
              * kwq/KWQSignalStubs.cpp: Removed.
      
              * ForwardingHeaders/kcursor.h: Removed.
              * ForwardingHeaders/kdebug.h: Removed.
              * ForwardingHeaders/qbuffer.h: Removed.
      
              * kwq/KWQEvent.h: Removed unused constants and types QCustomEvent,
              QFocusEvent, QHideEvent, QShowEvent, QContextMenuEvent, and QResizeEvent.
      
              * kwq/KWQLoader.h: Removed KWQLoader class since signals are no longer needed.
              * kwq/KWQLoader.mm: Ditto.
      
              * kwq/KWQNamespace.h: Removed DontClip, ShowPrefix, WordBreak, LayoutDirection,
              LeftToRight, RightToLeft, RasterOp, CopyROP, OrROP, and XorROP.
      
              * kwq/KWQObject.h: Removed blockSignals, sender, _signalsBlocked, _sender,
              and KWQObjectSenderScope.
              * kwq/KWQObject.cpp:
              (QObject::QObject): Removed _signalsBlocked.
              (QObject::connect): Removed special-case signals to not complain about.
              All of them were either unused, converted to non-signal functions, or in one
              case (slotScrollBarMoved) turned into a FIXME.
      
              * kwq/KWQPainter.h: Removed rasterOp and setRasterOp.
              * kwq/KWQPainter.mm: Ditto.
      
              * kwq/KWQSignal.h:
              * kwq/KWQSignal.cpp: (KWQSignal::disconnect): Removed special cases for
              various signals; all are now using plain function calls instead.
      
              * kwq/KWQSlot.h:
              * kwq/KWQSlot.cpp: Removed slots that are no longer needed because they
              are using plain function calls instead of signals.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Updated for changed files.
      
              * bridge/mac/FrameViewMac.mm: Moved the contents of KWQKHTMLView.cpp in here.
              * bridge/mac/KWQKHTMLView.cpp: Removed.
      
              * bridge/mac/MacFrame.h: Removed signals, changed setStatusBarText to take
              String instead of QString.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame): Removed signals.
              (WebCore::MacFrame::setStatusBarText): Changed parameter type.
              (WebCore::MacFrame::openURLFromPageCache): Removed parameter from started function.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Changed from QCursor() to pointerCursor().
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl): Removed signals.
              (WebCore::DocumentImpl::implicitOpen): Ditto.
              (WebCore::DocumentImpl::determineParseMode): Removed a use of kdDebug.
              (WebCore::DocumentImpl::finishedParsing): Added. Does a setParsing(false) and then
              calls finishedParsing on the frame. Replaces the old finishedParsing signal.
      
              * dom/xml_tokenizer.h:
              * dom/xml_tokenizer.cpp: Removed the finishedParsing signal since it's not just
              a function on the document.
              (WebCore::XMLTokenizer::finish): Call the function instead of emitting the signal.
      
              * khtml/html/htmlparser.h:
              * khtml/html/htmlparser.cpp: Moved the parser inside the WebCore namespace.
      
              * khtml/html/htmltokenizer.h:
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::end): Updated
              to call finishedParsing function on document rather than emitting a signal.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]): Use QEvent instead of QFocusEvent.
              (-[KWQPopUpButton resignFirstResponder]): Ditto.
              * kwq/KWQFileButton.mm: (KWQFileButton::focusChanged): Ditto.
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]): Ditto.
              (-[KWQTableView resignFirstResponder]): Ditto.
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]): Ditto.
              (-[KWQSlider resignFirstResponder]): Ditto.
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]): Ditto.
              (-[KWQTextAreaTextView resignFirstResponder]): Ditto.
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]): Ditto.
      
              * kwq/KWQTextStream.h: Removed the mode parameter from the QTextStream constructor.
              Removed the QTextIStream and QTextOStream classes.
              * kwq/KWQTextStream.cpp: (QTextStream::QTextStream): Removed the mode parameter.
      
              * loader/CachedCSSStyleSheet.h: Changed to take a ByteArray instead of a QBuffer.
              * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::data): Ditto.
              * loader/CachedImage.h: Ditto.
              * loader/CachedImage.cpp: (WebCore::CachedImage::data): Ditto.
              * loader/CachedObject.h: Ditto.
              * loader/CachedScript.h: Ditto.
              * loader/CachedScript.cpp: (WebCore::CachedScript::data): Ditto.
              * loader/CachedXBLDocument.h: Ditto.
              * loader/CachedXBLDocument.cpp: (WebCore::CachedXBLDocument::data): Ditto.
              * loader/CachedXSLStyleSheet.h:
              * loader/CachedXSLStyleSheet.cpp: (WebCore::CachedXSLStyleSheet::data): Ditto.
      
              * loader/DocLoader.cpp: (WebCore::DocLoader::setLoadInProgress): Added a call
              to loadDone on the frame. Replaces the requestFailed and requestDone signals.
      
              * loader/DocLoader.h: Removed include of <qbuffer.h>.
      
              * loader/Request.h:
              * loader/Request.cpp: Updated to use ByteArray instead of QBuffer.
      
              * loader/loader.h: Removed unused signals.
              * loader/loader.cpp:
              (WebCore::Loader::Loader): Removed use of KWQLoader.
              (WebCore::Loader::~Loader): Ditto.
              (WebCore::Loader::load): Removed code to emit unused requestStarted signal.
              (WebCore::Loader::slotFinished): Removed code to emit requestFailed and
              requestDone signals, now handled by DocLoader::setLoadInProgress(false).
              (WebCore::Loader::slotReceivedResponse): Use ByteArray instead of QBuffer.
              (WebCore::Loader::slotData): Ditto.
      
              * page/Frame.h: Removed setURLCursor, urlCursor, slotRestoreData, slotIncZoom,
              slotDecZoom, slotLoadImages, slotPartRemoved, slotActiveFrameChanged,
              slotChildURLRequest, slotShowDocument, slotAutoScroll, slotPrintFrame, slotSelectAll,
              slotProgressUpdate, slotJobPercent, slotJobSpeed.connectChild, disconnectChild,
              and changed a number of others from slots to plain old functions.
              * page/Frame.cpp:
              (WebCore::Frame::Frame): Don't connect to loader signals.
              (WebCore::Frame::~Frame): Don't disconnect from loader signals.
              (WebCore::Frame::didOpenURL): Call started function instead of emitting
              started signal. Don't connect to speed and percent signals (which never
              existed in WebCore anyway).
              (WebCore::Frame::stopLoading): Call finishedParsing function instead of
              calling slotFinishedParsing.
              (WebCore::Frame::executeScript): Removed redundant checks and let
              submitFormAgain do the checking.
              (WebCore::Frame::clear): Removed code to disconnect from finishedParsing
              signal; we now use a function. Also removed loop that calls disconnectChild,
              becase again we use functions now instead of signals.
              (WebCore::Frame::setDocument): Remove code to disconnect and connect to the
              finishedParsing signal.
              (WebCore::Frame::begin): Remove code to connect to the finishedParsing signal.
              (WebCore::Frame::finishedParsing): Moved code that does setParsing(false) into
              the document class. Also renamed from slotFinishedParsing.
              (WebCore::Frame::loadDone): Renamed from slotLoaderRequestDone.
              (WebCore::Frame::checkCompleted): Changed to call the completed function instead
              of emitting one of the two completed signals.
              (WebCore::Frame::loadSubframe): Removed call to connectChild because we now use
              functions instead of signals. Also change the call to completed to pass false
              instead of true.
              (WebCore::Frame::submitFormAgain): Change function around so we are less likely
              to leak if something strange happens inside submitForm.
              (WebCore::Frame::submitForm): Remove code to connect signal. We now call
              submitFormAgain from inside the completed function.
              (WebCore::Frame::parentCompleted): Renamed from slotParentCompleted. No longer
              a slot, now called from completed.
              (WebCore::Frame::childCompleted): Renamed from slotChildCompleted.
              (WebCore::Frame::setJSStatusBarText): Removed "emit" from function call. Changed
              to use String instead of QString.
              (WebCore::Frame::setJSDefaultStatusBarText): Ditto.
              (WebCore::Frame::sendResizeEvent): Changed to send DOM event directly instead of
              creating a QResizeEvent to send along to the FrameView.
              (WebCore::Frame::scrollToAnchor): Changed to not pass a parameter to the started
              function, which no longer takes one.
              (WebCore::Frame::frameDetached): Removed code that calls disconnectChild, since
              we no longer use signals.
              (WebCore::Frame::completed): Added. Calls childCompleted, parentCompleted, and
              submitFormAgain.
              (WebCore::Frame::setStatusBarText): Added.
              (WebCore::Frame::started): Added. Sets the complete flag to false for the frame
              and all its ancestors, which is what slotChildStarted did recursively.
      
              * page/FramePrivate.h: Removed m_activeFrame and changed m_kjsStatusBarText and
              m_kjsDefaultStatusBarText to String from QString.
      
              * page/FrameView.h: Removed resizeEvent, focusInEvent, focusOutEvent, and
              slotPaletteChanged. Changed cleared from a signal to a private function and
              slotScrollBarMoved to a private function named scrollBarMoved.
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView): Removed connect call here that was connecting
              a signal that's nonexistent in WebCore; we'll want to rig it up later.
              (WebCore::FrameView::~FrameView): Added a call to setQWidget(0) here to replace
              something that was done with a signal before.
              (WebCore::FrameView::clear): Call cleared as a function rather than a signal.
              (WebCore::selectCursor): Changed to use Cursor instead of QCursor.
              (WebCore::FrameView::scrollBarMoved): Renamed this function, which is never called.
              Added a FIXME about calling it.
              (WebCore::FrameView::cleared): Added. Calls viewCleared on the owner part, which
              used to be done with a signal.
      
              * platform/Widget.h: Changed to Cursor from QCursor.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::setCursor): Ditto.
      
              * rendering/render_frames.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize): Removed cursor-setting code here. We might
              want to use resize cursors for frames again, but it was mostly disabled anyway and
              it's not clear which cursors to use.
              (WebCore::RenderPart::setWidget): Removed code to connect to the cleared signal.
              Instead, FrameView takes care of it directly.
              (WebCore::RenderPart::viewCleared): Renamed from slotViewCleared.
              (WebCore::RenderFrame::viewCleared): Ditto.
              (WebCore::RenderPartObject::viewCleared): Ditto.
      
              * rendering/render_image.cpp:
              (WebCore::RenderImage::imageChanged): Removed use of WordBreak, which doesn't exist
              in WebCore text rendering.
              (WebCore::RenderImage::paint): Ditto.
      
              * rendering/render_list.cpp: (RenderListMarker::paint): Removed use of DontClip, which
              doesn't exist in WebCore text rendering. Also removed incorrect use of references to
              temporaries for the ". " and " ." strings.
      
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder): Removed call to setRasterOp since it is a no-op
              in WebCore's painter. Added a FIXME.
              (WebCore::RenderObject::information): Remove mode parameter to QTextStream.
      
              * rendering/render_replaced.h: Removed slotWidgetDestructed, made setQWidget public,
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::setQWidget): Removed code to connect slotWidgetDestructed to
              the destroyed signal. Instead FrameView calls setQWidget(0) on us.
              (WebCore::RenderWidget::eventFilter): Removed use of QFocusEvent::reason, which is
              never "popup" in WebCore.
      
              * WebCore+SVG/kdom.h:
              * css/css_stylesheetimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/RenderPath.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/svg/SVGPathSegLinetoImpl.cpp:
              * ksvg2/svg/SVGStyledTransformableElementImpl.cpp:
              * ksvg2/svg/SVGTransformImpl.cpp:
              * platform/StringImpl.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/render_box.cpp:
              * rendering/render_canvas.cpp:
              * rendering/render_flow.cpp:
              * rendering/render_form.cpp:
              * rendering/render_layer.cpp:
              * rendering/render_style.cpp:
              Removed includes of <kdebug.h>.
      
              * css/css_base.cpp: (CSSSelector::selectorText):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSRule::putValueProperty):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMDocument::getValueProperty):
              * khtml/ecma/kjs_events.cpp:
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMUIEvent::getValueProperty):
              (KJS::DOMMouseEvent::getValueProperty):
              (KJS::DOMKeyboardEvent::getValueProperty):
              (KJS::Clipboard::getValueProperty):
              (KJS::Clipboard::putValueProperty):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::anchorGetter):
              (KJS::HTMLElement::areaGetter):
              (KJS::KJS::HTMLElementFunction::callAsFunction):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::getValueProperty):
              (KJS::DOMTreeWalker::getValueProperty):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::clear):
              (KJS::LocationFunc::callAsFunction):
              (KJS::History::getValueProperty):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
              (SVGAnimateTransformElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              (SVGAnimationElementImpl::parseMappedAttribute):
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::finishedParsing):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValueInSpecifiedUnits):
              Removed use of kdWarning, kdDebug, etc.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      644b75ef
  26. 09 Feb, 2006 1 commit
    • mjs's avatar
      Rubber-stamped by Hyatt. · b1742373
      mjs authored
              
              - moved khtml/xml to dom
      
              * dom: moved from khtml/xml
              * WebCore.xcodeproj/project.pbxproj: Updated for new file locations.
              * WebCore+SVG/KDOMHeaders.h: Updated for new header locations.
              * dom/dom2_rangeimpl.cpp: ditto
              * dom/dom2_traversalimpl.cpp: ditto
              * dom/dom_textimpl.cpp: ditto
              * dom/dom_xmlimpl.cpp: ditto
              * khtml/dom/dom2_events.cpp: ditto
              * khtml/ecma/kjs_binding.cpp: ditto
              * khtml/ecma/kjs_dom.cpp: ditto
              * khtml/ecma/kjs_events.cpp: ditto
              * khtml/ecma/kjs_html.cpp: ditto
              * khtml/ecma/kjs_range.cpp: ditto
              * khtml/ecma/kjs_views.cpp: ditto
              * khtml/editing/Selection.cpp: ditto
              * khtml/editing/SelectionController.cpp: ditto
              * khtml/editing/delete_from_text_node_command.cpp: ditto
              * khtml/editing/edit_command.cpp: ditto
              * khtml/editing/insert_into_text_node_command.cpp: ditto
              * khtml/editing/insert_line_break_command.cpp: ditto
              * khtml/editing/insert_paragraph_separator_command.cpp: ditto
              * khtml/editing/insert_text_command.cpp: ditto
              * khtml/editing/join_text_nodes_command.cpp: ditto
              * khtml/editing/markup.cpp: ditto
              * khtml/editing/merge_identical_elements_command.cpp: ditto
              * khtml/editing/rebalance_whitespace_command.cpp: ditto
              * khtml/editing/remove_node_attribute_command.cpp: ditto
              * khtml/editing/set_node_attribute_command.cpp: ditto
              * khtml/editing/split_element_command.cpp: ditto
              * khtml/editing/split_text_node_command.cpp: ditto
              * khtml/editing/split_text_node_containing_element.cpp: ditto
              * khtml/editing/visible_position.cpp: ditto
              * khtml/editing/visible_position.h: ditto
              * khtml/editing/visible_text.cpp: ditto
              * khtml/editing/visible_text.h: ditto
              * khtml/editing/visible_units.cpp: ditto
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp: ditto
              * khtml/html/HTMLElementImpl.h: ditto
              * khtml/html/html_documentimpl.cpp: ditto
              * khtml/html/html_headimpl.cpp: ditto
              * khtml/xbl/xbl_binding_manager.cpp: ditto
              * khtml/xbl/xbl_tokenizer.cpp: ditto
              * khtml/xbl/xbl_tokenizer.h: ditto
              * ksvg2/svg/SVGAElementImpl.cpp: ditto
              * rendering/InlineTextBox.cpp: ditto
              * rendering/RenderContainer.cpp: ditto
              * rendering/RenderText.h: ditto
              * rendering/RenderTextField.cpp: ditto
              * rendering/render_frames.cpp: ditto
              * rendering/render_layer.cpp: ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1742373
  27. 30 Jan, 2006 1 commit
    • darin's avatar
      Reviewed by Maciej. · 5630e07f
      darin authored
              - killed more KWQ, KWinModule and QVariant
      
              * ForwardingHeaders/kwinmodule.h: Removed.
              * ForwardingHeaders/qvariant.h: Removed.
      
              * kwq/KWQKWinModule.h: Removed.
              * kwq/KWQKWinModule.mm: Removed.
              * kwq/KWQVariant.cpp: Removed.
              * kwq/KWQVariant.h: Removed.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removal.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_binding.cpp: Remove QVariant stuff.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              * khtml/ecma/kjs_events.cpp: (KJS::JSAbstractEventListener::handleEvent):
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_proxy.cpp: (WebCore::KJSProxyImpl::evaluate):
              * page/Frame.h:
              * page/Frame.cpp:
              (getString):
              (Frame::replaceContentsWithScriptResult):
              (Frame::executeScript):
              (Frame::executeScheduledScript):
              (Frame::changeLocation):
              (Frame::urlSelected):
              (Frame::submitForm):
              Changed to use JSValue instead of QVariant for result of executing JavaScript.
      
              * kwq/KWQObject.h: Removed a bunch of unneeded includes and forward declarations.
      
              * bridge/mac/MacFrame.mm:
              * khtml/ecma/kjs_window.h:
              * khtml/ecma/kjs_window.cpp:
              * khtml/html/html_inlineimpl.cpp:
              * khtml/html/htmltokenizer.cpp:
              * khtml/xml/DocumentImpl.cpp:
              * khtml/xml/NodeImpl.cpp:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * kwq/KWQComboBox.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQObject.cpp:
              * kwq/KWQSlider.mm:
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextField.mm:
              * loader/CachedImage.h:
              * page/FrameView.h:
              * page/FrameView.cpp:
              * rendering/render_form.cpp:
              Updated includes, since KWQObject.h now includes less.
              Also updated callers to executeScript since one overload was removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5630e07f
  28. 29 Jan, 2006 2 commits
    • hyatt's avatar
      Fix for bug 6910, don't let Image be assignable or copiable. It will... · d261538d
      hyatt authored
              Fix for bug 6910, don't let Image be assignable or copiable.  It will soon represent  the actual
              original Image (including the data) and as such must remain unique.
      
              Reviewed by darin
      
              * kcanvas/KCanvasFilters.cpp:
              (KCanvasFEImage::~KCanvasFEImage):
              (KCanvasFEImage::setCachedImage):
              * kcanvas/KCanvasFilters.h:
              (KCanvasFEImage::KCanvasFEImage):
              (KCanvasFEImage::cachedImage):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (KCanvasFEImageQuartz::getCIFilter):
              * khtml/ecma/kjs_events.cpp:
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::drawPattern):
              (KJS::_rh):
              (KJS::ImagePattern::~ImagePattern):
              (KJS::ImagePattern::createPattern):
              * khtml/ecma/kjs_html.h:
              (KJS::ImagePattern::cachedImage):
              * khtml/html/html_imageimpl.h:
              (WebCore::HTMLImageElementImpl::cachedImage):
              * khtml/xml/dom2_eventsimpl.h:
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              (SVGCursorElementImpl::~SVGCursorElementImpl):
              (SVGCursorElementImpl::parseMappedAttribute):
              * ksvg2/svg/SVGCursorElementImpl.h:
              (KSVG::SVGCursorElementImpl::cachedImage):
              * ksvg2/svg/SVGFEImageElementImpl.cpp:
              (SVGFEImageElementImpl::~SVGFEImageElementImpl):
              (SVGFEImageElementImpl::parseMappedAttribute):
              (SVGFEImageElementImpl::notifyFinished):
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (WebCore::KWQClipboard::dragImage):
              (WebCore::KWQClipboard::setDragImage):
              (WebCore::KWQClipboard::setDragImageElement):
              (WebCore::KWQClipboard::imageChanged):
              (WebCore::KWQClipboard::dragNSImage):
              * platform/Image.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d261538d
    • darin's avatar
      LayoutTests: · 2abf7cba
      darin authored
              Reviewed by Eric.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6711
                crash if an event is dispatched to a listener that uses handleEvent
      
              * fast/events/dispatch-to-handle-event.html: Added.
              * fast/events/dispatch-to-handle-event-expected.txt: Added.
      
      WebCore:
      
              Reviewed by Eric.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6711
                crash if an event is dispatched to a listener that uses handleEvent
      
              Test: fast/events/dispatch-to-handle-event.html
      
              * khtml/ecma/kjs_events.cpp: (KJS::JSAbstractEventListener::handleEvent):
              Remove boolean that is always false, and correct the one place that was
              checking it to check the correct pointer instead.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2abf7cba
  29. 27 Jan, 2006 1 commit
    • hyatt's avatar
      Fix for 6867. Rename QPixmap to Image and move it to platform/. · b9443599
      hyatt authored
              Eliminate QPaintDevice and QPaintDeviceMetrics completely, since
              they aren't necessary.
      
              Reviewed by anders
      
              * ForwardingHeaders/q3paintdevicemetrics.h: Removed.
              * ForwardingHeaders/qpaintdevice.h: Removed.
              * ForwardingHeaders/qpaintdevicemetrics.h: Removed.
              * ForwardingHeaders/qpixmap.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/MacFrame.mm:
              (MacFrame::fileWrapperForElement):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
              (nowPrinting):
              (-[WebCoreFrameBridge elementAtPoint:]):
              * css/css_valueimpl.cpp:
              (WebCore::CSSPrimitiveValueImpl::computeLength):
              (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
              * css/css_valueimpl.h:
              * css/csshelper.cpp:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              (WebCore::CSSStyleSelector::init):
              (WebCore::CSSStyleSelector::initForStyleResolve):
              (WebCore::CSSStyleSelector::styleForElement):
              (WebCore::CSSStyleSelector::pseudoStyleForElement):
              (WebCore::convertToLength):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::mapBackgroundXPosition):
              (WebCore::CSSStyleSelector::mapBackgroundYPosition):
              * css/cssstyleselector.h:
              * kcanvas/KCanvasFilters.h:
              (KCanvasFEImage::image):
              (KCanvasFEImage::setImage):
              * kcanvas/KCanvasImage.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (KCanvasFEImageQuartz::getCIFilter):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              (KCanvasImageQuartz::init):
              * khtml/ecma/kjs_events.cpp:
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::drawPattern):
              (KJS::_rh):
              (KJS::ImagePattern::createPattern):
              * khtml/ecma/kjs_html.h:
              (KJS::ImagePattern::image):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              * khtml/editing/SelectionController.h:
              * khtml/html/html_imageimpl.h:
              (WebCore::HTMLImageElementImpl::image):
              * khtml/misc/helper.h:
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl):
              (WebCore::DocumentImpl::~DocumentImpl):
              (WebCore::DocumentImpl::recalcStyle):
              (WebCore::DocumentImpl::attach):
              (WebCore::DocumentImpl::detach):
              * khtml/xml/DocumentImpl.h:
              (WebCore::DocumentImpl::printing):
              (WebCore::DocumentImpl::setPrinting):
              * khtml/xml/dom2_eventsimpl.h:
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              (WebCore::KSVGPainterFactory::cssPrimitiveToLength):
              (WebCore::KSVGPainterFactory::strokePainter):
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              (SVGCursorElementImpl::notifyFinished):
              * ksvg2/svg/SVGCursorElementImpl.h:
              (KSVG::SVGCursorElementImpl::image):
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (SVGDocumentImpl::SVGDocumentImpl):
              * ksvg2/svg/SVGFEImageElementImpl.cpp:
              (SVGFEImageElementImpl::notifyFinished):
              * ksvg2/svg/SVGMaskElementImpl.cpp:
              (KSVG::SVGMaskElementImpl::drawMaskerContent):
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              * kwq/KWQApplication.h:
              * kwq/KWQApplication.mm:
              (QDesktopWidget::screenDepth):
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (WebCore::KWQClipboard::dragImage):
              (WebCore::KWQClipboard::setDragImage):
              (WebCore::KWQClipboard::setDragImageElement):
              * kwq/KWQComboBox.mm:
              * kwq/KWQCursor.h:
              * kwq/KWQCursor.mm:
              (WebCore::createCustomCursor):
              (WebCore::QCursor::QCursor):
              * kwq/KWQKPartsEvent.h:
              * kwq/KWQObject.h:
              * kwq/KWQPaintDevice.h: Removed.
              * kwq/KWQPaintDeviceMetrics.h: Removed.
              * kwq/KWQPaintDeviceMetrics.mm: Removed.
              * kwq/KWQPainter.h:
              (WebCore::QPainter::printing):
              * kwq/KWQPainter.mm:
              (WebCore::QPainter::drawImage):
              (WebCore::QPainter::drawFloatImage):
              (WebCore::QPainter::drawTiledImage):
              (WebCore::QPainter::drawScaledAndTiledImage):
              * kwq/KWQPixmap.h: Removed.
              * kwq/KWQPixmap.mm: Removed.
              * kwq/KWQPrinter.h:
              (QPrinter::QPrinter):
              * kwq/KWQWidget.h:
              * loader/Cache.cpp:
              (khtml::Cache::init):
              (khtml::Cache::clear):
              (khtml::Cache::requestImage):
              (khtml::Cache::getStatistics):
              * loader/Cache.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::CachedImage):
              (WebCore::CachedImage::ref):
              (WebCore::CachedImage::tiled_image):
              (WebCore::CachedImage::image):
              (WebCore::CachedImage::image_size):
              (WebCore::CachedImage::do_notify):
              (WebCore::CachedImage::data):
              (WebCore::CachedImage::error):
              * loader/CachedImage.h:
              * loader/CachedImageCallback.cpp:
              (WebCore::CachedImageCallback::notifyUpdate):
              (WebCore::CachedImageCallback::notifyFinished):
              (WebCore::CachedImageCallback::handleError):
              * loader/CachedObject.h:
              (WebCore::CachedObject::):
              * loader/CachedObjectClient.h:
              (WebCore::CachedObjectClient::setImage):
              * loader/DocLoader.cpp:
              (khtml::DocLoader::setAutoloadImages):
              (khtml::DocLoader::setShowAnimations):
              * loader/loader.cpp:
              (WebCore::Loader::servePendingRequests):
              (WebCore::Loader::slotFinished):
              * page/Frame.cpp:
              (Frame::paint):
              * page/Frame.h:
              * page/FrameView.cpp:
              (selectCursor):
              * page/FrameView.h:
              * platform/Image.h: Added.
              * platform/mac/Image.mm: Added.
              (WebCore::Image::loadResource):
              (WebCore::Image::Image):
              (WebCore::Image::~Image):
              (WebCore::Image::imageRef):
              (WebCore::Image::resetAnimation):
              (WebCore::Image::setAnimationRect):
              (-[WebImageCallback initWithCallback:WebCore::]):
              (WebCore::Image::shouldUseThreadedDecoding):
              (WebCore::Image::receivedData):
              (WebCore::Image::mask):
              (WebCore::Image::isNull):
              (WebCore::Image::size):
              (WebCore::Image::rect):
              (WebCore::Image::width):
              (WebCore::Image::height):
              (WebCore::Image::resize):
              (WebCore::Image::operator=):
              (WebCore::Image::increaseUseCount):
              (WebCore::Image::decreaseUseCount):
              (WebCore::Image::stopAnimations):
              (WebCore::Image::flushRasterCache):
              * rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paint):
              * rendering/InlineTextBox.h:
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintChildren):
              (WebCore::RenderBlock::paintObject):
              * rendering/RenderText.h:
              * rendering/font.cpp:
              (khtml::Font::update):
              * rendering/font.h:
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/render_canvasimage.cpp:
              (WebCore::RenderCanvasImage::paint):
              * rendering/render_flow.cpp:
              (RenderFlow::paintLines):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::~RenderImage):
              (WebCore::RenderImage::setContentObject):
              (WebCore::RenderImage::setImage):
              (WebCore::RenderImage::paint):
              (WebCore::RenderImage::layout):
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
              * rendering/render_image.h:
              (WebCore::RenderImage::image):
              (WebCore::RenderImage::getImage):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              * rendering/render_list.cpp:
              (RenderListItem::getAbsoluteRepaintRect):
              (RenderListMarker::paint):
              (RenderListMarker::setImage):
              (RenderListMarker::calcMinMaxWidth):
              * rendering/render_list.h:
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::setImage):
              * rendering/render_object.h:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::paint):
              * rendering/render_replaced.h:
              * rendering/render_theme_mac.mm:
              (khtml::RenderThemeMac::setFontFromControlSize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9443599
  30. 26 Jan, 2006 1 commit
    • andersca's avatar
      2006-01-26 Anders Carlsson <andersca@mac.com> · 9a13bc94
      andersca authored
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6805
              Support constants in IDL files
      
              * bindings/scripts/CodeGeneratorJS.pm:
              If an interface has constants, generate a constructor
              object and add the constants as properties. Also add a
              getConstructor method to the interface object.
              
              * bindings/scripts/CodeGenerator.pm:
              * bindings/scripts/generate-bindings.pl:
              Add a --force-generation flag to force regeneration of files
              even though nothing has changed.
              
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_events.h:
              Remove MutationEventConstructor and DOMMutationEvent,
              those are autogenerated now.
              
              * bindings/js/JSEvents.cpp:
              Include JSMutationEvent.cpp
      
              * khtml/ecma/kjs_window.cpp:        
              (KJS::Window::getValueProperty):
              * khtml/ecma/kjs_window.h:
              (KJS::Window::):
              Add MutationEvent property.
              
              * khtml/xml/MutationEvent.idl: Added.
      
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a13bc94
  31. 25 Jan, 2006 1 commit
    • andersca's avatar
      2006-01-24 Anders Carlsson <andersca@mac.com> · 16ca0153
      andersca authored
              Reviewed by Darin.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=5975
              WebCore needs to use KDOM-like DOM binding autogeneration
              
              This is a first cut at an autogeneration framework based on 
              what KDOM uses, but with some changes to be able to move
              gradually to using autogenerated files. Currently only Javascript
              is supported, but ObjC support could be added by writing a new code
              generator package.
              
              * WebCore.xcodeproj/project.pbxproj:
              Call generate-bindings.pl
      
              * bindings/js/JSEvents.cpp: Added.
              New file which #includes all generated files in the event module
              (Just JSWheelEvent.cpp for now)
              
              * khtml/xml/WheelEvent.idl: Added.
              
              * bindings/scripts: Added.
              * bindings/scripts/CodeGenerator.pm: Added.
              * bindings/scripts/CodeGeneratorJS.pm: Added.
              * bindings/scripts/IDLParser.pm: Added.
              * bindings/scripts/IDLStructure.pm: Added.
              * bindings/scripts/generate-bindings.pl: Added.
              
              * khtml/ecma/kjs_events.cpp:
              Remove DOMWheelEvent class.
              
              (KJS::getDOMEvent):
              Use JSWheelEvent here.
              
              * khtml/ecma/kjs_events.h:
              Remove DOMWheelEvent class.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16ca0153
  32. 22 Jan, 2006 2 commits
    • eseidel's avatar
      2006-01-22 Eric Seidel <eseidel@apple.com> · 1baa4444
      eseidel authored
              Reviewed by darin.
      
              SVG needs to support "evt" instead of "event" in event handlers.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=5874
      
              * WebCore.xcodeproj/project.pbxproj: added new classes
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxyImpl::createHTMLEventHandler): simplified
              (WebCore::KJSProxyImpl::createSVGEventHandler): new
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/kjs_window.h:
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::createHTMLEventListener): simplified
              (WebCore::DocumentImpl::createSVGEventListener): new
              * khtml/xml/DocumentImpl.h:
              * khtml/xml/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchEvent): use RefPtr
              * ksvg2/events/JSSVGLazyEventListener.cpp: Added.
              (WebCore::JSSVGLazyEventListener::JSSVGLazyEventListener): added.
              (WebCore::JSSVGLazyEventListener::eventParameterName): added.
              * ksvg2/events/JSSVGLazyEventListener.h: Added.
              * ksvg2/svg/SVGElementImpl.cpp:
              (SVGElementImpl::parseMappedAttribute): use new SVG event handler
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              (SVGSVGElementImpl::parseMappedAttribute): use new SVG event handler
              * page/Frame.cpp: updated KJSProxyImpl namespace
              * page/Frame.h: updated KJSProxyImpl namespace
              * page/FramePrivate.h: updated KJSProxyImpl namespace
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1baa4444
    • ap's avatar
      Reviewed by Maciej. · f859a44c
      ap authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=6642
                Split XMLHttpRequest class into JS binding and implementation
      
              * WebCore.xcodeproj/project.pbxproj: Adjusted for moved and renamed files.
              New group "xml" to match directory structure.
              * xml: Added.
              * khtml/ecma/JSXMLHttpRequest.cpp: Added.
              * khtml/ecma/JSXMLHttpRequest.h: Added.
              * khtml/ecma/xmlhttprequest.cpp: Removed.
              * khtml/ecma/xmlhttprequest.h: Removed.
              * xml/xmlhttprequest.cpp: Added.
              * xml/xmlhttprequest.h: Added.
              * khtml/ecma/kjs_binding.cpp:
              (KJS::jsStringOrUndefined): Moved from kjs_events.cpp.
              * khtml/ecma/kjs_binding.h: Added prototype for jsStringOrUndefined().
              * khtml/ecma/kjs_events.cpp: Removed jsStringOrUndefined().
              * khtml/ecma/kjs_window.cpp: 
              (KJS::Window::getValueProperty): Use new class name for JSXMLHttpRequest.
              * kwq/KWQSlot.cpp: XMLHttpRequestQObject is now in WebCore, not KJS.
              * page/Frame.cpp:
              (Frame::stopLoading): XMLHttpRequest is now in WebCore, not KJS.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f859a44c
  33. 21 Jan, 2006 1 commit
    • andersca's avatar
      2006-01-21 Anders Carlsson <andersca@mac.com> · b3a34017
      andersca authored
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=3869
              Should use HTML Image element instead of JS Image object
      
              * khtml/ecma/kjs_events.cpp:
              (KJS::ClipboardProtoFunc::callAsFunction):
              Don't check Image object. Instead, if the element passed in
              is an image element which isn't in any document, use its pixmap.
              
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLElement::imageGetter):
              Add complete.
              
              (KJS::ImageConstructorImp::construct):
              Take a QPixmap instead of an Image.
              
              (KJS::KJS::Context2DFunction::callAsFunction):
              Remove usage of Image and use HTMLImageElementImpl instead.
      
              * khtml/ecma/kjs_html.h:
              Remove Image class.
              
              (KJS::HTMLElement::):
              Add ImgComplete.
              
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLImageElementImpl::width):
              (WebCore::HTMLImageElementImpl::height):
              If the element has no renderer but its image size is known
              return that instead.
              
              (WebCore::HTMLImageElementImpl::complete):
              New function, returns true if an image has finished loading.
              
              * khtml/html/html_imageimpl.h:
              Add complete.
              
              * manual-tests/drag-image.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3a34017
  34. 18 Jan, 2006 1 commit
  35. 16 Jan, 2006 1 commit
    • darin's avatar
      Reviewed by John Sullivan. · bbe6466a
      darin authored
              - removed all uses of QPtrDict, most uses of QMap
      
              * khtml/ecma/kjs_dom.cpp: Converted tabs to spaces.
              (KJS::DOMNode::mark): Switched from QPtrDict to HashSet.
              * khtml/ecma/kjs_events.cpp: Converted tabs to spaces.
              (KJS::JSUnprotectedEventListener::JSUnprotectedEventListener): Use HashMap.
              (KJS::JSEventListener::JSEventListener): Use HashMap.
              (KJS::JSLazyEventListener::parseCode): Use HashMap.
              * khtml/ecma/kjs_html.cpp: Convert tabs to spaces.
              (KJS::KJS::HTMLElement::classInfo): Use HashMap.
              * khtml/ecma/kjs_window.cpp: Convert tabs to spaces.
              (KJS::Window::~Window): Use HashMap.
              (KJS::Window::getJSEventListener): Ditto.
              (KJS::Window::getJSUnprotectedEventListener): Ditto.
              (KJS::WindowQObject::parentDestroyed): Ditto.
              (KJS::WindowQObject::installTimeout): Ditto.
              (KJS::WindowQObject::pauseTimeouts): Ditto.
              (KJS::WindowQObject::resumeTimeouts): Ditto.
              (KJS::WindowQObject::clearTimeout): Ditto.
              (KJS::WindowQObject::timerEvent): Ditto.
              * khtml/ecma/kjs_window.h: Use HashMap.
              * khtml/ecma/xmlhttprequest.cpp: Convert tabs to spaces.
              (KJS::XMLHttpRequest::requestsByDocument): Use HashMap/Set.
              (KJS::XMLHttpRequest::addToRequestsByDocument): Ditto.
              (KJS::XMLHttpRequest::removeFromRequestsByDocument): Ditto.
              (KJS::XMLHttpRequest::cancelRequests): Ditto.
              * khtml/ecma/xmlhttprequest.h: Ditto.
              * khtml/editing/apply_style_command.cpp:
              (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Use HashMap.
              * khtml/rendering/render_canvas.cpp:
              (RenderCanvas::selectionRect): Use HashMap.
              (RenderCanvas::setSelection): Ditto.
              * khtml/rendering/render_flow.cpp: (RenderFlow::paintLines): Use HashSet.
              * khtml/rendering/render_line.cpp: (khtml::InlineFlowBox::paint): Use HashSet.
              * khtml/rendering/render_object.h: Used HashSet.
              Converted tabs to spaces and did namespace changes too.
              * khtml/xml/DocumentImpl.cpp:
              (DocumentImpl::DocumentImpl): Use HashSet and HashMap.
              (DocumentImpl::~DocumentImpl): Ditto.
              (DocumentImpl::registerDisconnectedNodeWithEventListeners): Ditto.
              (DocumentImpl::unregisterDisconnectedNodeWithEventListeners): Ditto.
              (DocumentImpl::removeAllDisconnectedNodeEventListeners): Ditto.
              (DocumentImpl::addImageMap): Ditto.
              (DocumentImpl::removeImageMap): Ditto.
              (DocumentImpl::getImageMap): Ditto.
              (DocumentImpl::addMarker): Ditto.
              (DocumentImpl::copyMarkers): Ditto.
              (DocumentImpl::removeMarkers): Ditto.
              (DocumentImpl::markersForNode): Ditto.
              (DocumentImpl::shiftMarkers): Ditto.
              (DocumentImpl::radioButtonChecked): Ditto.
              (DocumentImpl::checkedRadioButtonForGroup): Ditto.
              (DocumentImpl::removeRadioButtonGroup): Ditto.
              * khtml/xml/DocumentImpl.h: Use HashSet and HashMap.
              * khtml/xml/NodeImpl.cpp:
              (WebCore::NodeImpl::registerNodeList): Use HashSet.
              (WebCore::NodeImpl::unregisterNodeList): Ditto.
              (WebCore::NodeImpl::notifyLocalNodeListsAttributeChanged): Ditto.
              (WebCore::NodeImpl::notifyNodeListsAttributeChanged): Ditto.
              (WebCore::NodeImpl::notifyLocalNodeListsChildrenChanged): Ditto.
              (WebCore::NodeImpl::notifyNodeListsChildrenChanged): Ditto.
              (WebCore::NodeImpl::getElementsByTagName): Moved here so we don't have
              to include NodeListImpl.h in the header.
              * khtml/xml/NodeImpl.h: Use HashSet. Reduced includes.
              * khtml/xml/dom_elementimpl.cpp:
              (WebCore::MappedAttributeKey): Added. Hash table key.
              (WebCore::MappedAttributeKeyTraits): Added. Hash table key traits.
              (WebCore::MappedAttributeHash): Added. Hash function.
              (WebCore::StyledElementImpl::getMappedAttributeDecl): Use HashMap.
              (WebCore::StyledElementImpl::setMappedAttributeDecl): Ditto.
              (WebCore::StyledElementImpl::removeMappedAttributeDecl): Ditto.
              (WebCore::MappedAttributeHash::hash): Added. Hash function.
              * khtml/xml/dom_elementimpl.h: Use HashMap.
      
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLMapElementImpl::parseMappedAttribute): Update m_name handling
              to use AtomicString.
              * khtml/html/html_imageimpl.h:
              (WebCore::HTMLMapElementImpl::getName): Change to return const AtomicString&.
      
              * khtml/dom/dom_string.h: Added a default argument to substring, also
              reduced includes and updated namespace.
              * khtml/xml/dom_stringimpl.h: Ditto.
      
              * bridge/mac/WebCoreFrameBridge.mm: Switched to new WebCore namespace.
              Updated includes for header changes.
              * kcanvas/RenderForeignObject.cpp: Ditto.
              * kcanvas/RenderForeignObject.h: Ditto.
              * kcanvas/RenderSVGImage.h: Ditto.
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h: Ditto.
              * khtml/css/css_ruleimpl.cpp: Ditto.
              * khtml/css/css_valueimpl.h: Ditto.
              * khtml/ecma/kjs_dom.h: Ditto.
              * khtml/ecma/kjs_html.h: Ditto.
              * khtml/editing/composite_edit_command.cpp: Ditto.
              * khtml/editing/delete_selection_command.cpp: Ditto.
              * khtml/html/html_tableimpl.cpp: Ditto.
              * khtml/khtml_events.cpp: Ditto.
              * khtml/rendering/RenderText.cpp: Ditto.
              * khtml/rendering/render_block.cpp: Ditto.
              * khtml/rendering/render_br.cpp: Ditto.
              * khtml/rendering/render_inline.cpp: Ditto.
              * khtml/rendering/render_object.cpp: Ditto.
              * khtml/rendering/render_replaced.cpp: Ditto.
              * khtml/xml/dom2_rangeimpl.cpp: Ditto.
              * kwq/DOM.mm: Ditto.
              * page/Frame.cpp: Ditto.
      
              * kcanvas/KCanvasResources.cpp: (KCanvasMarker::draw): Updated because a
              constant moved into the WebCore namespace.
              * kcanvas/RenderSVGText.cpp: (RenderSVGText::nodeAtPoint): Ditto.
              * kcanvas/RenderSVGText.h: Ditto.
              * kcanvas/device/quartz/KCanvasItemQuartz.h: Ditto.
              * kcanvas/device/quartz/KCanvasItemQuartz.mm:
              (KCanvasItemQuartz::paint): Ditto.
              (KCanvasItemQuartz::nodeAtPoint): Ditto.
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              (KCanvasContainerQuartz::paint): Ditto.
      
              * khtml/xbl/xbl_binding_manager.cpp: Removed include of qptrddict.h.
              * khtml/xbl/xbl_binding_manager.h: Removed include of qptrddict.h.
              * khtml/xbl/xbl_docimpl.h: Removed include of qptrddict.h.
      
              * khtml/xml/dom_xmlimpl.cpp: Changed to use RefPtr for strings.
              * khtml/xml/dom_xmlimpl.h: Ditto.
      
              * ksvg2/css/SVGRenderStyle.h: Reduced includes a bit and added newly-needed ones.
              * ksvg2/misc/KSVGTimeScheduler.cpp: Ditto.
              * ksvg2/svg/SVGPointImpl.cpp: Ditto.
      
              * kwq/KWQNamespace.h: Removed QColor, QCursor, and redundant declaration of QRgb
              (now in qcolor.h). Also converted tabs to spaces.
      
              * kwq/KWQPainter.h: Added newly-needed include.
      
              * kwq/KWQPtrVector.h: Added append function.
              * kwq/KWQVectorImpl.cpp: (KWQVectorImpl::append): Added.
              * kwq/KWQVectorImpl.h: Added append.
      
              * kwq/KWQRenderTreeDebug.cpp: Updated to no longer use transparentColor constant.
      
              * kwq/KWQWMatrix.cpp: Changed name to QMatrix to allow forward declarations.
              * kwq/KWQWMatrix.h: Ditto.
      
              * loader/Cache.cpp: (khtml::Cache::clear): Use deleteAllValues for clearer code.
      
              * loader/CachedCSSStyleSheet.cpp: Reduced includes a lot, moving them from .h to .cpp.
              * loader/CachedCSSStyleSheet.h: Ditto.
              * loader/CachedImage.cpp: Ditto.
              * loader/CachedImage.h: Ditto.
              * loader/CachedImageCallback.cpp: Ditto.
              * loader/CachedObject.cpp: Ditto.
              * loader/CachedObject.h: Ditto.
              * loader/CachedObjectClient.h: Ditto.
              * loader/CachedObjectClientWalker.cpp: Ditto.
              * loader/CachedObjectClientWalker.h: Ditto.
              * loader/CachedScript.cpp: Ditto.
              * loader/CachedScript.h: Ditto.
              * loader/CachedXSLStyleSheet.cpp: Ditto.
      
              * loader/loader.cpp:
              (WebCore::Loader::Loader): Changed to use HashMap.
              (WebCore::Loader::~Loader): Ditto.
              (WebCore::Loader::servePendingRequests): Ditto.
              (WebCore::Loader::slotFinished): Ditto.
              (WebCore::Loader::slotReceivedResponse): Ditto.
              (WebCore::Loader::slotData): Ditto.
              (WebCore::Loader::numRequests): Ditto.
              (WebCore::Loader::cancelRequests): Ditto.
              (WebCore::Loader::jobForRequest): Ditto.
              * loader/loader.h: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbe6466a
  36. 14 Jan, 2006 1 commit
    • eseidel's avatar
      2006-01-14 Eric Seidel <eseidel@apple.com> · e03393aa
      eseidel authored
              Reviewed by NOBODY (OOPS!).
      
              break classes in dom_nodeimpl.* into separate files (one per class)
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6543
      
              * ForwardingHeaders/kdom/core/NodeImpl.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/MacFrame.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              * khtml/css/css_base.h:
              * khtml/css/css_stylesheetimpl.cpp:
              * khtml/css/css_valueimpl.cpp:
              * khtml/css/css_valueimpl.h:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/htmlediting.h:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/remove_node_attribute_command.h:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/set_node_attribute_command.h:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_text.cpp:
              * khtml/html/HTMLOptionElementImpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/khtml_events.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_frames.h:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_object.h:
              * khtml/xml/ChildNodeListImpl.cpp: Added.
              * khtml/xml/ChildNodeListImpl.h: Added.
              * khtml/xml/ContainerNodeImpl.cpp: Added.
              (DOM::ContainerNodeImpl::removeAllChildren):
              (DOM::ContainerNodeImpl::checkSameDocument):
              (DOM::ContainerNodeImpl::getRect):
              (DOM::ContainerNodeImpl::dispatchChildRemovalEvents):
              * khtml/xml/ContainerNodeImpl.h: Added.
              * khtml/xml/DocumentFragmentImpl.cpp:
              * khtml/xml/DocumentFragmentImpl.h:
              * khtml/xml/DocumentImpl.cpp:
              * khtml/xml/DocumentImpl.h:
              (DOM::DocumentImpl::setTextColor):
              * khtml/xml/DocumentTypeImpl.cpp:
              * khtml/xml/DocumentTypeImpl.h:
              * khtml/xml/NameNodeListImpl.cpp: Added.
              * khtml/xml/NameNodeListImpl.h: Added.
              * khtml/xml/NamedNodeMapImpl.h: Added.
              (DOM::NamedNodeMapImpl::NamedNodeMapImpl):
              (DOM::NamedNodeMapImpl::~NamedNodeMapImpl):
              * khtml/xml/NodeImpl.cpp: Added.
              (DOM::TagNodeListImpl::TagNodeListImpl):
              (DOM::TagNodeListImpl::length):
              (DOM::TagNodeListImpl::item):
              (DOM::TagNodeListImpl::nodeMatches):
              (DOM::NodeImpl::getRect):
              * khtml/xml/NodeImpl.h: Added.
              * khtml/xml/NodeListImpl.cpp: Added.
              * khtml/xml/NodeListImpl.h: Added.
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp: Removed.
              * khtml/xml/dom_nodeimpl.h: Removed.
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_textimpl.h:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/dom_xmlimpl.h:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * khtml/xsl/xslt_processorimpl.h:
              * ksvg2/svg/SVGURIReferenceImpl.cpp:
              * kwq/DOM.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMUtility.mm:
              * kwq/KWQClipboard.h:
              * page/FrameView.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e03393aa
  37. 13 Jan, 2006 1 commit
    • hyatt's avatar
      Convert QPoint and QPointArray to IntPoint and IntPointArray. · 85fa3d50
      hyatt authored
              Factor out the Objective-C-specific logic into a .mm file
              for IntPoint.
              
              * ForwardingHeaders/qpoint.h: Removed.
              * ForwardingHeaders/qpointarray.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLView.cpp:
              (KHTMLView::viewportToGlobal):
              * bridge/mac/KWQKPartsBrowserExtension.h:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (MacFrame::khtmlMouseMoveEvent):
              (MacFrame::dragSourceMovedTo):
              (MacFrame::dragSourceEndedAt):
              (MacFrame::dispatchDragSrcEvent):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge elementAtPoint:]):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
              (-[WebCoreFrameBridge dragSourceMovedTo:]):
              (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
              * kcanvas/KCanvasItem.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              (operator<<):
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_window.cpp:
              (KJS::WindowFunc::callAsFunction):
              * khtml/editing/SelectionController.cpp:
              (khtml::SelectionController::layout):
              (khtml::SelectionController::caretRect):
              * khtml/editing/SelectionController.h:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              (DOM::HTMLAreaElementImpl::mapMouseEvent):
              (DOM::HTMLAreaElementImpl::getRegion):
              * khtml/rendering/render_image.cpp:
              (RenderImage::paint):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::paint):
              * khtml/rendering/render_object.cpp:
              (RenderObject::drawBorder):
              * khtml/xml/dom2_eventsimpl.h:
              * ksvg2/svg/SVGPointImpl.cpp:
              (SVGPointImpl::SVGPointImpl):
              * ksvg2/svg/SVGPointImpl.h:
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              (SVGSVGElementImpl::createSVGPoint):
              * ksvg2/svg/SVGSVGElementImpl.h:
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (KWQClipboard::dragLocation):
              (KWQClipboard::setDragImage):
              (KWQClipboard::setDragImageElement):
              * kwq/KWQCursor.h:
              * kwq/KWQEvent.h:
              (QMouseEvent::pos):
              (QWheelEvent::QWheelEvent):
              (QWheelEvent::pos):
              (QWheelEvent::globalPos):
              * kwq/KWQEvent.mm:
              (positionForEvent):
              (globalPositionForEvent):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (QPainter::drawConvexPolygon):
              (QPainter::drawPixmap):
              * kwq/KWQPixmap.mm:
              (QPixmap::rect):
              * kwq/KWQPoint.mm: Removed.
              * kwq/KWQPointArray.cpp: Removed.
              * kwq/KWQPointArray.h: Removed.
              * kwq/KWQPointF.h:
              * kwq/KWQPointF.mm:
              (yCoord):
              * kwq/KWQRect.h:
              (QRect::moveTopLeft):
              (QRect::contains):
              * kwq/KWQRect.mm:
              (QRect::QRect):
              (QRect::topLeft):
              (QRect::topRight):
              (QRect::bottomRight):
              (QRect::bottomLeft):
              * kwq/KWQRegion.cpp:
              (QRegion::QRegion):
              (QRegion::contains):
              * kwq/KWQRegion.h:
              * kwq/KWQScrollView.h:
              * kwq/KWQScrollView.mm:
              (QScrollView::contentsToViewport):
              * kwq/KWQWidget.h:
              * kwq/KWQWidget.mm:
              (QWidget::pos):
              (QWidget::move):
              (QWidget::mapFromGlobal):
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::mapFromGlobal):
              (KWQWindowWidget::viewportToGlobal):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameView.cpp:
              (KHTMLView::dispatchDragEvent):
              (KHTMLView::updateDragAndDrop):
              (KHTMLView::cancelDragAndDrop):
              (KHTMLView::performDragAndDrop):
              * page/FrameView.h:
              * platform/IntPoint.cpp: Added.
              (WebCore::IntPoint::IntPoint):
              (WebCore::operator+):
              (WebCore::operator-):
              (WebCore::operator*):
              * platform/IntPoint.h: Added.
              (WebCore::IntPoint::x):
              (WebCore::IntPoint::y):
              (WebCore::IntPoint::setX):
              (WebCore::IntPoint::setY):
              (WebCore::IntPoint::isNull):
              (WebCore::IntPoint::operator -=):
              * platform/IntPointArray.cpp: Added.
              (IntPointArray::IntPointArray):
              (IntPointArray::copy):
              (IntPointArray::boundingRect):
              (IntPointArray::point):
              (IntPointArray::setPoint):
              (IntPointArray::setPoints):
              * platform/IntPointArray.h: Added.
              (WebCore::IntPointArray::IntPointArray):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85fa3d50