1. 31 May, 2006 1 commit
    • ggaren's avatar
      Reviewed by Maciej. · 0aa50c48
      ggaren authored
              - Fixed <rdar://problem/4559720> window sizing: make javascript window 
              and screen sizing methods and properties work @ HIDPI
              
              The general approach here is to change some ints to floats, make 
              a few key functions that scale between WebView and window/screen 
              coordinates, and change other functions that work with screen 
              coordinates to use the scaling functions for their underlying 
              implementations.
      
              * manual-tests/window-open-features.html: Removed.
              * manual-tests/window-sizing.html: Added. More test coverage.
      
              * bindings/js/kjs_window.cpp: Changed ints to floats and IntRects to
              FloatRects, because window coordinates can be fractional when scaled 
              to WebView/DOM coordinates.
              (KJS::floatFeature):
              (KJS::showModalDialog):
              (KJS::Window::getValueProperty):
              (KJS::constrainToVisible):
              (KJS::WindowFunc::callAsFunction):
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow): Removed custom scaling
              code and replaced with calls to Page::windowRect and 
              Page::setWindowRect. Renamed 'page' and 'bridge' to 'pageBridge' and
              'frameBridge,' respectively.
              * bridge/mac/PageMac.mm:
              (WebCore::Page::windowRect): Changed to use scaling
              (WebCore::Page::setWindowRect): ditto
              * bridge/mac/WebCoreFrameBridge.mm:
              (globalPoint):
              * page/Page.h:
              * platform/IntRect.h:
              * platform/Screen.h:
              * platform/mac/MouseEventMac.mm:
              (WebCore::globalPositionForEvent): Changed to use flipScreenPoint
              * platform/mac/ScreenMac.mm:
              (WebCore::flipScreenRect): New key function
              (WebCore::flipScreenPoint): New key function
              (WebCore::scaleScreenRectToView): New key function
              (WebCore::scaleViewRectToScreen): New key function
              (WebCore::screenRect): Changed to use scaling
              (WebCore::usableScreenRect): ditto
      
              Feeble attempt to preserve Windows build:
              
              * platform/win/ScreenWin.cpp:
              (WebCore::scaleScreenRectToWidget): stub -- doesn't actually scale
              (WebCore::scaleWidgetRectToScreen): ditto
              * bridge/win/PageWin.cpp:
              (WebCore::Page::Page):
              (WebCore::Page::widget):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0aa50c48
  2. 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
  3. 22 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-22 Eric Seidel <eseidel@apple.com> · cff0a728
      eseidel authored
              Reviewed by darin.
      
              Replace more DeprecatedString with String.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7907
      
              * WebCore+SVG/kdom.h:
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::setTypedIconURL):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::searchForLabelsBeforeElement):
              (WebCore::nsArray):
              (WebCore::FrameMac::createPlugin):
              (WebCore::FrameMac::bindingRootObject):
              (WebCore::FrameMac::windowScriptObject):
              (WebCore::FrameMac::windowScriptNPObject):
              (WebCore::FrameMac::partClearedInBegin):
              (WebCore::FrameMac::openURLFromPageCache):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              (-[WebCoreFrameBridge scrollToAnchor:]):
              (-[WebCoreFrameBridge URLWithAttributeString:]):
              (-[WebCoreFrameBridge highlightAllMatchesForString:caseSensitive:]):
              * bridge/mac/WebCoreScriptDebugger.mm:
              (-[WebCoreScriptCallFrame evaluateWebScript:]):
              * bridge/mac/WebCoreSettings.mm:
              (-[WebCoreSettings _updateAllViews]):
              (-[WebCoreSettings setStandardFontFamily:]):
              (-[WebCoreSettings setMinimumFontSize:]):
              (-[WebCoreSettings setMinimumLogicalFontSize:]):
              (-[WebCoreSettings setDefaultFontSize:]):
              (-[WebCoreSettings setDefaultFixedFontSize:]):
              (-[WebCoreSettings setUserStyleSheetLocation:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSGrammar.y:
              * css/css_stylesheetimpl.cpp:
              (WebCore::MediaList::setMediaText):
              * css/css_valueimpl.cpp:
              (WebCore::quoteStringIfNeeded):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseColor):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              * css/cssstyleselector.h:
              * dom/Document.cpp:
              (WebCore::Document::resetActiveLinkColor):
              (WebCore::Document::nextState):
              (WebCore::Document::setUserStyleSheet):
              (WebCore::Document::processHttpEquiv):
              (WebCore::Document::recalcStyleSelector):
              * dom/Document.h:
              (WebCore::Document::userStyleSheet):
              (WebCore::Document::setPrintStyleSheet):
              (WebCore::Document::printStyleSheet):
              * editing/markup.cpp:
              (WebCore::createMarkup):
              (WebCore::createFragmentFromMarkup):
              (WebCore::createFragmentFromText):
              * editing/markup.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              * html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElement::openURL):
              (WebCore::HTMLFrameElement::attach):
              * html/html_headimpl.cpp:
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::setStyleSheet):
              * html/html_headimpl.h:
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageElement::parseMappedAttribute):
              * html/html_imageimpl.h:
              (WebCore::HTMLImageElement::compositeOperator):
              * html/html_objectimpl.cpp:
              (WebCore::HTMLAppletElement::createRenderer):
              * ksvg2/svg/SVGStringList.cpp:
              (SVGStringList::reset):
              * kwq/AccessibilityObjectCache.h:
              * kwq/AccessibilityObjectCache.mm:
              (AccessibilityObjectCache::textMarkerForVisiblePosition):
              (AccessibilityObjectCache::postNotificationToTopWebArea):
              (AccessibilityObjectCache::postNotification):
              * kwq/ClipboardMac.mm:
              (WebCore::cocoaTypeFromMIMEType):
              * kwq/KWQKHTMLSettings.h:
              (KHTMLSettings::userStyleSheetLocation):
              (KHTMLSettings::setUserStyleSheetLocation):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::selectedText):
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::ref):
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet):
              (WebCore::Frame::jScriptEnabled):
              (WebCore::Frame::javaEnabled):
              (WebCore::Frame::pluginsEnabled):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::begin):
              (WebCore::Frame::setUserStyleSheet):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::loadPlugin):
              (WebCore::Frame::referrer):
              (WebCore::Frame::lastModified):
              (WebCore::Frame::reparseConfiguration):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * platform/AtomicString.h:
              (WebCore::AtomicString::AtomicString):
              * platform/DeprecatedString.cpp:
              (DeprecatedString::replace):
              * platform/GraphicsContext.h:
              * platform/Image.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/PlatformString.h:
              (WebCore::String::String):
              (WebCore::String::replace):
              * platform/String.cpp:
              (WebCore::operator+):
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::remove):
              (WebCore::parseLength):
              (WebCore::StringImpl::replace):
              * platform/StringImpl.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::setCompositeOperation):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/render_form.cpp:
              (WebCore::RenderSelect::updateFromElement):
              * rendering/render_frames.cpp:
              (WebCore::isURLAllowed):
              (WebCore::mapClassIdToServiceType):
              (WebCore::RenderPartObject::updateWidget):
              * rendering/render_style.h:
              (WebCore::RenderStyle::setDashboardRegion):
              * xml/xmlhttprequest.cpp:
              (WebCore::getCharset):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::overrideMIMEType):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cff0a728
  4. 20 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-20 Eric Seidel <eseidel@apple.com> · 27707962
      eseidel authored
              Reviewed by darin.
      
              Remove many, many uses of DeprecatedString.
              Fix various style issues throughout the touched code.
      
              * bindings/objc/DOM.mm:
              (-[DOMRange _text]):
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/FrameMac.h:
              (WebCore::FrameMac::bridge):
              (WebCore::FrameMac::markedTextRange):
              (WebCore::Mac):
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::openURLRequest):
              (WebCore::FrameMac::searchForLabelsAboveCell):
              (WebCore::FrameMac::searchForLabelsBeforeElement):
              (WebCore::FrameMac::matchLabelsAgainstElement):
              (WebCore::FrameMac::findString):
              (WebCore::FrameMac::submitForm):
              (WebCore::FrameMac::urlSelected):
              (WebCore::FrameMac::objectContentType):
              (WebCore::FrameMac::createPlugin):
              (WebCore::FrameMac::createFrame):
              (WebCore::FrameMac::setTitle):
              (WebCore::FrameMac::setStatusBarText):
              (WebCore::FrameMac::advanceToNextMisspelling):
              (WebCore::FrameMac::userAgent):
              (WebCore::FrameMac::mimeTypeForFileName):
              (WebCore::FrameMac::openURLFromPageCache):
              (WebCore::FrameMac::incomingReferrer):
              (WebCore::FrameMac::attributedString):
              (WebCore::FrameMac::overrideMediaType):
              (WebCore::FrameMac::shouldClose):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge _documentTypeString]):
              (-[WebCoreFrameBridge selectedString]):
              (-[WebCoreFrameBridge stringForRange:]):
              (-[WebCoreFrameBridge advanceToNextMisspelling]):
              (-[WebCoreFrameBridge advanceToNextMisspellingStartingJustBeforeSelection]):
              (-[WebCoreFrameBridge domain]):
              * bridge/mac/WebCoreSettings.mm:
              (-[WebCoreSettings setStandardFontFamily:]):
              (-[WebCoreSettings setFixedFontFamily:]):
              (-[WebCoreSettings setSerifFontFamily:]):
              (-[WebCoreSettings setSansSerifFontFamily:]):
              (-[WebCoreSettings setCursiveFontFamily:]):
              (-[WebCoreSettings setFantasyFontFamily:]):
              (-[WebCoreSettings setUserStyleSheetLocation:]):
              (-[WebCoreSettings setDefaultTextEncoding:]):
              * css/css_valueimpl.cpp:
              (WebCore::quoteStringIfNeeded):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              (WebCore::CSSStyleSelector::setEncodedURL):
              (WebCore::cleanpath):
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::styleForElement):
              (WebCore::CSSStyleSelector::styleRulesForElement):
              (WebCore::convertToLength):
              (WebCore::colorForCSSValue):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
              * css/cssstyleselector.h:
              * dom/CDATASection.cpp:
              (WebCore::CDATASection::toString):
              * dom/Document.cpp:
              (WebCore::Document::recalcStyle):
              * dom/Document.h:
              (WebCore::Document::baseTarget):
              (WebCore::Document::setBaseTarget):
              * dom/dom_elementimpl.cpp:
              (WebCore::Element::openTagStartToString):
              * dom/xml_tokenizer.cpp:
              (WebCore::handleElementAttributes):
              (WebCore::XMLTokenizer::startElementNs):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::type):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::advance):
              (WebCore::TextIterator::handleTextBox):
              (WebCore::TextIterator::handleNonTextNode):
              (WebCore::TextIterator::exitNode):
              (WebCore::SimplifiedBackwardsTextIterator::advance):
              (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
              (WebCore::CharacterIterator::advance):
              (WebCore::WordAwareIterator::advance):
              (WebCore::WordAwareIterator::length):
              (WebCore::WordAwareIterator::characters):
              (WebCore::CircularSearchBuffer::CircularSearchBuffer):
              (WebCore::CircularSearchBuffer::append):
              (WebCore::TextIterator::rangeFromLocationAndLength):
              (WebCore::findPlainText):
              * editing/TextIterator.h:
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formData):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxy::initScriptIfNeeded):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Location::getValueProperty):
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              (WebCore::KSVGPainterFactory::fillPaintServer):
              (WebCore::KSVGPainterFactory::strokePaintServer):
              * ksvg2/svg/SVGAngle.cpp:
              (SVGAngle::calculate):
              (SVGAngle::setValueAsString):
              (SVGAngle::valueAsString):
              (SVGAngle::convertToSpecifiedUnits):
              (SVGAngle::shortestArcBisector):
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::targetElement):
              (SVGAnimationElement::parseMappedAttribute):
              (SVGAnimationElement::parseClockValue):
              (SVGAnimationElement::targetAttribute):
              (SVGAnimationElement::setTargetAttribute):
              (SVGAnimationElement::detectAnimationMode):
              (SVGAnimationElement::calculateCurrentValueItem):
              (SVGAnimationElement::calculateRelativeTimePercentage):
              * ksvg2/svg/SVGColor.cpp:
              (SVGColor::setRGBColor):
              * ksvg2/svg/SVGDOMImplementation.cpp:
              (svgFeatureSet):
              (SVGDOMImplementation::self):
              (SVGDOMImplementation::hasFeature):
              (SVGDOMImplementation::createDocumentType):
              (SVGDOMImplementation::createDocument):
              * ksvg2/svg/SVGDOMImplementation.h:
              * ksvg2/svg/SVGPaint.cpp:
              (SVGPaint::cssText):
              * ksvg2/svg/SVGPathSegClosePath.h:
              (WebCore::SVGPathSegClosePath::toString):
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              (SVGPreserveAspectRatio::parsePreserveAspectRatio):
              (SVGPreserveAspectRatio::getCTM):
              * ksvg2/svg/SVGStopElement.cpp:
              (SVGStopElement::parseMappedAttribute):
              * ksvg2/svg/SVGStyleElement.cpp:
              (SVGStyleElement::childrenChanged):
              * ksvg2/svg/SVGURIReference.cpp:
              (SVGURIReference::getTarget):
              * kwq/ClipboardMac.mm:
              (WebCore::ClipboardMac::setData):
              (WebCore::ClipboardMac::types):
              (WebCore::ClipboardMac::setEffectAllowed):
              (WebCore::cocoaOpFromIEOp):
              (WebCore::IEOpFromCocoaOp):
              (WebCore::ClipboardMac::sourceOperation):
              (WebCore::ClipboardMac::destinationOperation):
              * kwq/KWQCString.cpp:
              (DeprecatedCString::append):
              * kwq/KWQKHTMLSettings.h:
              (KHTMLSettings::stdFontName):
              (KHTMLSettings::fixedFontName):
              (KHTMLSettings::serifFontName):
              (KHTMLSettings::sansSerifFontName):
              (KHTMLSettings::cursiveFontName):
              (KHTMLSettings::fantasyFontName):
              (KHTMLSettings::minFontSize):
              (KHTMLSettings::minLogicalFontSize):
              (KHTMLSettings::mediumFontSize):
              (KHTMLSettings::mediumFixedFontSize):
              (KHTMLSettings::autoLoadImages):
              (KHTMLSettings::isJavaScriptEnabled):
              (KHTMLSettings::JavaScriptCanOpenWindowsAutomatically):
              (KHTMLSettings::isJavaEnabled):
              (KHTMLSettings::isPluginsEnabled):
              (KHTMLSettings::encoding):
              (KHTMLSettings::userStyleSheet):
              (KHTMLSettings::shouldPrintBackgrounds):
              (KHTMLSettings::textAreasAreResizable):
              (KHTMLSettings::setStdFontName):
              (KHTMLSettings::setFixedFontName):
              (KHTMLSettings::setSerifFontName):
              (KHTMLSettings::setSansSerifFontName):
              (KHTMLSettings::setCursiveFontName):
              (KHTMLSettings::setFantasyFontName):
              (KHTMLSettings::setMinFontSize):
              (KHTMLSettings::setMinLogicalFontSize):
              (KHTMLSettings::setMediumFontSize):
              (KHTMLSettings::setMediumFixedFontSize):
              (KHTMLSettings::setAutoLoadImages):
              (KHTMLSettings::setIsJavaScriptEnabled):
              (KHTMLSettings::setIsJavaEnabled):
              (KHTMLSettings::setArePluginsEnabled):
              (KHTMLSettings::setJavaScriptCanOpenWindowsAutomatically):
              (KHTMLSettings::setEncoding):
              (KHTMLSettings::setUserStyleSheet):
              (KHTMLSettings::setShouldPrintBackgrounds):
              (KHTMLSettings::setTextAreasAreResizable):
              * kwq/KWQLoader.mm:
              (KWQServeSynchronousRequest):
              * kwq/KWQTextStream.cpp:
              (QTextStream::QTextStream):
              (QTextStream::operator<<):
              (QTextStream::precision):
              * kwq/KWQTextStream.h:
              * kwq/RenderTreeAsText.cpp:
              (operator<<):
              (quoteAndEscapeNonPrintables):
              (writeTextRun):
              (write):
              (writeSelection):
              * loader/Cache.cpp:
              (WebCore::Cache::init):
              (WebCore::Cache::requestImage):
              (WebCore::Cache::requestStyleSheet):
              (WebCore::Cache::preloadStyleSheet):
              (WebCore::Cache::requestScript):
              (WebCore::Cache::preloadScript):
              (WebCore::Cache::requestXSLStyleSheet):
              (WebCore::Cache::requestXBLDocument):
              (WebCore::Cache::remove):
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::error):
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::error):
              * loader/CachedImage.h:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              (WebCore::CachedScript::checkNotify):
              (WebCore::CachedScript::error):
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.cpp:
              (WebCore::CachedXBLDocument::error):
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              (WebCore::CachedXSLStyleSheet::error):
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::DocLoader):
              (WebCore::DocLoader::~DocLoader):
              (WebCore::DocLoader::needReload):
              (WebCore::DocLoader::requestImage):
              (WebCore::DocLoader::requestStyleSheet):
              (WebCore::DocLoader::requestScript):
              (WebCore::DocLoader::requestXSLStyleSheet):
              (WebCore::DocLoader::requestXBLDocument):
              (WebCore::DocLoader::setAutoloadImages):
              (WebCore::DocLoader::setShowAnimations):
              (WebCore::DocLoader::removeCachedObject):
              * loader/loader.cpp:
              (WebCore::Loader::receivedAllData):
              (WebCore::Loader::receivedResponse):
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet):
              (WebCore::Frame::didOpenURL):
              (WebCore::Frame::setMetaRefreshEnabled):
              (WebCore::Frame::setAutoloadImages):
              (WebCore::Frame::autoloadImages):
              (WebCore::Frame::clear):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::begin):
              (WebCore::Frame::write):
              (WebCore::Frame::baseTarget):
              (WebCore::Frame::completeURL):
              (WebCore::Frame::scheduleRedirection):
              (WebCore::Frame::scheduleLocationChange):
              (WebCore::Frame::scheduleHistoryNavigation):
              (WebCore::Frame::changeLocation):
              (WebCore::Frame::redirectionTimerFired):
              (WebCore::Frame::encoding):
              (WebCore::Frame::gotoAnchor):
              (WebCore::Frame::setStandardFont):
              (WebCore::Frame::setFixedFont):
              (WebCore::Frame::selectedText):
              (WebCore::Frame::selection):
              (WebCore::Frame::dragCaret):
              (WebCore::Frame::setSelection):
              (WebCore::Frame::setDragCaret):
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::urlSelected):
              (WebCore::Frame::requestFrame):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::shouldUsePlugin):
              (WebCore::Frame::loadPlugin):
              (WebCore::Frame::loadSubframe):
              (WebCore::Frame::submitForm):
              (WebCore::Frame::lastModified):
              (WebCore::Frame::reparseConfiguration):
              (WebCore::Frame::shouldChangeSelection):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              (WebCore::Frame::executeScript):
              (WebCore::updateState):
              (WebCore::Frame::isCharacterSmartReplaceExempt):
              (WebCore::Frame::openURL):
              (WebCore::Frame::didNotOpenURL):
              (WebCore::Frame::setEncoding):
              (WebCore::Frame::saveInterpreterBuiltins):
              (WebCore::Frame::restoreInterpreterBuiltins):
              (WebCore::Frame::mutableInstances):
              (WebCore::Frame::setPolicyBaseURL):
              (WebCore::Frame::addMetaData):
              (WebCore::Frame::scrollToAnchor):
              (WebCore::Frame::setMediaType):
              (WebCore::Frame::highlightAllMatchesForString):
              (WebCore::Frame::tree):
              * page/Frame.h:
              (WebCore::Frame::instances):
              * page/FramePrivate.h:
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameView::FrameView):
              (WebCore::FrameView::~FrameView):
              (WebCore::FrameView::init):
              (WebCore::FrameView::setMarginWidth):
              (WebCore::FrameView::setMarginHeight):
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::dispatchDragEvent):
              (WebCore::FrameView::scrollTo):
              (WebCore::FrameView::setMediaType):
              (WebCore::FrameView::mediaType):
              (WebCore::FrameView::setResizingFrameSet):
              (WebCore::FrameView::setIgnoreWheelEvents):
              * page/FrameView.h:
              (WebCore::FrameView::frameWidth):
              (WebCore::FrameView::marginWidth):
              (WebCore::FrameView::marginHeight):
              (WebCore::FrameView::ref):
              (WebCore::FrameView::deref):
              * page/ResourceRequest.h:
              (WebCore::ResourceRequest::contentType):
              (WebCore::ResourceRequest::setContentType):
              * platform/FontFamily.h:
              * platform/Image.h:
              * platform/KURL.cpp:
              (KURL::KURL):
              (KURL::parse):
              (urlcmp):
              (KURL::encode_string):
              (encodeHostname):
              * platform/KURL.h:
              * platform/PlatformString.h:
              (WebCore::String::left):
              (WebCore::String::right):
              * platform/String.cpp:
              (WebCore::String::toInt):
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::toInt):
              * platform/TransferJob.cpp:
              (WebCore::TransferJob::queryMetaData):
              (WebCore::TransferJob::addMetaData):
              * platform/TransferJob.h:
              * platform/mac/ImageMac.mm:
              (WebCore::Image::supportsType):
              * platform/mac/TransferJobMac.mm:
              (WebCore::TransferJob::start):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::information):
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::updateFromElement):
              * xml/xmlhttprequest.cpp:
              (WebCore::getMIMEType):
              (WebCore::getCharset):
              (WebCore::XMLHttpRequest::getReadyState):
              (WebCore::XMLHttpRequest::getResponseText):
              (WebCore::XMLHttpRequest::getResponseXML):
              (WebCore::XMLHttpRequest::XMLHttpRequest):
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              (WebCore::XMLHttpRequest::changeState):
              (WebCore::XMLHttpRequest::callReadyStateChangeListener):
              (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
              (WebCore::XMLHttpRequest::open):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::abort):
              (WebCore::XMLHttpRequest::overrideMIMEType):
              (WebCore::XMLHttpRequest::setRequestHeader):
              (WebCore::XMLHttpRequest::getRequestHeader):
              (WebCore::XMLHttpRequest::getAllResponseHeaders):
              (WebCore::XMLHttpRequest::getResponseHeader):
              (WebCore::XMLHttpRequest::responseIsXML):
              (WebCore::XMLHttpRequest::getStatus):
              (WebCore::XMLHttpRequest::getStatusText):
              (WebCore::XMLHttpRequest::processSyncLoadResults):
              (WebCore::XMLHttpRequest::receivedAllData):
              (WebCore::XMLHttpRequest::receivedRedirect):
              (WebCore::XMLHttpRequest::receivedData):
              (WebCore::XMLHttpRequest::cancelRequests):
              (WebCore::XMLHttpRequest::detachRequests):
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27707962
  5. 19 Mar, 2006 1 commit
  6. 17 Mar, 2006 1 commit
    • mjs's avatar
      Reviewed by Adele. · dcce106f
      mjs authored
              - clean up ResourceRequest to be closer to a proper request interface
      
              * page/ResourceRequest.h: folded URL into ResourceRequest, other cleanup
              (WebCore::ResourceRequest::ResourceRequest): Add new explicit constructor
              that takes a KURL.
              (WebCore::ResourceRequest::url): getter for KURL
              (WebCore::ResourceRequest::setURL): corresponding setter
              (WebCore::ResourceRequest::referrer): new getter for referrer, instead
              of storing it in m_metaData (it was the only remaining real use of it)
              (WebCore::ResourceRequest::setReferrer): corresponding setter
              * bridge/BrowserExtension.h: 
              - removed unused openURLRequest and openURLNotify methods
              - folded KURL parameter into ResourceRequest
              * bridge/mac/BrowserExtensionMac.h: remove KURL args from methods that
              also take a ResourceRequest
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow): adjust for ResourceRequest
              changes.
              * bridge/mac/MacFrame.h: remove KURL args from methods that also take a
              ResourceRequest
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::openURLRequest): adjust for ResourceRequest changes
              (WebCore::MacFrame::submitForm): ditto
              (WebCore::MacFrame::urlSelected): ditto
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): 
              adjust for ResourceRequest changes
              * bridge/win/BrowserExtensionWin.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::createNewWindow): adjust for ResourceRequest changes
              (KJS::WindowFunc::callAsFunction): ditto
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL): adjust for ResourceRequest changes
              (WebCore::Frame::receivedFirstData): ditto
              (WebCore::Frame::begin): ditto
              (WebCore::Frame::completeURL): ditto
              (WebCore::Frame::changeLocation): ditto
              (WebCore::Frame::urlSelected): ditto
              (WebCore::Frame::requestFrame): ditto
              (WebCore::Frame::submitForm): ditto
              * page/Frame.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (BrowserExtensionWin::createNewWindow): ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcce106f
  7. 16 Mar, 2006 2 commits
    • darin's avatar
      Reviewed by Eric. · 8a2a58fd
      darin authored
              - removed KWQWindowWidget
              - changed most event handling to use references instead of pointers
              - chagned PageMac to no longer be a subclass of Page
      
              Yes, I know there's no detail in this ChangeLog entry.
              No, I don't plan to make a habit of doing things this way.
              Yes, this will probably break the Windows build again.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/FrameViewMac.mm:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame):
              (WebCore::MacFrame::~MacFrame):
              (WebCore::MacFrame::wheelEvent):
              (WebCore::MacFrame::keyEvent):
              (WebCore::MacFrame::khtmlMousePressEvent):
              (WebCore::MacFrame::khtmlMouseMoveEvent):
              (WebCore::MacFrame::khtmlMouseReleaseEvent):
              (WebCore::MacFrame::mouseDown):
              (WebCore::MacFrame::mouseDragged):
              (WebCore::MacFrame::mouseUp):
              (WebCore::MacFrame::mouseMoved):
              (WebCore::MacFrame::sendContextMenuEvent):
              (WebCore::MacFrame::setBridge):
              (WebCore::MacFrame::dragSourceMovedTo):
              (WebCore::MacFrame::dragSourceEndedAt):
              (WebCore::MacFrame::dispatchDragSrcEvent):
              * bridge/mac/PageMac.h: Removed.
              * bridge/mac/PageMac.mm: Added.
              (WebCore::Page::Page):
              (WebCore::Page::windowRect):
              (WebCore::Page::setWindowRect):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge page]):
              (-[WebCoreFrameBridge initializeSettings:]):
              (globalPoint):
              (createMouseEventFromDraggingInfo):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
              (-[WebCoreFrameBridge dragSourceMovedTo:]):
              (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
              * bridge/mac/WebCoreFrameNamespaces.mm:
              (WebCore::):
              * bridge/mac/WebCorePageBridge.h:
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge init]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent):
              (WebCore::DocumentImpl::defaultEventHandler):
              * dom/DocumentImpl.h:
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent):
              (WebCore::NodeImpl::dispatchKeyEvent):
              (WebCore::NodeImpl::dispatchWheelEvent):
              * dom/NodeImpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl):
              * dom/dom2_eventsimpl.h:
              (WebCore::KeyboardEventImpl::keyEvent):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/html_inlineimpl.cpp:
              (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.h:
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm: Removed.
              * page/Frame.cpp:
              (WebCore::Frame::selectClosestWordFromMouseEvent):
              (WebCore::Frame::handleMousePressEventDoubleClick):
              (WebCore::Frame::handleMousePressEventTripleClick):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::khtmlMousePressEvent):
              (WebCore::Frame::handleMouseMoveEventSelection):
              (WebCore::Frame::khtmlMouseMoveEvent):
              (WebCore::Frame::khtmlMouseReleaseEvent):
              (WebCore::Frame::khtmlMouseDoubleClickEvent):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent):
              (WebCore::FrameView::viewportMouseDoubleClickEvent):
              (WebCore::FrameView::viewportMouseMoveEvent):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::dispatchDragEvent):
              (WebCore::FrameView::updateDragAndDrop):
              (WebCore::FrameView::cancelDragAndDrop):
              (WebCore::FrameView::performDragAndDrop):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::viewportWheelEvent):
              * page/FrameView.h:
              * page/MouseEventWithHitTestResults.h:
              (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
              (WebCore::MouseEventWithHitTestResults::event):
              * page/Page.cpp:
              (WebCore::Page::init):
              * page/Page.h:
              (WebCore::Page::bridge):
              * platform/KeyEvent.h:
              (WebCore::KeyEvent::isAutoRepeat):
              * platform/MouseEvent.h:
              (WebCore::MouseEvent::MouseEvent):
              * platform/mac/KeyEventMac.mm:
              (WebCore::KeyEvent::KeyEvent):
              * platform/win/TemporaryLinkStubs.cpp:
              (FrameView::isFrameView):
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::clicked):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a2a58fd
    • mjs's avatar
      Reviewed by Eric. · 24636cc8
      mjs authored
              - renamed URLArgs to ResourceRequest, split it into its own header
              - moved methods to get and set ResourceRequest to Frame
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::openURLRequest):
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::openURLRequest):
              (WebCore::MacFrame::submitForm):
              (WebCore::MacFrame::urlSelected):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              * khtml/ecma/kjs_window.cpp:
              (KJS::createNewWindow):
              (KJS::WindowFunc::callAsFunction):
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::setResourceRequest):
              (WebCore::Frame::resourceRequest):
              (WebCore::Frame::begin):
              (WebCore::Frame::changeLocation):
              (WebCore::Frame::urlSelected):
              (WebCore::Frame::requestFrame):
              (WebCore::Frame::submitForm):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/ResourceRequest.h: Added.
              (WebCore::ResourceRequest::ResourceRequest):
              (WebCore::ResourceRequest::contentType):
              (WebCore::ResourceRequest::setContentType):
              (WebCore::ResourceRequest::doPost):
              (WebCore::ResourceRequest::setDoPost):
              (WebCore::ResourceRequest::lockHistory):
              (WebCore::ResourceRequest::setLockHistory):
              (WebCore::ResourceRequest::metaData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      24636cc8
  8. 19 Feb, 2006 1 commit
    • darin's avatar
      WebCore: · 3d938e6d
      darin authored
              Reviewed by Maciej.
      
              - cut out a little unneeded bridge code
      
              * bridge/mac/WebCoreFrameBridge.h: Removed frame name from createWindowWithURL: method
              and changed it to return a page bridge. Also made createModalDialogWithURL: method
              return a page bridge. Removed the mainFrame and webView methods.
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge nextFrameWithWrap:]): Use page to get to main frame.
              (-[WebCoreFrameBridge setFrameNamespace:]): Ditto.
              (-[WebCoreFrameBridge frameNamespace]): Ditto.
              (-[WebCoreFrameBridge _shouldAllowAccessFrom:]): Ditto.
              (-[WebCoreFrameBridge _frameInAnyWindowNamed:sourceFrame:]): Ditto.
              (-[WebCoreFrameBridge findFrameNamed:]): Ditto.
              (-[WebCoreFrameBridge installInFrame:]): Ditto.
      
              * bridge/mac/WebCorePageBridge.h: Added outerView method to replace webView method
              on the frame bridge.
      
              * bridge/mac/BrowserExtensionMac.mm: (WebCore::BrowserExtensionMac::createNewWindow):
              Update to use a page bridge instead of frame bridge.
      
      WebKit:
      
              Reviewed by Maciej.
      
              - cut out a little unneeded bridge code
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge webView]): Added. Helper, since the WebCore side of the bridge no longer
              has this method.
              (-[WebFrameBridge createWindowWithURL:]): Removed the frameName parameter -- this is now
              handled on the WebCore side. Also return a page bridge instead of a frame bridge.
              (-[WebFrameBridge createModalDialogWithURL:]): Changed to return a page bridge instead of
              a frame bridge.
      
              * WebView/WebFrame.m: (-[WebFrame webView]): Change to get the webView from the page bridge
              instead of the frame bridge, since it's a per-page thing.
      
              * WebView/WebView.m: Removed init method since it just does what the default does (calls
              initWithFrame: with a zero rect).
              (-[WebView initWithCoder:]): Added checking so that if the obejcts have the wrong type
              we will fail gracefully instead of hitting "method not found" and the like.
              (-[WebView setPreferencesIdentifier:]): Fix storage leak. The WebPreferences object was
              not released.
              (-[WebView mainFrame]): Removed excess "return nil".
              (-[WebView _pageBridge]): Added. Helper to let you go from the WebView to the bridge
              from outside the WebView class.
              * WebView/WebViewInternal.h: Put _pageBridge into an internal header.
      
              * WebCoreSupport/WebPageBridge.m: (-[WebPageBridge outerView]): Added. Replaces "webView"
              as public method to tell the WebCore side about the view everything's embedded in.
      
              - other cleanup
      
              * WebCoreSupport/WebPageBridge.h: Removed some unneeded declarations.
      
              * Plugins/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView loadPluginRequest:]):
              Rearrange code so it doesn't have to get the main frame twice.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d938e6d
  9. 13 Feb, 2006 1 commit
    • darin's avatar
      WebCore: · cd3d02e3
      darin authored
              Reviewed by Maciej.
      
              - move pointer from frame to page here from WebKit
      
              * WebCore.xcodeproj/project.pbxproj: Added PageMac.h.
      
              * bridge/mac/PageMac.h: Added.
      
              * bridge/mac/MacFrame.h: Added a page parameter to the constructor.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame): Pass the page and renderer to the Frame constructor.
              Moved the call to Cache::init up into Frame, and got rid of the call to Frame::init
              since that's now handled by the constructor. Also put the code to create the
              browser extension object here.
              (WebCore::MacFrame::submitForm): Update for new method name.
              (WebCore::MacFrame::createFrame): Ditto.
              (WebCore::MacFrame::sendContextMenuEvent): Update since m_doc is a RefPtr.
      
              * bridge/mac/WebCoreFrameBridge.h: Changed parameters on init methods. Renamed
              the part method to impl. Added a page method.
              * bridge/mac/WebCoreFrameBridge.mm:
              (frameHasSelection): Change use of part method to impl.
              (-[WebCoreFrameBridge appendChild:]): Use m_frame directly instead of calling part method.
              (-[WebCoreFrameBridge removeChild:]): Ditto.
              (-[WebCoreFrameBridge initMainFrameWithPage:]): Added. Now does the first-time initialization
              only here and create a frame for a main frame.
              (-[WebCoreFrameBridge initSubframeWithRenderer:]): Added. Doesn't do the first-time initialization
              and creates a frame for a subframe.
              (-[WebCoreFrameBridge page]): Added.
              (-[WebCoreFrameBridge setOpener:]): Change to use impl method instead of part.
              (-[WebCoreFrameBridge executionContextForView:]): Ditto.
              (-[WebCoreFrameBridge impl]): Added.
      
              * bridge/mac/WebCorePageBridge.h: Removed init method and added setMainFrame: method and impl method.
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge init]): Changed to create a PageMac.
              (-[WebCorePageBridge setMainFrame:]): Added.
              (-[WebCorePageBridge impl]): Added.
      
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject rendererForView:]):
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusPolicy):
              * kwq/KWQSlider.mm:
              (QSlider::focusPolicy):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView _isResizableByUser]):
              (-[KWQTextAreaTextView _trackResizeFromMouseDown:]):
              Change methods to get from bridge back to objects to be named "impl".
              The old one was named "part".
      
              * page/Frame.h: Added Page and RenderPart parameter to constructor.
              Added a page function. Removed the createBrowserExtension function.
              * page/Frame.cpp:
              (WebCore::parentFromOwnerRenderer): Added. Helper for constructor.
              (WebCore::Frame::Frame): Moved all the code from init into here. Also change
              to set the parent right from the start.
              (WebCore::Frame::stopLoading): Change since m_doc is now a RefPtr.
              (WebCore::Frame::clear): Ditto.
              (WebCore::Frame::document): Ditto.
              (WebCore::Frame::setDocument): Ditto.
              (WebCore::Frame::begin): Ditto.
              (WebCore::Frame::gotoAnchor): Ditto.
              (WebCore::Frame::typingStyle): Change since m_typingStyle is now a RefPtr.
              (WebCore::Frame::setTypingStyle): Ditto.
              (WebCore::Frame::clearTypingStyle): Ditto.
              (WebCore::Frame::isFrameSet): Change since m_doc is now a RefPtr.
              (WebCore::Frame::page): Added.
      
              * page/FramePrivate.h: Changed initialization to use member-initialization
              syntax. Removed unused m_frames. Changed m_doc and m_typingStyle to use
              RefPtr. Added an m_frame.
      
              * page/Page.h: Made destructor virtual so we could have a Mac derived class.
              Added a setMainFrame function and removed the mainFrame parameter from the constructor.
              * page/Page.cpp:
              (WebCore::Page::Page): Removed the mainFrame parameter.
              (WebCore::Page::setMainFrame): Added.
      
      WebKit:
      
              Reviewed by Maciej.
      
              - move pointer from frame to page over to WebCore
      
              * WebCoreSupport/WebPageBridge.m: (-[WebPageBridge initWithMainFrameName:webView:frameView:]):
              Call super init to create the page before creating the main frame and calling setMainFrame: with it.
      
              * WebCoreSupport/WebFrameBridge.h: Remove page pointer, and change init function parameters.
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): New function that is used only for
              the main frame. Passes the page over to the other side of the bridge.
              (-[WebFrameBridge initSubframeWithRenderer:frameName:view:]): New function that is used only for
              subframes. Passes the renderer over to the other side of the bridge.
              (-[WebFrameBridge mainFrame]):
              (-[WebFrameBridge webView]):
              (-[WebFrameBridge createWindowWithURL:frameName:]):
              (-[WebFrameBridge showWindow]):
              (-[WebFrameBridge areToolbarsVisible]):
              (-[WebFrameBridge setToolbarsVisible:]):
              (-[WebFrameBridge isStatusbarVisible]):
              (-[WebFrameBridge setStatusbarVisible:]):
              (-[WebFrameBridge setWindowFrame:]):
              (-[WebFrameBridge windowFrame]):
              (-[WebFrameBridge setWindowContentRect:]):
              (-[WebFrameBridge windowContentRect]):
              (-[WebFrameBridge setWindowIsResizable:]):
              (-[WebFrameBridge windowIsResizable]):
              (-[WebFrameBridge firstResponder]):
              (-[WebFrameBridge makeFirstResponder:]):
              (-[WebFrameBridge closeWindowSoon]):
              (-[WebFrameBridge runJavaScriptAlertPanelWithMessage:]):
              (-[WebFrameBridge runJavaScriptConfirmPanelWithMessage:]):
              (-[WebFrameBridge canRunBeforeUnloadConfirmPanel]):
              (-[WebFrameBridge runBeforeUnloadConfirmPanelWithMessage:]):
              (-[WebFrameBridge runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:]):
              (-[WebFrameBridge addMessageToConsole:]):
              (-[WebFrameBridge runOpenPanelForFileButtonWithResultListener:]):
              (-[WebFrameBridge setStatusText:]):
              (-[WebFrameBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
              (-[WebFrameBridge focusWindow]):
              (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              (-[WebFrameBridge userAgentForURL:]):
              (-[WebFrameBridge _nextKeyViewOutsideWebFrameViewsWithValidityCheck:]):
              (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
              (-[WebFrameBridge defersLoading]):
              (-[WebFrameBridge setDefersLoading:]):
              (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
              (-[WebFrameBridge _preferences]):
              (-[WebFrameBridge selectWordBeforeMenuEvent]):
              (-[WebFrameBridge historyLength]):
              (-[WebFrameBridge canGoBackOrForward:]):
              (-[WebFrameBridge goBackOrForward:]):
              (-[WebFrameBridge print]):
              (-[WebFrameBridge pollForAppletInView:]):
              (-[WebFrameBridge respondToChangedContents]):
              (-[WebFrameBridge respondToChangedSelection]):
              (-[WebFrameBridge undoManager]):
              (-[WebFrameBridge issueCutCommand]):
              (-[WebFrameBridge issueCopyCommand]):
              (-[WebFrameBridge issuePasteCommand]):
              (-[WebFrameBridge issuePasteAndMatchStyleCommand]):
              (-[WebFrameBridge canPaste]):
              (-[WebFrameBridge overrideMediaType]):
              (-[WebFrameBridge isEditable]):
              (-[WebFrameBridge shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]):
              (-[WebFrameBridge shouldBeginEditing:]):
              (-[WebFrameBridge shouldEndEditing:]):
              (-[WebFrameBridge windowObjectCleared]):
              (-[WebFrameBridge spellCheckerDocumentTag]):
              (-[WebFrameBridge isContinuousSpellCheckingEnabled]):
              (-[WebFrameBridge didFirstLayout]):
              (-[WebFrameBridge dashboardRegionsChanged:]):
              (-[WebFrameBridge createModalDialogWithURL:]):
              (-[WebFrameBridge canRunModal]):
              (-[WebFrameBridge runModal]):
              Change all calls to [_page webView] to use [self webView] instead.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd3d02e3
  10. 12 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · a691f517
      mjs authored
              - rename FrameTreeNode to FameTree and treeNode() to tree()
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7210
              
              This may be slightly less accurate, but reads better.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::submitForm):
              (WebCore::MacFrame::nextKeyViewInFrameHierarchy):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge firstChild]):
              (-[WebCoreFrameBridge lastChild]):
              (-[WebCoreFrameBridge childCount]):
              (-[WebCoreFrameBridge previousSibling]):
              (-[WebCoreFrameBridge nextSibling]):
              (-[WebCoreFrameBridge appendChild:]):
              (-[WebCoreFrameBridge removeChild:]):
              (-[WebCoreFrameBridge setParent:]):
              (-[WebCoreFrameBridge parent]):
              (-[WebCoreFrameBridge setName:]):
              (-[WebCoreFrameBridge name]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::parentDocument):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::Window::put):
              (KJS::Window::isSafeScript):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElementImpl::isURLAllowed):
              * khtml/html/html_headimpl.cpp:
              (WebCore::HTMLLinkElementImpl::process):
              * page/Frame.cpp:
              (WebCore::Frame::stopLoading):
              (WebCore::Frame::clear):
              (WebCore::Frame::stopAnimations):
              (WebCore::Frame::checkCompleted):
              (WebCore::Frame::checkEmitLoadEvent):
              (WebCore::Frame::slotChildCompleted):
              (WebCore::Frame::findFrame):
              (WebCore::Frame::setZoomFactor):
              (WebCore::Frame::frameNames):
              (WebCore::Frame::frames):
              (WebCore::Frame::childFrameNamed):
              (WebCore::Frame::incrementFrameCount):
              (WebCore::Frame::decrementFrameCount):
              (WebCore::Frame::topLevelFrameCount):
              (WebCore::Frame::selectFrameElementInParentIfFullySelected):
              (WebCore::Frame::userGestureHint):
              (WebCore::Frame::canCachePage):
              (WebCore::Frame::updatePolicyBaseURL):
              (WebCore::Frame::setPolicyBaseURL):
              (WebCore::Frame::tree):
              (WebCore::Frame::frameDetached):
              (WebCore::Frame::updateBaseURLForEmptyDocument):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp: Added.
              (WebCore::FrameTree::~FrameTree):
              (WebCore::FrameTree::setName):
              (WebCore::FrameTree::appendChild):
              (WebCore::FrameTree::removeChild):
              * page/FrameTree.h: Added.
              (WebCore::FrameTree::FrameTree):
              * page/FrameTreeNode.cpp: Removed.
              * page/FrameTreeNode.h: Removed.
              * rendering/render_frames.cpp:
              (WebCore::isURLAllowed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a691f517
  11. 07 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Adele. · 69b3b5f0
      mjs authored
              - remove all remains of old-style frame tree, ChildFrame, ObjectContents and FrameList are all gone
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * khtml/ecma/kjs_window.cpp:
              (KJS::createNewWindow):
              (KJS::Window::indexGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::WindowFunc::callAsFunction):
              (KJS::FrameArray::getValueProperty):
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::stopLoading):
              (WebCore::Frame::clear):
              (WebCore::Frame::stopAnimations):
              (WebCore::Frame::checkCompleted):
              (WebCore::Frame::checkEmitLoadEvent):
              (WebCore::Frame::requestFrame):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::loadSubframe):
              (WebCore::Frame::findFrame):
              (WebCore::Frame::frameExists):
              (WebCore::Frame::setZoomFactor):
              (WebCore::Frame::frameNames):
              (WebCore::Frame::frames):
              (WebCore::Frame::childFrameNamed):
              (WebCore::Frame::slotPartRemoved):
              (WebCore::Frame::connectChild):
              (WebCore::Frame::disconnectChild):
              (WebCore::Frame::canCachePage):
              (WebCore::Frame::setPolicyBaseURL):
              (WebCore::Frame::treeNode):
              (WebCore::Frame::frameDetached):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTreeNode.h:
              (WebCore::FrameTreeNode::name):
              (WebCore::FrameTreeNode::parent):
              (WebCore::FrameTreeNode::nextSibling):
              (WebCore::FrameTreeNode::previousSibling):
              (WebCore::FrameTreeNode::firstChild):
              (WebCore::FrameTreeNode::lastChild):
              (WebCore::FrameTreeNode::childCount):
              * page/ObjectContents.h: Removed.
              * page/Plugin.h:
              (WebCore::Plugin::view):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69b3b5f0
  12. 02 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 30f9b56b
      mjs authored
              - Move name and parent from Frame to FrameTreeNode
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6994
      
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::generateFrameName):
              (WebCore::MacFrame::submitForm):
              (WebCore::Frame::frameDetached):
              (WebCore::MacFrame::nextKeyViewInFrameHierarchy):
              (WebCore::MacFrame::createEmptyDocument):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge setParent:]):
              (-[WebCoreFrameBridge parent]):
              (-[WebCoreFrameBridge setName:]):
              (-[WebCoreFrameBridge name]):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::Window::put):
              (KJS::Window::isSafeScript):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElementImpl::isURLAllowed):
              * khtml/html/html_headimpl.cpp:
              (WebCore::HTMLLinkElementImpl::process):
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::ownerElement):
              (WebCore::DocumentImpl::parentDocument):
              * page/Frame.cpp:
              (WebCore::Frame::checkCompleted):
              (WebCore::Frame::redirectionTimerFired):
              (WebCore::Frame::requestFrameName):
              (WebCore::Frame::slotChildCompleted):
              (WebCore::Frame::incrementFrameCount):
              (WebCore::Frame::decrementFrameCount):
              (WebCore::Frame::topLevelFrameCount):
              (WebCore::Frame::selectFrameElementInParentIfFullySelected):
              (WebCore::Frame::handleFallbackContent):
              (WebCore::Frame::userGestureHint):
              (WebCore::Frame::canCachePage):
              (WebCore::Frame::updatePolicyBaseURL):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * page/FrameTreeNode.cpp:
              (WebCore::FrameTreeNode::setName):
              (WebCore::FrameTreeNode::appendChild):
              (WebCore::FrameTreeNode::removeChild):
              * page/FrameTreeNode.h:
              (WebCore::FrameTreeNode::FrameTreeNode):
              (WebCore::FrameTreeNode::name):
              (WebCore::FrameTreeNode::parent):
              (WebCore::FrameTreeNode::setParent):
              * rendering/render_frames.cpp:
              (WebCore::isURLAllowed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30f9b56b
  13. 23 Jan, 2006 1 commit
  14. 19 Jan, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · d03140b1
      darin authored
              - removed all use of QMap
      
              * ForwardingHeaders/qmap.h: Removed.
              * WebCore.xcodeproj/project.pbxproj: Removed KWQMap.h, KWQMapImpl.h, KWQMapImpl.cpp.
              * kwq/KWQMap.h: Removed.
              * kwq/KWQMapImpl.cpp: Removed.
              * kwq/KWQMapImpl.h: Removed.
      
              * bridge/BrowserExtension.h: (WebCore::URLArgs::metaData): Converted from QMap of QString
              to HashMap of DOMString.
              * bridge/mac/BrowserExtensionMac.mm: Ditto.
              * bridge/mac/MacFrame.mm:
              (MacFrame::openURLRequest): Ditto.
              (MacFrame::urlSelected): Ditto.
              (MacFrame::createPart): Ditto.
              * khtml/ecma/kjs_window.cpp:
              (KJS::parseModalDialogFeatures): Ditto.
              (KJS::boolFeature): Ditto.
              (KJS::intFeature): Ditto.
              (KJS::createNewWindow): Ditto.
              (KJS::showModalDialog): Ditto.
              (KJS::WindowFunc::callAsFunction): Ditto.
              * khtml/html/html_objectimpl.cpp: (WebCore::HTMLAppletElementImpl::createRenderer): Ditto.
              * khtml/xml/dom_xmlimpl.cpp: (DOM::ProcessingInstructionImpl::checkStyleSheet): Ditto.
              * khtml/xml/xml_tokenizer.cpp:
              (WebCore::toString): Added. Converts to DOMString instead of QString.
              (WebCore::attributesStartElementNsHandler): Converted from QMap of QString to HashMap of DOMString.
              (WebCore::parseAttributes): Ditto.
              * khtml/xml/xml_tokenizer.h: (WebCore::Tokenizer::setTransformSource): Ditto.
              * ksvg2/misc/KSVGTimeScheduler.cpp: (KSVG::SVGTimer::notifyAll): Ditto.
              * kwq/KWQKJavaAppletWidget.h: Ditto.
              * kwq/KWQKJavaAppletWidget.mm: (KJavaAppletWidget::KJavaAppletWidget): Ditto.
              * kwq/KWQKJobClasses.h: Ditto.
              * kwq/KWQKJobClasses.mm: (KIO::TransferJob::addMetaData): Ditto.
              * page/Frame.cpp:
              (Frame::didOpenURL): Ditto.
              (Frame::changeLocation): Ditto.
              (Frame::mark): Ditto.
              (Frame::setMark): Ditto.
              (Frame::urlSelected): Ditto.
              (Frame::requestObject): Ditto.
              (Frame::processObjectRequest): Ditto.
              (Frame::submitForm): Ditto.
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::RenderApplet): Ditto.
              (WebCore::RenderApplet::createWidgetIfNecessary): Ditto.
              (WebCore::RenderApplet::layout): Ditto.
              * rendering/render_applet.h:
              (WebCore::RenderApplet::renderName): Ditto.
              (WebCore::RenderApplet::element): Ditto.
              (WebCore::RenderEmptyApplet::renderName): Ditto.
      
              * khtml/dom/dom_string.h:
              (WebCore::DOMString::createCFString): Added. Not yet implemented or used.
              (WebCore::DOMString::operator NSString*): Updated to call through to DOMStringImpl.
              Added hash functions and hash traits so you can use DOMString in hash tables.
              * khtml/xml/dom_stringimpl.h: Added conversion to and from CFStringRef/NSString.
              * khtml/xml/dom_stringimpl.cpp: Took out an excess "DOM::".
      
              * bindings/objc/DOMInternal.mm: (DOMStringImpl::operator NSString *): Moved from DOMString
              to DOMStringImpl.
      
              - changed the mark from a SelectionController to a Selection
                (maybe it can be a Position instead?)
      
              * page/Frame.h: Changed mark() and setMark() to use a Selection.
              * page/FramePrivate.h: Changed mark to a Selection.
      
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge setMarkDOMRange:]):
              Updated for change from SelectionController to Selection.
      
              - removed extraneous includes
      
              * kwq/KWQKHTMLSettings.h: Removed include of "KWQMap.h".
              * kwq/KWQKIOGlobal.h: Ditto.
      
              * khtml/editing/htmlediting.h: Removed extraneous includes and namespace prefixes.
      
              * khtml/html/html_canvasimpl.h: Removed extraneous includes and moved into the
              WebCore namespace.
              * khtml/html/html_canvasimpl.cpp: Ditto.
              * khtml/html/htmltokenizer.cpp: Ditto.
              * khtml/html/htmltokenizer.h: Ditto.
              * khtml/xml/DocumentImpl.cpp: Ditto.
              * kwq/KWQEditCommand.mm: Ditto.
              * rendering/render_canvasimage.h: Ditto.
              * rendering/render_image.h: Ditto.
      
              * khtml/editing/composite_edit_command.cpp: Updated includes because of ones
              that were removed from headers.
              * khtml/editing/htmlediting.cpp: Ditto.
              * khtml/editing/jsediting.cpp: Ditto.
              * khtml/editing/replace_selection_command.cpp: Ditto.
              * rendering/render_canvasimage.cpp: Ditto.
              * rendering/render_image.cpp: Ditto.
      
              * loader/loader.cpp: (WebCore::Loader::servePendingRequests): Removed code to add the
              cache control string, since that was hardcoded to empty string anyway.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d03140b1
  15. 18 Jan, 2006 2 commits
  16. 13 Jan, 2006 1 commit
    • mjs's avatar
      WebCore: · 037e2a7c
      mjs authored
              Rubber stamped by Eric.
      
              - rename WebCoreBridge to WebCoreFrameBridge
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):
              * bridge/mac/MacFrame.h:
              (MacFrame::bridge):
              * bridge/mac/MacFrame.mm:
              (MacFrame::submitForm):
              (MacFrame::createPart):
              (MacFrame::bridgeForWidget):
              (MacFrame::documentViewForNode):
              (MacFrame::setBridge):
              * bridge/mac/WebCoreBridge.h: Removed.
              * bridge/mac/WebCoreBridge.mm: Removed.
              * bridge/mac/WebCoreFrameBridge.h: Added.
              * bridge/mac/WebCoreFrameBridge.mm: Added.
              (-[WebCoreFrameBridge executionContextForView:]):
              (frameHasSelection):
              (-[WebCoreFrameBridge firstChild]):
              (-[WebCoreFrameBridge lastChild]):
              (-[WebCoreFrameBridge previousSibling]):
              (-[WebCoreFrameBridge nextSibling]):
              (-[WebCoreFrameBridge isDescendantOfFrame:]):
              (-[WebCoreFrameBridge traverseNextFrameStayWithin:]):
              (-[WebCoreFrameBridge appendChild:]):
              (-[WebCoreFrameBridge removeChild:]):
              (-[WebCoreFrameBridge childFrameNamed:]):
              (-[WebCoreFrameBridge _deepLastChildFrame]):
              (-[WebCoreFrameBridge nextFrameWithWrap:]):
              (-[WebCoreFrameBridge previousFrameWithWrap:]):
              (-[WebCoreFrameBridge _shouldAllowAccessFrom:]):
              (-[WebCoreFrameBridge _descendantFrameNamed:sourceFrame:]):
              (-[WebCoreFrameBridge _frameInAnyWindowNamed:sourceFrame:]):
              (-[WebCoreFrameBridge findFrameNamed:]):
              (+[WebCoreFrameBridge bridgeForDOMDocument:]):
              (-[WebCoreFrameBridge setParent:]):
              (-[WebCoreFrameBridge parent]):
              (nowPrinting):
              (-[WebCoreFrameBridge opener]):
              (-[WebCoreFrameBridge setOpener:]):
              (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject rendererForView:]):
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusPolicy):
              * kwq/KWQFrame.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              (-[KWQTableView keyDown:]):
              (-[KWQTableView keyUp:]):
              * kwq/KWQLoader.mm:
              (KWQServeRequest):
              (KWQServeSynchronousRequest):
              (KWQCheckCacheObjectStatus):
              (KWQCacheObjectExpiresTime):
              * kwq/KWQSlider.mm:
              (QSlider::focusPolicy):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView _trackResizeFromMouseDown:]):
              (-[KWQTextAreaTextView keyDown:]):
              (-[KWQTextAreaTextView keyUp:]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController controlTextDidBeginEditing:]):
              (-[KWQTextFieldController controlTextDidEndEditing:]):
              (-[KWQTextFieldController controlTextDidChange:]):
              (-[KWQTextFieldController control:textView:doCommandBySelector:]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              * kwq/KWQWidget.mm:
              (QWidget::setFocus):
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::KWQWindowWidget):
              * kwq/WebCoreFrameNamespaces.h:
              * kwq/WebCoreFrameNamespaces.m:
              (+[WebCoreFrameNamespaces addFrame:toNamespace:]):
              * kwq/WebCoreFrameView.h:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/WebCoreViewFactory.h:
      
      WebKit:
      
              Rubber stamped by Eric.
      
              - rename WebBridge to WebFrameBridge
              
              - also removed all tabs from WebFrameBridge.m
      
              * DOM.subproj/WebDOMOperations.m:
              (-[DOMNode _bridge]):
              (-[DOMNode webArchive]):
              (-[DOMRange _bridge]):
              (-[DOMRange webArchive]):
              * DOM.subproj/WebDOMOperationsPrivate.h:
              * English.lproj/StringsNotToBeLocalized.txt:
              * Misc.subproj/WebCoreStatistics.m:
              * Misc.subproj/WebNSViewExtras.h:
              * Misc.subproj/WebNSViewExtras.m:
              (-[NSView _bridge]):
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
              * Plugins.subproj/WebNetscapePluginStream.m:
              (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
              * Plugins.subproj/WebPluginContainerCheck.m:
              (-[WebPluginContainerCheck _isForbiddenFileLoad]):
              * Plugins.subproj/WebPluginController.h:
              * Plugins.subproj/WebPluginController.m:
              (-[WebPluginController bridge]):
              * WebCoreSupport.subproj/WebBridge.h: Removed.
              * WebCoreSupport.subproj/WebBridge.m: Removed.
              * WebCoreSupport.subproj/WebFileButton.h:
              * WebCoreSupport.subproj/WebFileButton.m:
              (-[WebFileChooserButton initWithBridge:delegate:]):
              * WebCoreSupport.subproj/WebFrameBridge.h: Added.
              * WebCoreSupport.subproj/WebFrameBridge.m: Added.
              (-[WebFrameBridge mainFrame]):
              (-[WebFrameBridge createWindowWithURL:frameName:]):
              (-[WebFrameBridge canTargetLoadInFrame:]):
              (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              (formDelegate):
              (-[WebFrameBridge createModalDialogWithURL:]):
              * WebCoreSupport.subproj/WebSubresourceLoader.m:
              * WebCoreSupport.subproj/WebTextRendererFactory.m:
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory bridgeForView:]):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView.subproj/WebDataSource.m:
              (-[WebDataSource _bridge]):
              (-[WebDataSource _receivedMainResourceError:complete:]):
              (-[WebDataSource _stringWithData:]):
              * WebView.subproj/WebDataSourcePrivate.h:
              * WebView.subproj/WebDebugDOMNode.m:
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _traverseNextFrameStayWithin::]):
              (Frame):
              (-[WebFrame _detachFromParent]):
              (-[WebFrame _bridge]):
              (-[WebFrame _initWithWebFrameView:webView:bridge:]):
              * WebView.subproj/WebFrameInternal.h:
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebFrameView.m:
              (-[WebFrameView webCoreBridge]):
              (-[WebFrameView _bridge]):
              * WebView.subproj/WebHTMLRepresentation.m:
              (+[WebHTMLRepresentation supportedMIMETypes]):
              (-[WebHTMLRepresentation _bridge]):
              (-[WebHTMLRepresentation documentSource]):
              * WebView.subproj/WebHTMLRepresentationPrivate.h:
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
              (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]):
              (-[WebHTMLView updateFocusState]):
              (-[NSArray validateUserInterfaceItem:]):
              (-[NSArray attributedString]):
              (-[NSArray selectedAttributedString]):
              (-[NSArray concludeDragForDraggingInfo:actionMask:]):
              (-[NSArray keyDown:]):
              (-[NSArray _alterCurrentSelection:direction:granularity:]):
              (-[NSArray _alterCurrentSelection:verticalDistance:]):
              (-[NSArray _expandSelectionToGranularity:]):
              (-[NSArray cut:]):
              (-[NSArray _applyStyleToSelection:withUndoAction:]):
              (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
              (-[NSArray pasteAsPlainText:]):
              (-[NSArray insertNewline:]):
              (-[NSArray insertLineBreak:]):
              (-[NSArray insertParagraphSeparator:]):
              (-[NSArray _changeWordCaseWithSelector:]):
              (-[NSArray startSpeaking:]):
              (-[NSArray selectToMark:]):
              (-[NSArray swapWithMark:]):
              (-[NSArray transpose:]):
              (-[WebHTMLView characterIndexForPoint:]):
              (-[WebHTMLView firstRectForCharacterRange:]):
              (-[WebHTMLView selectedRange]):
              (-[WebHTMLView attributedSubstringFromRange:]):
              (-[WebHTMLView _selectMarkedText]):
              (-[WebHTMLView _selectRangeInMarkedText:]):
              (-[WebHTMLView setMarkedText:selectedRange:]):
              (-[WebHTMLView _selectionIsInsideMarkedText]):
              (-[WebTextCompleteController _insertMatch:]):
              (-[WebTextCompleteController doCompletion]):
              (-[WebTextCompleteController endRevertingChange:moveLeft:]):
              * WebView.subproj/WebHTMLViewPrivate.h:
              * WebView.subproj/WebImageView.m:
              * WebView.subproj/WebMainResourceLoader.m:
              * WebView.subproj/WebRenderNode.m:
              * WebView.subproj/WebResource.m:
              (-[WebResource _stringValue]):
              * WebView.subproj/WebScriptDebugDelegate.m:
              * WebView.subproj/WebTextView.m:
              * WebView.subproj/WebView.m:
              (-[WebView _createFrameNamed:inParent:allowsScrolling:]):
              (-[WebView _commonInitializationWithFrameName:groupName:]):
              (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
              (-[WebView moveDragCaretToPoint:]):
              (-[WebView shouldClose]):
              (-[WebView editableDOMRangeForPoint:]):
              (-[WebView setEditable:]):
              (-[WebView deleteSelection]):
              (-[WebView _bridgeForSelectedOrMainFrame]):
              (-[WebView _bridgeAtPoint:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      037e2a7c
  17. 12 Jan, 2006 2 commits
    • andersca's avatar
      2006-01-12 Anders Carlsson <andersca@mac.com> · 90f5ff99
      andersca authored
              Reviewed by Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6501
              - Merge KParts::BrowserInterface with KParts::BrowserExtension.
              
              * ForwardingHeaders/kparts/browserinterface.h: Removed.
              * bridge/mac/KWQKPartsBrowserInterface.mm: Removed.
              * kwq/KWQKPartsBrowserInterface.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLPartBrowserExtension.h:
              * bridge/mac/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::KHTMLPartBrowserExtension):
              (KHTMLPartBrowserExtension::getHistoryLength):
              (KHTMLPartBrowserExtension::goBackOrForward):        
              * bridge/mac/KWQKPartsBrowserExtension.h:
              (KParts::BrowserExtension::BrowserExtension):
              * khtml/ecma/kjs_window.cpp:
              (KJS::History::getValueProperty):
              * khtml/xml/xml_tokenizer.cpp:
              * page/Frame.cpp:
              (Frame::slotRedirect):
              * page/FrameView.cpp:
              Add getHistoryLength and goBackOrForward to BrowserExtension and
              use them.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90f5ff99
    • andersca's avatar
      2006-01-12 Anders Carlsson <andersca@mac.com> · 574594a7
      andersca authored
              Reviewed by Maciej.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6496
              - Merge KParts::Part with KParts::ReadOnly part and rename it to
              ObjectContents.
              
              * ForwardingHeaders/kparts/part.h: Removed.
              * kwq/KWQKPartsPart.h: Removed.
              * kwq/KWQKPartsPart.mm: Removed.
              * kwq/KWQObject.cpp:
              
              page/ObjectContents.h: Added
              (ObjectContents::ObjectContents):
              (ObjectContents::url):
              (ObjectContents::setName):
              (ObjectContents::widget):
              (ObjectContents::setWidget):
              (ObjectContents::ref):
              (ObjectContents::deref):
              (ObjectContents::event):
              (ObjectContents::customEvent):
              (ObjectContents::isObjectContents):
      
              Renames:
              
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLPartBrowserExtension.h:
              * bridge/mac/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):
              * bridge/mac/KWQKPartsBrowserExtension.h:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (MacFrame::createPart):
              * bridge/mac/WebCoreBridge.mm:
              (-[WebCoreBridge saveDocumentToPageCache]):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSLazyEventListener::parseCode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::createNewWindow):
              (KJS::Window::indexGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::WindowFunc::callAsFunction):
              (KJS::FrameArray::getValueProperty):
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              (QObject::inherits):
              (QObject::isObjectContents):
              * kwq/KWQObject.h:
              * page/Frame.cpp:
              (Frame::stopLoading):
              (Frame::stopAnimations):
              (Frame::checkEmitLoadEvent):
              (Frame::processObjectRequest):
              (Frame::childFrame):
              (Frame::findFrame):
              (Frame::setZoomFactor):
              (Frame::frames):
              (Frame::customEvent):
              (Frame::slotPartRemoved):
              (Frame::connectChild):
              (Frame::disconnectChild):
              (Frame::setPolicyBaseURL):
              (Frame::setName):
              * page/Frame.h:
              (Frame::Frame):
              * page/FramePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      574594a7
  18. 10 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 5477f33b
      mjs authored
              - moved files related to the Frame class and the forthcoming Page class
              to WebCore/page
              
              - moved files related to the MacFrame class and other bridging-related classes
              to WebCore/bridge/mac
      
              * ForwardingHeaders/ksvg2/KSVGPart.h:
              * ForwardingHeaders/ksvg2/KSVGView.h:
              * WebCore.xcodeproj/project.pbxproj:
              * bridge: Added.
              * bridge/mac: Added.
              * bridge/mac/KWQKHTMLPartBrowserExtension.h: Added.
              * bridge/mac/KWQKHTMLPartBrowserExtension.mm: Added.
              * bridge/mac/KWQKHTMLView.cpp: Added.
              * bridge/mac/KWQKPartsBrowserExtension.h: Added.
              * bridge/mac/KWQKPartsBrowserInterface.mm: Added.
              * bridge/mac/MacFrame.h: Added.
              * bridge/mac/MacFrame.mm: Added.
              * bridge/mac/WebCoreBridge.h: Added.
              * bridge/mac/WebCoreBridge.mm: Added.
              * khtml/Frame.cpp: Removed.
              * khtml/Frame.h: Removed.
              * khtml/khtmlpart_p.h: Removed.
              * khtml/khtmlview.cpp: Removed.
              * khtml/khtmlview.h: Removed.
              * kwq/KWQKHTMLPartBrowserExtension.h: Removed.
              * kwq/KWQKHTMLPartBrowserExtension.mm: Removed.
              * kwq/KWQKHTMLView.cpp: Removed.
              * kwq/KWQKPartsBrowserExtension.h: Removed.
              * kwq/KWQKPartsBrowserInterface.mm: Removed.
              * kwq/MacFrame.h: Removed.
              * kwq/MacFrame.mm: Removed.
              * kwq/WebCoreBridge.h: Removed.
              * kwq/WebCoreBridge.mm: Removed.
              * page: Added.
              * page/Frame.cpp: Added.
              * page/Frame.h: Added.
              * page/khtmlpart_p.h: Added.
              * page/khtmlview.cpp: Added.
              * page/khtmlview.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5477f33b
  19. 09 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 810e9764
      mjs authored
              - renamed KHTMLPart to Frame (and KWQKHTMLPart to MacFrame for now)
      
              * ForwardingHeaders/ksvg2/KSVGPart.h:
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/Frame.cpp: Added.
              (khtml::PartStyleSheetLoader::PartStyleSheetLoader):
              (khtml::PartStyleSheetLoader::setStyleSheet):
              (Frame::Frame):
              (Frame::init):
              (Frame::~Frame):
              (Frame::restoreURL):
              (Frame::didOpenURL):
              (Frame::didExplicitOpen):
              (Frame::stopLoading):
              (Frame::closeURL):
              (Frame::browserExtension):
              (Frame::view):
              (Frame::setJScriptEnabled):
              (Frame::jScriptEnabled):
              (Frame::setMetaRefreshEnabled):
              (Frame::metaRefreshEnabled):
              (Frame::jScript):
              (Frame::replaceContentsWithScriptResult):
              (Frame::executeScript):
              (Frame::scheduleScript):
              (Frame::executeScheduledScript):
              (Frame::setJavaEnabled):
              (Frame::javaEnabled):
              (Frame::setPluginsEnabled):
              (Frame::pluginsEnabled):
              (Frame::slotDebugDOMTree):
              (Frame::slotDebugRenderTree):
              (Frame::setAutoloadImages):
              (Frame::autoloadImages):
              (Frame::clear):
              (Frame::openFile):
              (Frame::xmlDocImpl):
              (Frame::replaceDocImpl):
              (Frame::receivedFirstData):
              (Frame::slotFinished):
              (Frame::childBegin):
              (Frame::begin):
              (Frame::write):
              (Frame::end):
              (Frame::endIfNotLoading):
              (Frame::stop):
              (Frame::stopAnimations):
              (Frame::gotoAnchor):
              (Frame::slotFinishedParsing):
              (Frame::slotLoaderRequestStarted):
              (Frame::slotLoaderRequestDone):
              (Frame::checkCompleted):
              (Frame::checkEmitLoadEvent):
              (Frame::settings):
              (Frame::baseURL):
              (Frame::baseTarget):
              (Frame::completeURL):
              (Frame::scheduleRedirection):
              (Frame::scheduleLocationChange):
              (Frame::isScheduledLocationChangePending):
              (Frame::scheduleHistoryNavigation):
              (Frame::cancelRedirection):
              (Frame::changeLocation):
              (Frame::slotRedirect):
              (Frame::slotRedirection):
              (Frame::encoding):
              (Frame::setUserStyleSheet):
              (Frame::setStandardFont):
              (Frame::setFixedFont):
              (Frame::urlCursor):
              (Frame::onlyLocalReferences):
              (Frame::setOnlyLocalReferences):
              (Frame::selectedText):
              (Frame::hasSelection):
              (Frame::selection):
              (Frame::selectionGranularity):
              (Frame::setSelectionGranularity):
              (Frame::dragCaret):
              (Frame::mark):
              (Frame::setMark):
              (Frame::setSelection):
              (Frame::setDragCaret):
              (Frame::clearSelection):
              (Frame::invalidateSelection):
              (Frame::setCaretVisible):
              (Frame::clearCaretRectIfNeeded):
              (isFrameElement):
              (Frame::setFocusNodeIfNeeded):
              (Frame::selectionLayoutChanged):
              (Frame::setXPosForVerticalArrowNavigation):
              (Frame::xPosForVerticalArrowNavigation):
              (Frame::timerEvent):
              (Frame::paintCaret):
              (Frame::paintDragCaret):
              (Frame::urlSelected):
              (Frame::requestFrame):
              (Frame::requestFrameName):
              (Frame::requestObject):
              (Frame::processObjectRequest):
              (Frame::submitFormAgain):
              (Frame::submitForm):
              (Frame::slotParentCompleted):
              (Frame::slotChildStarted):
              (Frame::slotChildCompleted):
              (Frame::childFrame):
              (Frame::findFrame):
              (Frame::frameExists):
              (Frame::parentFrame):
              (Frame::zoomFactor):
              (Frame::slotIncZoom):
              (Frame::slotDecZoom):
              (Frame::setZoomFactor):
              (Frame::setJSStatusBarText):
              (Frame::setJSDefaultStatusBarText):
              (Frame::jsStatusBarText):
              (Frame::jsDefaultStatusBarText):
              (Frame::referrer):
              (Frame::lastModified):
              (Frame::reparseConfiguration):
              (Frame::frameNames):
              (Frame::frames):
              (Frame::childFrameNamed):
              (Frame::setDNDEnabled):
              (Frame::dndEnabled):
              (Frame::shouldDragAutoNode):
              (Frame::customEvent):
              (Frame::isPointInsideSelection):
              (Frame::selectClosestWordFromMouseEvent):
              (Frame::handleMousePressEventDoubleClick):
              (Frame::handleMousePressEventTripleClick):
              (Frame::handleMousePressEventSingleClick):
              (Frame::khtmlMousePressEvent):
              (Frame::khtmlMouseDoubleClickEvent):
              (Frame::handleMouseMoveEventSelection):
              (Frame::khtmlMouseMoveEvent):
              (Frame::khtmlMouseReleaseEvent):
              (Frame::khtmlDrawContentsEvent):
              (Frame::startAutoScroll):
              (Frame::stopAutoScroll):
              (Frame::selectAll):
              (Frame::selectContentsOfNode):
              (Frame::shouldChangeSelection):
              (Frame::shouldBeginEditing):
              (Frame::shouldEndEditing):
              (Frame::isContentEditable):
              (Frame::lastEditCommand):
              (Frame::appliedEditing):
              (Frame::unappliedEditing):
              (Frame::reappliedEditing):
              (Frame::typingStyle):
              (Frame::setTypingStyle):
              (Frame::clearTypingStyle):
              (Frame::slotPartRemoved):
              (Frame::createHTMLEventListener):
              (Frame::opener):
              (Frame::setOpener):
              (Frame::openedByJS):
              (Frame::setOpenedByJS):
              (Frame::preloadStyleSheet):
              (Frame::preloadScript):
              (Frame::restored):
              (Frame::incrementFrameCount):
              (Frame::decrementFrameCount):
              (Frame::topLevelFrameCount):
              (Frame::tabsToLinks):
              (Frame::tabsToAllControls):
              (Frame::copyToPasteboard):
              (Frame::cutToPasteboard):
              (Frame::pasteFromPasteboard):
              (Frame::pasteAndMatchStyle):
              (Frame::transpose):
              (Frame::redo):
              (Frame::undo):
              (Frame::computeAndSetTypingStyle):
              (Frame::applyStyle):
              (Frame::applyParagraphStyle):
              (updateState):
              (Frame::selectionHasStyle):
              (Frame::selectionStartHasStyle):
              (Frame::selectionStartStylePropertyValue):
              (Frame::selectionComputedStyle):
              (Frame::applyEditingStyleToBodyElement):
              (Frame::removeEditingStyleFromBodyElement):
              (Frame::applyEditingStyleToElement):
              (Frame::removeEditingStyleFromElement):
              (Frame::isCharacterSmartReplaceExempt):
              (Frame::connectChild):
              (Frame::disconnectChild):
              (Frame::keepAlive):
              (Frame::slotEndLifeSupport):
              (Frame::selectFrameElementInParentIfFullySelected):
              (Frame::handleFallbackContent):
              * khtml/Frame.h: Added.
              * khtml/css/cssstyleselector.cpp:
              (khtml::CSSStyleSelector::CSSStyleSelector):
              (khtml::CSSStyleSelector::initForStyleResolve):
              (khtml::CSSStyleSelector::checkOneSelector):
              (khtml::CSSStyleSelector::applyProperty):
              (khtml::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/css/cssstyleselector.h:
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::ScriptInterpreter):
              (KJS::ScriptInterpreter::~ScriptInterpreter):
              * khtml/ecma/kjs_binding.h:
              (KJS::ScriptInterpreter::frame):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocument::getValueProperty):
              (KJS::getDOMDocumentNode):
              (KJS::checkNodeSecurity):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              (KJS::JSLazyEventListener::parseCode):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::HTMLDocFunction::callAsFunction):
              (KJS::HTMLDocument::namedItemGetter):
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::framesetNameGetter):
              (KJS::HTMLElement::frameWindowPropertyGetter):
              (KJS::HTMLElement::getOwnPropertySlot):
              (KJS::KJS::HTMLElement::implementsCall):
              (KJS::Image::notifyFinished):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::Navigator):
              (KJS::Navigator::getValueProperty):
              (KJS::NavigatorFunc::callAsFunction):
              * khtml/ecma/kjs_navigator.h:
              (KJS::Navigator::frame):
              * khtml/ecma/kjs_proxy.cpp:
              (KJSProxyImpl::KJSProxyImpl):
              (KJSProxyImpl::evaluate):
              (KJSProxyImpl::clear):
              (KJSProxyImpl::createHTMLEventHandler):
              (KJSProxyImpl::interpreter):
              (KJSProxyImpl::initScript):
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::History::History):
              (KJS::FrameArray::FrameArray):
              (KJS::Screen::getValueProperty):
              (KJS::Window::Window):
              (KJS::Window::interpreter):
              (KJS::Window::retrieveWindow):
              (KJS::Window::retrieve):
              (KJS::Window::location):
              (KJS::Window::selection):
              (KJS::Window::locationbar):
              (KJS::Window::menubar):
              (KJS::Window::personalbar):
              (KJS::Window::statusbar):
              (KJS::Window::toolbar):
              (KJS::Window::scrollbars):
              (KJS::allowPopUp):
              (KJS::createNewWindow):
              (KJS::canShowModalDialog):
              (KJS::canShowModalDialogNow):
              (KJS::showModalDialog):
              (KJS::Window::getValueProperty):
              (KJS::Window::childFrameGetter):
              (KJS::Window::namedFrameGetter):
              (KJS::Window::indexGetter):
              (KJS::Window::namedItemGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::Window::put):
              (KJS::Window::toBoolean):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::setListener):
              (KJS::Window::getListener):
              (KJS::Window::setCurrentEvent):
              (KJS::WindowFunc::callAsFunction):
              (KJS::Window::updateLayout):
              (KJS::ScheduledAction::execute):
              (KJS::WindowQObject::WindowQObject):
              (KJS::FrameArray::getValueProperty):
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              (KJS::Location::Location):
              (KJS::Location::getValueProperty):
              (KJS::Location::getOwnPropertySlot):
              (KJS::Location::put):
              (KJS::Location::toString):
              (KJS::LocationFunc::callAsFunction):
              (KJS::Selection::Selection):
              (KJS::Selection::getValueProperty):
              (KJS::Selection::getOwnPropertySlot):
              (KJS::Selection::toString):
              (KJS::SelectionFunc::callAsFunction):
              (KJS::BarInfo::BarInfo):
              (KJS::BarInfo::getValueProperty):
              (KJS::BarInfo::getOwnPropertySlot):
              (KJS::History::getValueProperty):
              (KJS::HistoryFunc::callAsFunction):
              * khtml/ecma/kjs_window.h:
              (KJS::Window::frame):
              (KJS::Location::frame):
              (KJS::Selection::frame):
              (KJS::BarInfo::frame):
              * khtml/ecma/xmlhttprequest.cpp:
              (KJS::XMLHttpRequest::changeState):
              (KJS::XMLHttpRequestProtoFunc::callAsFunction):
              * khtml/editing/SelectionController.cpp:
              (khtml::SelectionController::modify):
              (khtml::SelectionController::xPosForVerticalArrowNavigation):
              * khtml/editing/SelectionController.h:
              (khtml::SelectionController::frame):
              * khtml/editing/delete_selection_command.cpp:
              (khtml::DeleteSelectionCommand::calculateTypingStyleAfterDelete):
              * khtml/editing/edit_command.cpp:
              (khtml::EditCommand::EditCommand):
              (khtml::EditCommand::apply):
              (khtml::EditCommand::unapply):
              (khtml::EditCommand::reapply):
              (khtml::EditCommand::styleAtPosition):
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              (khtml::InsertLineBreakCommand::doApply):
              * khtml/editing/insert_text_command.cpp:
              (khtml::InsertTextCommand::input):
              * khtml/editing/jsediting.cpp:
              (DOM::JSEditor::execCommand):
              (DOM::JSEditor::queryCommandEnabled):
              (DOM::JSEditor::queryCommandIndeterm):
              (DOM::JSEditor::queryCommandState):
              (DOM::JSEditor::queryCommandValue):
              * khtml/editing/jsediting.h:
              * khtml/editing/replace_selection_command.cpp:
              (khtml::ReplaceSelectionCommand::doApply):
              * khtml/editing/text_granularity.h:
              * khtml/editing/typing_command.cpp:
              (khtml::TypingCommand::deleteKeyPressed):
              (khtml::TypingCommand::forwardDeleteKeyPressed):
              (khtml::TypingCommand::insertText):
              (khtml::TypingCommand::insertLineBreak):
              (khtml::TypingCommand::insertParagraphSeparatorInQuotedContent):
              (khtml::TypingCommand::insertParagraphSeparator):
              (khtml::TypingCommand::markMisspellingsAfterTyping):
              (khtml::TypingCommand::typingAddedToOpenCommand):
              (khtml::TypingCommand::insertTextRunWithoutNewlines):
              * khtml/html/html_baseimpl.cpp:
              (HTMLFrameElementImpl::isURLAllowed):
              (HTMLFrameElementImpl::openURL):
              (HTMLFrameElementImpl::attach):
              (HTMLFrameElementImpl::close):
              (HTMLFrameElementImpl::contentPart):
              (HTMLFrameElementImpl::contentDocument):
              (HTMLIFrameElementImpl::attach):
              * khtml/html/html_baseimpl.h:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              (DOM::HTMLDocumentImpl::lastModified):
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::isContentEditable):
              (HTMLElementImpl::setContentEditable):
              * khtml/html/html_formimpl.cpp:
              (DOM::HTMLFormElementImpl::formData):
              (DOM::HTMLFormElementImpl::prepareSubmit):
              (DOM::HTMLFormElementImpl::submit):
              (DOM::HTMLFormElementImpl::reset):
              (DOM::HTMLGenericFormElementImpl::isKeyboardFocusable):
              (DOM::HTMLKeygenElementImpl::appendFormData):
              * khtml/html/html_headimpl.cpp:
              (HTMLBaseElementImpl::process):
              (HTMLLinkElementImpl::process):
              (HTMLScriptElementImpl::parseMappedAttribute):
              (HTMLScriptElementImpl::insertedIntoDocument):
              (HTMLScriptElementImpl::evaluateScript):
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::isKeyboardFocusable):
              (DOM::HTMLAnchorElementImpl::defaultEventHandler):
              * khtml/html/html_objectimpl.cpp:
              (DOM::HTMLAppletElementImpl::createRenderer):
              (DOM::HTMLAppletElementImpl::getAppletInstance):
              (DOM::HTMLEmbedElementImpl::getEmbedInstance):
              (DOM::HTMLEmbedElementImpl::rendererIsNeeded):
              (DOM::HTMLObjectElementImpl::getObjectInstance):
              (DOM::HTMLObjectElementImpl::rendererIsNeeded):
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlparser.cpp:
              (HTMLParser::noscriptCreateErrorCheck):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::scriptHandler):
              (khtml::HTMLTokenizer::scriptExecution):
              (khtml::HTMLTokenizer::parseTag):
              (khtml::HTMLTokenizer::write):
              (khtml::HTMLTokenizer::stopParsing):
              (khtml::HTMLTokenizer::timerEvent):
              (khtml::HTMLTokenizer::processToken):
              * khtml/khtml_part.cpp: Removed.
              * khtml/khtml_part.h: Removed.
              * khtml/khtmlpart_p.h:
              (KHTMLPartPrivate::KHTMLPartPrivate):
              * khtml/khtmlview.cpp:
              (KHTMLView::KHTMLView):
              (KHTMLView::~KHTMLView):
              (KHTMLView::clearPart):
              (KHTMLView::clear):
              (KHTMLView::resizeEvent):
              (KHTMLView::adjustViewSize):
              (KHTMLView::layout):
              (KHTMLView::updateDashboardRegions):
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::viewportMouseDoubleClickEvent):
              (selectCursor):
              (KHTMLView::viewportMouseMoveEvent):
              (KHTMLView::viewportMouseReleaseEvent):
              (KHTMLView::keyPressEvent):
              (KHTMLView::dispatchDragEvent):
              (KHTMLView::updateDragAndDrop):
              (KHTMLView::focusNextPrevNode):
              (KHTMLView::mediaType):
              (KHTMLView::dispatchMouseEvent):
              (KHTMLView::viewportWheelEvent):
              (KHTMLView::focusInEvent):
              (KHTMLView::focusOutEvent):
              (KHTMLView::timerEvent):
              (KHTMLView::scheduleRelayout):
              (KHTMLView::unscheduleRelayout):
              * khtml/khtmlview.h:
              (KHTMLView::frame):
              * khtml/misc/CachedImageCallback.cpp:
              (khtml::CachedImageCallback::notifyUpdate):
              (khtml::CachedImageCallback::notifyFinished):
              (khtml::CachedImageCallback::clear):
              * khtml/misc/CachedObject.h:
              * khtml/misc/DocLoader.cpp:
              (khtml::DocLoader::DocLoader):
              (khtml::DocLoader::requestImage):
              (khtml::DocLoader::requestStyleSheet):
              (khtml::DocLoader::requestScript):
              (khtml::DocLoader::requestXSLStyleSheet):
              (khtml::DocLoader::requestXBLDocument):
              * khtml/misc/DocLoader.h:
              (khtml::DocLoader::frame):
              * khtml/misc/loader.cpp:
              (khtml::Loader::slotReceivedResponse):
              * khtml/rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paint):
              (khtml::InlineTextBox::paintMarkedTextUnderline):
              * khtml/rendering/InlineTextBox.h:
              * khtml/rendering/render_applet.cpp:
              (RenderApplet::createWidgetIfNecessary):
              * khtml/rendering/render_block.cpp:
              (khtml::RenderBlock::paintCaret):
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_form.cpp:
              (RenderFileButton::RenderFileButton):
              * khtml/rendering/render_frames.cpp:
              (isURLAllowed):
              (RenderPartObject::updateWidget):
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_object.cpp:
              (RenderObject::draggableNode):
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::eventFilter):
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::updateTitle):
              (DocumentImpl::frame):
              (DocumentImpl::recalcStyle):
              (DocumentImpl::updateSelection):
              (DocumentImpl::open):
              (DocumentImpl::close):
              (DocumentImpl::implicitClose):
              (DocumentImpl::processHttpEquiv):
              (DocumentImpl::selectedStylesheetSet):
              (DocumentImpl::setSelectedStylesheetSet):
              (DocumentImpl::recalcStyleSelector):
              (DocumentImpl::relinquishesEditingFocus):
              (DocumentImpl::acceptsEditingFocus):
              (DocumentImpl::clearSelectionIfNeeded):
              (DocumentImpl::createHTMLEventListener):
              (DocumentImpl::ownerElement):
              (DocumentImpl::referrer):
              (DocumentImpl::parentDocument):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::focus):
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::NodeImpl::dispatchEvent):
              * khtml/xml/dom_xmlimpl.cpp:
              (DOM::ProcessingInstructionImpl::checkStyleSheet):
              * khtml/xml/xml_tokenizer.cpp:
              (khtml::XMLTokenizer::processingInstruction):
              (khtml::XMLTokenizer::executeScripts):
              (khtml::XMLTokenizer::notifyFinished):
              * khtml/xsl/xslt_processorimpl.cpp:
              (DOM::XSLTProcessorImpl::createDocumentFromSource):
              * ksvg2/svg/SVGAElementImpl.cpp:
              (SVGAElementImpl::defaultEventHandler):
              * ksvg2/svg/SVGImageElementImpl.cpp:
              (SVGImageElementImpl::notifyFinished):
              * kwq/DOM.mm:
              (-[DOMNode KJS::Bindings::]):
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject textUnderElement]):
              (-[KWQAccObject value]):
              (-[KWQAccObject accessibilityPerformAction:]):
              (-[KWQAccObject accessibilityAttributeValue:]):
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              (-[KWQAccObject rendererForView:]):
              (-[KWQAccObject doSetAXSelectedTextMarkerRange:]):
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (KWQClipboard::KWQClipboard):
              (KWQClipboard::dragNSImage):
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              (-[KWQPopUpButton nextKeyView]):
              (-[KWQPopUpButton previousKeyView]):
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::KWQFileButton):
              (KWQFileButton::focusPolicy):
              (KWQFileButton::focusChanged):
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              * kwq/KWQKHTMLFactory.h:
              * kwq/KWQKHTMLPart.cpp: Removed.
              * kwq/KWQKHTMLPart.h: Removed.
              * kwq/KWQKHTMLPart.mm: Removed.
              * kwq/KWQKHTMLPartBrowserExtension.h:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::KHTMLPartBrowserExtension):
              (KHTMLPartBrowserExtension::openURLRequest):
              (KHTMLPartBrowserExtension::createNewWindow):
              (KHTMLPartBrowserExtension::setIconURL):
              (KHTMLPartBrowserExtension::setTypedIconURL):
              (KHTMLPartBrowserExtension::canRunModal):
              (KHTMLPartBrowserExtension::canRunModalNow):
              (KHTMLPartBrowserExtension::runModal):
              * kwq/KWQKHTMLView.cpp:
              (KHTMLView::topLevelWidget):
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::KJavaAppletWidget):
              * kwq/KWQKPartsBrowserInterface.h:
              (KParts::BrowserInterface::BrowserInterface):
              * kwq/KWQKPartsBrowserInterface.mm:
              (KParts::BrowserInterface::property):
              (KParts::BrowserInterface::callMethod):
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              (-[KWQListBoxScrollView becomeFirstResponder]):
              (-[KWQTableView keyDown:]):
              (-[KWQTableView keyUp:]):
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              (-[KWQTableView nextKeyView]):
              (-[KWQTableView previousKeyView]):
              * kwq/KWQLoader.mm:
              (KWQServeRequest):
              (KWQServeSynchronousRequest):
              (KWQCheckIfReloading):
              (KWQCheckCacheObjectStatus):
              (KWQCacheObjectExpiresTime):
              * kwq/KWQObject.cpp:
              (QObject::inherits):
              (QObject::isFrame):
              * kwq/KWQObject.h:
              * kwq/KWQPageState.mm:
              (-[KWQPageState dealloc]):
              (-[KWQPageState finalize]):
              * kwq/KWQRegExp.cpp:
              (QRegExp::KWQRegExpPrivate::compile):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              (writeSelection):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              (-[KWQSlider nextKeyView]):
              (-[KWQSlider previousKeyView]):
              (-[KWQSlider canBecomeKeyView]):
              (QSlider::focusPolicy):
              * kwq/KWQSlot.mm:
              (KWQSlot::KWQSlot):
              (KWQSlot::call):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView _isResizableByUser]):
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView nextKeyView]):
              (-[KWQTextAreaTextView previousKeyView]):
              (-[KWQTextAreaTextView _trackResizeFromMouseDown:]):
              (-[KWQTextAreaTextView drawRect:]):
              (-[KWQTextAreaTextView insertTab:]):
              (-[KWQTextAreaTextView insertBacktab:]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              (-[KWQTextAreaTextView shouldDrawInsertionPoint]):
              (-[KWQTextAreaTextView selectedTextAttributes]):
              (-[KWQTextAreaTextView keyDown:]):
              (-[KWQTextAreaTextView keyUp:]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController controlTextDidBeginEditing:]):
              (-[KWQTextFieldController controlTextDidEndEditing:]):
              (-[KWQTextFieldController controlTextDidChange:]):
              (-[KWQTextFieldController control:textView:doCommandBySelector:]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              (-[KWQTextFieldController setHasFocus:]):
              (-[KWQTextField nextKeyView]):
              (-[KWQTextField previousKeyView]):
              (-[KWQSecureTextField nextKeyView]):
              (-[KWQSecureTextField previousKeyView]):
              (-[KWQSearchField nextKeyView]):
              (-[KWQSearchField previousKeyView]):
              * kwq/KWQTimer.h:
              * kwq/KWQWidget.mm:
              (QWidget::setActiveWindow):
              (QWidget::hasFocus):
              (QWidget::setFocus):
              (QWidget::clearFocus):
              (QWidget::isVisible):
              (QWidget::mapFromGlobal):
              (QWidget::setIsSelected):
              * kwq/MacFrame.cpp: Added.
              (MacFrame::isFrameSet):
              * kwq/MacFrame.h: Added.
              (MacFrame::instances):
              (Mac):
              * kwq/MacFrame.mm: Added.
              (Frame::completed):
              (Frame::openURL):
              (Frame::onURL):
              (Frame::setStatusBarText):
              (Frame::started):
              (redirectionTimerMonitor):
              (MacFrame::MacFrame):
              (MacFrame::~MacFrame):
              (MacFrame::freeClipboard):
              (MacFrame::setSettings):
              (MacFrame::generateFrameName):
              (MacFrame::provisionalLoadStarted):
              (MacFrame::userGestureHint):
              (MacFrame::openURL):
              (MacFrame::openURLRequest):
              (MacFrame::didNotOpenURL):
              (MacFrame::currentForm):
              (MacFrame::searchForLabelsAboveCell):
              (MacFrame::searchForLabelsBeforeElement):
              (MacFrame::matchLabelsAgainstElement):
              (MacFrame::findString):
              (MacFrame::clearRecordedFormValues):
              (MacFrame::recordFormValue):
              (MacFrame::submitForm):
              (MacFrame::setEncoding):
              (MacFrame::addData):
              (Frame::frameDetached):
              (MacFrame::urlSelected):
              (MacFrame::createPart):
              (MacFrame::setView):
              (MacFrame::view):
              (MacFrame::setTitle):
              (MacFrame::setStatusBarText):
              (MacFrame::scheduleClose):
              (MacFrame::unfocusWindow):
              (MacFrame::revealSelection):
              (MacFrame::advanceToNextMisspelling):
              (MacFrame::scrollOverflow):
              (MacFrame::wheelEvent):
              (MacFrame::redirectionTimerStartedOrStopped):
              (MacFrame::paint):
              (MacFrame::adjustPageHeight):
              (MacFrame::renderer):
              (MacFrame::userAgent):
              (MacFrame::mimeTypeForFileName):
              (MacFrame::nextKeyViewInFrame):
              (MacFrame::nextKeyViewInFrameHierarchy):
              (MacFrame::nextKeyView):
              (MacFrame::nextKeyViewForWidget):
              (MacFrame::currentEventIsMouseDownInWidget):
              (MacFrame::currentEventIsKeyboardOptionTab):
              (MacFrame::handleKeyboardOptionTabInView):
              (MacFrame::tabsToLinks):
              (MacFrame::tabsToAllControls):
              (MacFrame::executionContextForDOM):
              (MacFrame::bindingRootObject):
              (MacFrame::windowScriptObject):
              (MacFrame::windowScriptNPObject):
              (MacFrame::partClearedInBegin):
              (MacFrame::pauseTimeouts):
              (MacFrame::resumeTimeouts):
              (MacFrame::canCachePage):
              (MacFrame::saveWindowProperties):
              (MacFrame::saveLocationProperties):
              (MacFrame::restoreWindowProperties):
              (MacFrame::restoreLocationProperties):
              (MacFrame::saveInterpreterBuiltins):
              (MacFrame::restoreInterpreterBuiltins):
              (MacFrame::openURLFromPageCache):
              (MacFrame::frameForWidget):
              (MacFrame::bridgeForWidget):
              (MacFrame::frameForNode):
              (MacFrame::documentViewForNode):
              (MacFrame::nodeForWidget):
              (MacFrame::setDocumentFocus):
              (MacFrame::clearDocumentFocus):
              (MacFrame::saveDocumentState):
              (MacFrame::restoreDocumentState):
              (MacFrame::mutableInstances):
              (MacFrame::updatePolicyBaseURL):
              (MacFrame::setPolicyBaseURL):
              (MacFrame::requestedURLString):
              (MacFrame::incomingReferrer):
              (MacFrame::forceLayout):
              (MacFrame::forceLayoutWithPageWidthRange):
              (MacFrame::sendResizeEvent):
              (MacFrame::sendScrollEvent):
              (MacFrame::runJavaScriptAlert):
              (MacFrame::runJavaScriptConfirm):
              (MacFrame::runJavaScriptPrompt):
              (MacFrame::locationbarVisible):
              (MacFrame::menubarVisible):
              (MacFrame::personalbarVisible):
              (MacFrame::scrollbarsVisible):
              (MacFrame::statusbarVisible):
              (MacFrame::toolbarVisible):
              (MacFrame::addMessageToConsole):
              (MacFrame::createEmptyDocument):
              (MacFrame::addMetaData):
              (MacFrame::keyEvent):
              (MacFrame::scrollToAnchor):
              (MacFrame::closeURL):
              (MacFrame::canMouseDownStartSelect):
              (MacFrame::khtmlMousePressEvent):
              (MacFrame::khtmlMouseDoubleClickEvent):
              (MacFrame::passWidgetMouseDownEventToWidget):
              (MacFrame::lastEventIsMouseUp):
              (MacFrame::mouseDownViewIfStillGood):
              (MacFrame::dragHysteresisExceeded):
              (MacFrame::dispatchDragSrcEvent):
              (MacFrame::eventMayStartDrag):
              (MacFrame::khtmlMouseMoveEvent):
              (MacFrame::dragSourceMovedTo):
              (MacFrame::dragSourceEndedAt):
              (MacFrame::dispatchCPPEvent):
              (MacFrame::mayCut):
              (MacFrame::mayCopy):
              (MacFrame::mayPaste):
              (MacFrame::tryCut):
              (MacFrame::tryCopy):
              (MacFrame::tryPaste):
              (MacFrame::khtmlMouseReleaseEvent):
              (MacFrame::clearTimers):
              (MacFrame::passSubframeEventToSubframe):
              (MacFrame::passWheelEventToChildWidget):
              (MacFrame::mouseDown):
              (MacFrame::mouseDragged):
              (MacFrame::mouseUp):
              (MacFrame::sendFakeEventsAfterWidgetTracking):
              (MacFrame::mouseMoved):
              (MacFrame::shouldDragAutoNode):
              (MacFrame::sendContextMenuEvent):
              (MacFrame::fileWrapperForElement):
              (MacFrame::attributedString):
              (MacFrame::selectionRect):
              (MacFrame::visibleSelectionRect):
              (MacFrame::centerSelectionInVisibleArea):
              (MacFrame::imageFromRect):
              (MacFrame::selectionImage):
              (MacFrame::snapshotDragImage):
              (MacFrame::styleForSelectionStart):
              (MacFrame::fontForSelection):
              (MacFrame::fontAttributesForSelectionStart):
              (MacFrame::baseWritingDirectionForSelectionStart):
              (MacFrame::topLevelWidget):
              (MacFrame::tokenizerProcessedData):
              (MacFrame::selectionStartOffset):
              (MacFrame::selectionEndOffset):
              (MacFrame::selectionStart):
              (MacFrame::selectionEnd):
              (MacFrame::setBridge):
              (MacFrame::overrideMediaType):
              (MacFrame::setMediaType):
              (MacFrame::setSelectionFromNone):
              (MacFrame::setDisplaysWithFocusAttributes):
              (MacFrame::displaysWithFocusAttributes):
              (MacFrame::setWindowHasFocus):
              (MacFrame::backslashAsCurrencySymbol):
              (MacFrame::bodyBackgroundColor):
              (MacFrame::keyboardUIMode):
              (MacFrame::setName):
              (MacFrame::didTellBridgeAboutLoad):
              (MacFrame::haveToldBridgeAboutLoad):
              (MacFrame::clear):
              (Frame::print):
              (MacFrame::getAppletInstanceForWidget):
              (MacFrame::getEmbedInstanceForWidget):
              (MacFrame::getObjectInstanceForWidget):
              (MacFrame::addPluginRootObject):
              (MacFrame::cleanupPluginRootObjects):
              (MacFrame::registerCommandForUndoOrRedo):
              (MacFrame::registerCommandForUndo):
              (MacFrame::registerCommandForRedo):
              (MacFrame::clearUndoRedoOperations):
              (MacFrame::issueUndoCommand):
              (MacFrame::issueRedoCommand):
              (MacFrame::issueCutCommand):
              (MacFrame::issueCopyCommand):
              (MacFrame::issuePasteCommand):
              (MacFrame::issuePasteAndMatchStyleCommand):
              (MacFrame::issueTransposeCommand):
              (Frame::canUndo):
              (Frame::canRedo):
              (Frame::canPaste):
              (MacFrame::markMisspellingsInAdjacentWords):
              (MacFrame::markMisspellings):
              (MacFrame::respondToChangedSelection):
              (MacFrame::shouldChangeSelection):
              (MacFrame::respondToChangedContents):
              (MacFrame::isContentEditable):
              (MacFrame::shouldBeginEditing):
              (MacFrame::shouldEndEditing):
              (convertAttributesToUnderlines):
              (MacFrame::setMarkedTextRange):
              (MacFrame::markedTextUsesUnderlines):
              (MacFrame::markedTextUnderlines):
              (MacFrame::canGoBackOrForward):
              (MacFrame::prepareForUserAction):
              (MacFrame::didFirstLayout):
              (MacFrame::dashboardRegionsDictionary):
              (MacFrame::dashboardRegionsChanged):
              (MacFrame::isCharacterSmartReplaceExempt):
              (MacFrame::isFrame):
              (MacFrame::mousePressNode):
              (MacFrame::handledOnloadEvents):
              (MacFrame::shouldClose):
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (updateRenderingForBindings):
              (frameHasSelection):
              (+[WebCoreBridge bridgeForDOMDocument:]):
              (-[WebCoreBridge init]):
              (-[WebCoreBridge initializeSettings:]):
              (-[WebCoreBridge dealloc]):
              (-[WebCoreBridge finalize]):
              (-[WebCoreBridge part]):
              (-[WebCoreBridge setParent:]):
              (-[WebCoreBridge parent]):
              (-[WebCoreBridge provisionalLoadStarted]):
              (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              (-[WebCoreBridge setEncoding:userChosen:]):
              (-[WebCoreBridge addData:]):
              (-[WebCoreBridge closeURL]):
              (-[WebCoreBridge stopLoading]):
              (-[WebCoreBridge didNotOpenURL:pageCache:]):
              (-[WebCoreBridge saveDocumentState]):
              (-[WebCoreBridge restoreDocumentState]):
              (-[WebCoreBridge scrollToAnchorWithURL:]):
              (-[WebCoreBridge scrollOverflowInDirection:granularity:]):
              (-[WebCoreBridge sendScrollWheelEvent:]):
              (-[WebCoreBridge saveDocumentToPageCache]):
              (-[WebCoreBridge canCachePage]):
              (-[WebCoreBridge clear]):
              (-[WebCoreBridge end]):
              (-[WebCoreBridge stop]):
              (-[WebCoreBridge handleFallbackContent]):
              (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]):
              (-[WebCoreBridge scrollToAnchor:]):
              (-[WebCoreBridge isSelectionEditable]):
              (-[WebCoreBridge selectionState]):
              (-[WebCoreBridge _documentTypeString]):
              (-[WebCoreBridge selectedString]):
              (-[WebCoreBridge stringForRange:]):
              (-[WebCoreBridge selectAll]):
              (-[WebCoreBridge deselectAll]):
              (-[WebCoreBridge deselectText]):
              (-[WebCoreBridge isFrameSet]):
              (-[WebCoreBridge reapplyStylesForDeviceType:]):
              (nowPrinting):
              (-[WebCoreBridge _setupRootForPrinting:]):
              (-[WebCoreBridge forceLayoutAdjustingViewSize:]):
              (-[WebCoreBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
              (-[WebCoreBridge sendResizeEvent]):
              (-[WebCoreBridge sendScrollEvent]):
              (-[WebCoreBridge drawRect:withPainter:]):
              (-[WebCoreBridge drawRect:]):
              (-[WebCoreBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              (-[WebCoreBridge adjustPageHeightNew:top:bottom:limit:]):
              (-[WebCoreBridge copyDOMTree:]):
              (-[WebCoreBridge copyRenderTree:]):
              (-[WebCoreBridge removeFromFrame]):
              (-[WebCoreBridge installInFrame:]):
              (-[WebCoreBridge setActivationEventNumber:]):
              (-[WebCoreBridge mouseDown:]):
              (-[WebCoreBridge mouseDragged:]):
              (-[WebCoreBridge mouseUp:]):
              (-[WebCoreBridge mouseMoved:]):
              (-[WebCoreBridge sendContextMenuEvent:]):
              (-[WebCoreBridge currentForm]):
              (-[WebCoreBridge searchForLabels:beforeElement:]):
              (-[WebCoreBridge matchLabels:againstElement:]):
              (-[WebCoreBridge elementAtPoint:]):
              (-[WebCoreBridge URLWithAttributeString:]):
              (-[WebCoreBridge searchFor:direction:caseSensitive:wrap:]):
              (-[WebCoreBridge advanceToNextMisspelling]):
              (-[WebCoreBridge advanceToNextMisspellingStartingJustBeforeSelection]):
              (-[WebCoreBridge unmarkAllMisspellings]):
              (-[WebCoreBridge setTextSizeMultiplier:]):
              (-[WebCoreBridge textEncoding]):
              (-[WebCoreBridge nextKeyView]):
              (-[WebCoreBridge previousKeyView]):
              (-[WebCoreBridge nextKeyViewInsideWebFrameViews]):
              (-[WebCoreBridge previousKeyViewInsideWebFrameViews]):
              (-[WebCoreBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              (-[WebCoreBridge windowScriptObject]):
              (-[WebCoreBridge windowScriptNPObject]):
              (-[WebCoreBridge DOMDocument]):
              (-[WebCoreBridge selectedAttributedString]):
              (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]):
              (-[WebCoreBridge selectionRect]):
              (-[WebCoreBridge visibleSelectionRect]):
              (-[WebCoreBridge centerSelectionInVisibleArea]):
              (-[WebCoreBridge selectionImage]):
              (-[WebCoreBridge setName:]):
              (-[WebCoreBridge name]):
              (-[WebCoreBridge URL]):
              (-[WebCoreBridge baseURL]):
              (-[WebCoreBridge referrer]):
              (-[WebCoreBridge domain]):
              (-[WebCoreBridge opener]):
              (-[WebCoreBridge setOpener:]):
              (-[WebCoreBridge needsLayout]):
              (-[WebCoreBridge setNeedsLayout]):
              (-[WebCoreBridge interceptKeyEvent:toView:]):
              (-[WebCoreBridge renderTreeAsExternalRepresentation]):
              (-[WebCoreBridge setSelectionFromNone]):
              (-[WebCoreBridge setDisplaysWithFocusAttributes:]):
              (-[WebCoreBridge setWindowHasFocus:]):
              (-[WebCoreBridge numPendingOrLoadingRequests]):
              (-[WebCoreBridge doneProcessingData]):
              (-[WebCoreBridge shouldClose]):
              (-[WebCoreBridge bodyBackgroundColor]):
              (-[WebCoreBridge selectionColor]):
              (-[WebCoreBridge adjustViewSize]):
              (-[WebCoreBridge accessibilityTree]):
              (-[WebCoreBridge setDrawsBackground:]):
              (-[WebCoreBridge rangeByExpandingSelectionWithGranularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:direction:granularity:]):
              (-[WebCoreBridge alterCurrentSelection:direction:granularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:verticalDistance:]):
              (-[WebCoreBridge alterCurrentSelection:verticalDistance:]):
              (-[WebCoreBridge selectionGranularity]):
              (-[WebCoreBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreBridge selectedDOMRange]):
              (-[WebCoreBridge convertToNSRange:DOM::]):
              (-[WebCoreBridge convertToDOMRange:]):
              (-[WebCoreBridge selectNSRange:]):
              (-[WebCoreBridge selectedNSRange]):
              (-[WebCoreBridge selectionAffinity]):
              (-[WebCoreBridge setMarkDOMRange:]):
              (-[WebCoreBridge markDOMRange]):
              (-[WebCoreBridge setMarkedTextDOMRange:customAttributes:ranges:]):
              (-[WebCoreBridge markedTextDOMRange]):
              (-[WebCoreBridge markedTextNSRange]):
              (-[WebCoreBridge replaceMarkedTextWithText:]):
              (-[WebCoreBridge smartDeleteRangeForProposedRange:]):
              (-[WebCoreBridge smartInsertForString:replacingRange:beforeString:afterString:]):
              (-[WebCoreBridge documentFragmentWithMarkupString:baseURLString:]):
              (-[WebCoreBridge documentFragmentWithText:]):
              (-[WebCoreBridge documentFragmentWithNodesAsParagraphs:]):
              (-[WebCoreBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              (-[WebCoreBridge insertLineBreak]):
              (-[WebCoreBridge insertParagraphSeparator]):
              (-[WebCoreBridge insertParagraphSeparatorInQuotedContent]):
              (-[WebCoreBridge insertText:selectInsertedText:]):
              (-[WebCoreBridge setSelectionToDragCaret]):
              (-[WebCoreBridge moveSelectionToDragCaret:smartMove:]):
              (-[WebCoreBridge _visiblePositionForPoint:]):
              (-[WebCoreBridge moveDragCaretToPoint:]):
              (-[WebCoreBridge removeDragCaret]):
              (-[WebCoreBridge dragCaretDOMRange]):
              (-[WebCoreBridge deleteSelectionWithSmartDelete:]):
              (-[WebCoreBridge deleteKeyPressedWithSmartDelete:]):
              (-[WebCoreBridge forwardDeleteKeyPressedWithSmartDelete:]):
              (-[WebCoreBridge typingStyle]):
              (-[WebCoreBridge setTypingStyle:withUndoAction:]):
              (-[WebCoreBridge applyStyle:withUndoAction:]):
              (-[WebCoreBridge applyParagraphStyle:withUndoAction:]):
              (-[WebCoreBridge selectionStartHasStyle:]):
              (-[WebCoreBridge selectionHasStyle:]):
              (-[WebCoreBridge applyEditingStyleToBodyElement]):
              (-[WebCoreBridge removeEditingStyleFromBodyElement]):
              (-[WebCoreBridge applyEditingStyleToElement:]):
              (-[WebCoreBridge removeEditingStyleFromElement:]):
              (-[WebCoreBridge fontForSelection:]):
              (-[WebCoreBridge fontAttributesForSelectionStart]):
              (-[WebCoreBridge baseWritingDirectionForSelectionStart]):
              (-[WebCoreBridge ensureSelectionVisible]):
              (-[WebCoreBridge eventMayStartDrag:]):
              (-[WebCoreBridge dragOperationForDraggingInfo:]):
              (-[WebCoreBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreBridge concludeDragForDraggingInfo:]):
              (-[WebCoreBridge dragSourceMovedTo:]):
              (-[WebCoreBridge dragSourceEndedAt:operation:]):
              (-[WebCoreBridge mayDHTMLCut]):
              (-[WebCoreBridge mayDHTMLCopy]):
              (-[WebCoreBridge mayDHTMLPaste]):
              (-[WebCoreBridge tryDHTMLCut]):
              (-[WebCoreBridge tryDHTMLCopy]):
              (-[WebCoreBridge tryDHTMLPaste]):
              (-[WebCoreBridge rangeOfCharactersAroundCaret]):
              (-[WebCoreBridge dashboardRegions]):
              (-[WebCoreBridge executionContextForView:]):
              * kwq/WebCoreSettings.mm:
              (-[WebCoreSettings _updateAllViews]):
              * kwq/WebCoreTextRendererFactory.mm:
              (-[WebCoreTextRendererFactory clearCaches]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      810e9764
  20. 23 Dec, 2005 1 commit
    • ggaren's avatar
      Reviewed by vicki (yay!), eric. · 8a9b5aa9
      ggaren authored
              - Fixed: <rdar://problem/4377597> parsing of window.open features strings needs to be more forgiving
      
              Manual test case: WebCore/manual-tests/window-open-features-parsing.html
              Also fixed: WebCore/manual-tests/window-open-features.html, which had an incorrect URL in it.
      
              This patch is long. Luckily, it's also complicated.
      
              The main thing I've done is to change our parsing of the window.open 'features' argument to match Win IE. This is important because we now implement the correct defaults for window.open, and resizing and scrolling are turned off by default. So, if we parse the 'features' string incorrectly, we'll end up with an annoying, incorrectly sized window that can't resize or scroll.
      
              To honor a long-standing request by Eric, I factored out the parsing into two new functions: parseWindowFeatures and constrainToScreen. I also added support for "innerWidth" and "innerHeight," since they're just synonyms for "width" and "height."
      
              * khtml/ecma/kjs_window.cpp: removed "emit" statements, since emit is #defined as ""
              (KJS::parseDialogFeatures): renamed from parseFeatures, since we now have a 'parseWindowFeatures'.
              (KJS::showModalDialog): ditto on parseFeatures. Also added some missing initializations for WindowArgs data members.
              (KJS::parseWindowFeatures): new function, all new functionality.
              (KJS::constrainToScreen): new function, no new functionality -- just cut and pasted code that used to run as part of our parsing routine.
              (KJS::WindowFunc::callAsFunction):
              (1) Factored out previous parsing code.
              (2) Factored 17 lines of custom popup-blocking code into 3 lines that use pre-existing 'allowPopUp' function. Gratuitous, but it cried out to me.
              (3) Changed URL parsing to substitute "" for undefined *and* null values (we already did this for undefined), to avoid trying to navigate to 'http://null'.
              (4) Factore a multiline if () { if () {}} into an if ( && )
              (4) Removed the main body of code from a giant 'else' block by inserting early returns for the exceptional cases. This caused some things to show up in the diff even though they're just whitespace changes. I didn't actually change any code past the line "if (!str.isEmpty() && activePart)"
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Added code to set toolbars to visible if toolBarVisible is true *or* locationBarVisible is true. The parser used to do this for us, but it's really the browser that's responsible for saying that the toolbar and the locationbar are the same thing. Hopefully, we can add a setLocationBarVisible delegate in the future so that other webkit clients can make their own UI decisions.
              * kwq/KWQKPartsBrowserExtension.h: Added locationBarVisible data member to WindowArgs structure and renamed toolBarsVisible to toolBarVisible (see above). Removed initialization code from WindowArgs structure because this file is for platform-specific code, and what defaults to use for window arguments is purely engine stuff.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a9b5aa9
  21. 20 Dec, 2005 2 commits
    • justing's avatar
      Reviewed by: eric, thatcher · a93836d3
      justing authored
              <rdar://problem/4172984> KWQExceptions needs to use @try/@catch instead of relying on NSException.h internals
      
              Needed to undef try/catch because of 4333439.  Moved the
              declarations of variables that are returned from within a @try
              block outside the @try block (because of "might be clobbered by
              a longjmp or vfork" warnings).  Moved some return statements
              inside the @try block to fix volatilization errors with gcc4.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a93836d3
    • ggaren's avatar
      WebCore: · 0e056159
      ggaren authored
              Reviewed by John.
      
              Fixed <rdar://problem/4310363> JavaScript window.open: Height is 1
              pixel short, and related bugs.
      
              There were a few bugs here.
              (1) Our code took size arguments and applied them to the window's
                  content rect. That's incorrect. The Rhino book says the arguments
                  should apply to the WebView. Other things that occupy the content
                  rect include the tab bar, the status bar, and the 1 pixel border
                  between brushed metal and document. All of these used to impinge
                  on the web page's display area.
      
                  The fix is to calculate sizing based on the WebView instead of
                  the content rect. This means that the webViewContentRect and
                  setContentRect delegate methods are obsolete and no longer called
                  by any of our code. (setContentRect was never called in the
                  first place.)
      
              (2) None of our sizing accounted for scaled resolutions.
      
                  The fix is to ask the WebView to scale all coordintes for us.
      
              (3) Our code assumed that all window accoutrements were on by default.
                  Safari works that way, but other WebKit clients might not.
      
                  The fix is always to explicitly set an on/off state.
      
              (a) To facilitate scaling, I added a new bridge method, webView, to
              access the webView.
      
              (b) For internal consistency, I changed ___Bars to ___bars in bridge
              methods, and ___bars to ___Bars in WinArgs data members. (Interestingly,
              the different classes in our code are evenly divided on which format to
              use.)
      
              Added manual test:
              * manual-tests/window-open-features.html: Added.
              * manual-tests/resources/200x200.png: Added.
              * manual-tests/resources/popup200x200.html: Added.
      
              * khtml/ecma/kjs_window.cpp:
              (KJS::showModalDialog): see (b)
              (KJS::WindowFunc::callAsFunction): see (b)
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::statusbarVisible): see (b)
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):
              At the top of this method, I just did some formatting cleanup and
              moved the 'referrer' variable closer to where it's used.
              The changes in the middle of the method are (3), the bottom, (2).
              * kwq/KWQKPartsBrowserExtension.h:
              (KParts::WindowArgs::WindowArgs): see (b)
              * kwq/WebCoreBridge.h: see (a)
      
      WebKit:
      
              Reviewed by John.
      
              Part of fix for <rdar://problem/4310363> JavaScript window.open: Height
              is 1 pixel short, and related bugs. See WebCore ChageLog.
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge webView]): Added method.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e056159
  22. 03 Oct, 2005 1 commit
    • mjs's avatar
      JavaScriptCore: · b64c50a2
      mjs authored
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	A number of optimizations to the new threadsafe malloc that make it actually as fast
      	as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc.
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
      	via a private inline operator new that is now included into every file via config.h.
      
      	- tweaked some of the numeric parameters for size classes and amount of wasted memory
      	allowed per allocation - this saves on memory use and consequently improves speed.
      
      	- so long as the allocator is not being used on background threads, get the per-thread
      	cache from a global variable instead of from pthread_getspecific, since the latter is slow.
      
      	- inline more functions, and force the ones GCC refuses to inline with
      	attribute(always_inline), nearly all of these have one call site so inlining them has
      	to be a win.
      
      	- use some tricks to calculate allocation size more efficiently and fewer times for small
      	allocations, to avoid hitting the huge size table array.
      
      	- avoid hitting the per-thread cache on code paths that don't need it.
      
      	- implement inline assembly version of spinlock for PowerPC (was already done for x86)
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_class.cpp:
              * bindings/c/c_instance.cpp:
              * bindings/c/c_runtime.cpp:
              * bindings/c/c_utility.cpp:
              * bindings/jni/jni_class.cpp:
              * bindings/jni/jni_instance.cpp:
              * bindings/jni/jni_jsobject.cpp:
              * bindings/jni/jni_objc.mm:
              * bindings/jni/jni_runtime.cpp:
              * bindings/jni/jni_utility.cpp:
              * bindings/npruntime.cpp:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.cpp:
              * bindings/runtime_array.cpp:
              * bindings/runtime_method.cpp:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.cpp:
              * bindings/testbindings.cpp:
              * bindings/testbindings.mm:
              * kjs/array_object.cpp:
              (ArrayInstanceImp::ArrayInstanceImp):
              (ArrayInstanceImp::~ArrayInstanceImp):
              (ArrayInstanceImp::resizeStorage):
              * kjs/bool_object.cpp:
              * kjs/collector.cpp:
              (KJS::Collector::registerThread):
              * kjs/config.h:
              * kjs/debugger.cpp:
              * kjs/error_object.cpp:
              * kjs/function.cpp:
              * kjs/function_object.cpp:
              * kjs/identifier.cpp:
              (KJS::Identifier::rehash):
              * kjs/internal.cpp:
              (KJS::Parser::saveNewNode):
              (KJS::clearNewNodes):
              * kjs/interpreter.cpp:
              * kjs/lexer.cpp:
              (Lexer::doneParsing):
              (Lexer::makeIdentifier):
              (Lexer::makeUString):
              * kjs/list.cpp:
              * kjs/math_object.cpp:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/nodes2string.cpp:
              * kjs/number_object.cpp:
              (integer_part_noexp):
              (char_sequence):
              * kjs/object.cpp:
              * kjs/object_object.cpp:
              * kjs/property_map.cpp:
              * kjs/property_slot.cpp:
              * kjs/protected_values.cpp:
              (KJS::ProtectedValues::rehash):
              * kjs/reference.cpp:
              * kjs/reference_list.cpp:
              * kjs/regexp.cpp:
              * kjs/regexp_object.cpp:
              * kjs/scope_chain.cpp:
              * kjs/scope_chain.h:
              * kjs/string_object.cpp:
              * kjs/testkjs.cpp:
              * kjs/ustring.h:
              * kjs/value.cpp:
              * kxmlcore/Assertions.mm:
              * kxmlcore/FastMalloc.cpp:
              (KXMLCore::InitSizeClasses):
              (KXMLCore::DLL_IsEmpty):
              (KXMLCore::DLL_Prepend):
              (KXMLCore::TCMalloc_Central_FreeList::Insert):
              (KXMLCore::TCMalloc_Central_FreeList::Remove):
              (KXMLCore::TCMalloc_Central_FreeList::Populate):
              (KXMLCore::TCMalloc_ThreadCache::Allocate):
              (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
              (KXMLCore::fastMallocRegisterThread):
              (KXMLCore::TCMalloc_ThreadCache::GetCache):
              (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
              (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
              (KXMLCore::do_malloc):
              (KXMLCore::do_free):
              (KXMLCore::realloc):
              * kxmlcore/FastMalloc.h:
              (operator new):
              (operator delete):
              (operator new[]):
              (operator delete[]):
              * kxmlcore/HashTable.cpp:
              * kxmlcore/TCSpinLock.h:
              (TCMalloc_SpinLock::Lock):
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * kxmlcore/TCSystemAlloc.cpp:
      
      WebCore:
      
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
              via a private inline operator new that is now included into every file via config.h
      
              * WebCore.xcodeproj/project.pbxproj:
              * WebCorePrefix.h:
              * khtml/css/css_base.cpp:
              * khtml/css/css_base.h:
              * khtml/css/css_computedstyle.cpp:
              * khtml/css/css_ruleimpl.cpp:
              * khtml/css/css_stylesheetimpl.cpp:
              * khtml/css/css_valueimpl.cpp:
              * khtml/css/css_valueimpl.h:
              * khtml/css/csshelper.cpp:
              * khtml/css/cssparser.cpp:
              (ValueList::ValueList):
              (ValueList::~ValueList):
              (ValueList::addValue):
              (CSSParser::CSSParser):
              (CSSParser::~CSSParser):
              (CSSParser::setupParser):
              (CSSParser::addProperty):
              * khtml/css/cssstyleselector.cpp:
              * khtml/css/cssstyleselector.h:
              * khtml/dom/dom2_events.cpp:
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom_misc.cpp:
              * khtml/dom/dom_string.cpp:
              * khtml/ecma/domparser.cpp:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Gradient::~Gradient):
              (KJS::Gradient::addColorStop):
              (KJS::Gradient::colorStops):
              * khtml/ecma/kjs_navigator.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/break_blockquote_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_from_text_node_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/html_interchange.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_into_text_node_command.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/jsediting.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/remove_css_property_command.cpp:
              * khtml/editing/remove_node_attribute_command.cpp:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/set_node_attribute_command.cpp:
              * khtml/editing/split_element_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/split_text_node_containing_element.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_range.cpp:
              * khtml/editing/visible_text.cpp:
              (khtml::CircularSearchBuffer::~CircularSearchBuffer):
              (khtml::CircularSearchBuffer::CircularSearchBuffer):
              * khtml/editing/visible_units.cpp:
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_blockimpl.cpp:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_elementimpl.cpp:
              * khtml/html/html_formimpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              * khtml/html/html_listimpl.cpp:
              * khtml/html/html_miscimpl.cpp:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlfactory.cpp:
              * khtml/html/htmlnames.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::enlargeBuffer):
              (khtml::HTMLTokenizer::enlargeScriptBuffer):
              * khtml/khtml_events.cpp:
              * khtml/khtml_part.cpp:
              * khtml/khtmlview.cpp:
              * khtml/misc/arena.cpp:
              * khtml/misc/arena.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/formdata.cpp:
              * khtml/misc/helper.cpp:
              * khtml/misc/loader.cpp:
              * khtml/misc/stringit.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/break_lines.cpp:
              * khtml/rendering/font.cpp:
              * khtml/rendering/render_arena.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_br.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_canvasimage.cpp:
              (RenderCanvasImage::~RenderCanvasImage):
              (RenderCanvasImage::createDrawingContext):
              * khtml/rendering/render_container.cpp:
              * khtml/rendering/render_flexbox.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_image.cpp:
              * khtml/rendering/render_inline.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_list.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_style.cpp:
              * khtml/rendering/render_style.h:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_text.cpp:
              * khtml/rendering/render_theme.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/rendering/table_layout.cpp:
              * khtml/xbl/xbl_binding.cpp:
              * khtml/xbl/xbl_binding_manager.cpp:
              * khtml/xbl/xbl_docimpl.cpp:
              * khtml/xbl/xbl_protobinding.cpp:
              * khtml/xbl/xbl_protohandler.cpp:
              * khtml/xbl/xbl_protoimplementation.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xml/EventNames.cpp:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom2_rangeimpl.cpp:
              * khtml/xml/dom2_rangeimpl.h:
              * khtml/xml/dom2_traversalimpl.cpp:
              * khtml/xml/dom2_traversalimpl.h:
              * khtml/xml/dom2_viewsimpl.cpp:
              * khtml/xml/dom2_viewsimpl.h:
              * khtml/xml/dom_atomicstring.cpp:
              * khtml/xml/dom_docimpl.cpp:
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_qname.cpp:
              * khtml/xml/dom_stringimpl.cpp:
              * khtml/xml/dom_stringimpl.h:
              * khtml/xml/dom_textimpl.cpp:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * kwq/DOM-CSS.mm:
              * kwq/DOM.mm:
              * kwq/DOMEvents.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (DOMString::DOMString):
              * kwq/DOMUtility.mm:
              * kwq/DOMViews.mm:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQApplication.mm:
              * kwq/KWQArrayImpl.h:
              * kwq/KWQArrayImpl.mm:
              * kwq/KWQBuffer.mm:
              * kwq/KWQButton.mm:
              * kwq/KWQCString.mm:
              * kwq/KWQCharsets.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQCollection.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQCursor.mm:
              * kwq/KWQDateTime.mm:
              * kwq/KWQDictImpl.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQEvent.mm:
              * kwq/KWQExceptions.mm:
              * kwq/KWQFile.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFontFamily.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQFormData.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQGlobal.mm:
              * kwq/KWQGuardedPtr.mm:
              * kwq/KWQKCharsets.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKCookieJar.mm:
              * kwq/KWQKCursor.mm:
              * kwq/KWQKGlobal.mm:
              * kwq/KWQKGlobalSettings.mm:
              * kwq/KWQKHTMLFactory.mm:
              * kwq/KWQKHTMLPart.cpp:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHTMLView.mm:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKJob.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQKPartsEvent.mm:
              * kwq/KWQKPartsPart.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQKStandardDirs.mm:
              * kwq/KWQKStringHandler.mm:
              * kwq/KWQKURL.mm:
              (KURL::KURL):
              (KURL::decode_string):
              (KURL::parse):
              (KURL::encode_string):
              (encodeRelativeString):
              * kwq/KWQKWin.mm:
              * kwq/KWQKWinModule.mm:
              * kwq/KWQLabel.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLoader.mm:
              (KWQIsResponseURLEqualToURL):
              * kwq/KWQMapImpl.h:
              * kwq/KWQMapImpl.mm:
              * kwq/KWQMovie.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPaintDeviceMetrics.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPalette.mm:
              * kwq/KWQPen.mm:
              * kwq/KWQPixmap.mm:
              * kwq/KWQPoint.mm:
              * kwq/KWQPointArray.mm:
              * kwq/KWQPtrDictImpl.mm:
              * kwq/KWQPushButton.mm:
              * kwq/KWQRect.mm:
              * kwq/KWQRegExp.mm:
              * kwq/KWQRegion.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQSignal.mm:
              * kwq/KWQSignalStubs.mm:
              * kwq/KWQSize.mm:
              * kwq/KWQSlider.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.h:
              * kwq/KWQString.mm:
              (ALLOC_CHAR):
              (REALLOC_CHAR):
              (DELETE_CHAR):
              (ALLOC_QCHAR):
              (REALLOC_QCHAR):
              (DELETE_QCHAR):
              (_printQStringAllocationStatistics):
              (allocateHandle):
              (KWQStringData::operator new):
              (KWQStringData::operator delete):
              (freeHandle):
              * kwq/KWQStringList.mm:
              * kwq/KWQStyle.mm:
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextCodec.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQTextStream.mm:
              * kwq/KWQTextUtilities.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQValueListImpl.h:
              * kwq/KWQValueListImpl.mm:
              * kwq/KWQVariant.mm:
              * kwq/KWQVectorImpl.mm:
              (KWQVectorImpl::KWQVectorImpl):
              (KWQVectorImpl::~KWQVectorImpl):
              (KWQVectorImpl::clear):
              (KWQVectorImpl::resize):
              (KWQVectorImpl::assign):
              * kwq/KWQWMatrix.mm:
              * kwq/KWQWidget.mm:
              * kwq/KWQWindowWidget.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCache.mm:
              * kwq/WebCoreEncodings.mm:
              * kwq/WebCoreJavaScript.mm:
              * kwq/WebCoreScriptDebugger.mm:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/can-convert.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b64c50a2
  23. 01 Jun, 2005 1 commit
    • darin's avatar
      WebCore: · f9876fae
      darin authored
              Reviewed by John Sullivan.
              No layout tests added because showModalDialog won't work in DumpRenderTree at the moment.
      
              - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
      
              * khtml/ecma/kjs_window.cpp:
              (KJS::allowPopUp): Added. Used by showModalDialog now and should be used by window.open later.
              (KJS::parseFeatures): Ditto.
              (KJS::boolFeature): Ditto.
              (KJS::intFeature): Ditto.
              (KJS::createNewWindow): Ditto.
              (KJS::canShowModalDialog): Added.
              (KJS::canShowModalDialogNow): Added.
              (KJS::showModalDialog): Added.
              (KJS::Window::get): Return the showModalDialog function object if the extension can run modal.
              (KJS::Window::clear): Add code to store the return value for the case where the window is a modal dialog.
              (KJS::WindowFunc::tryCall): Add the call to the showModalDialog function.
      
              * khtml/ecma/kjs_window.h: Add setReturnValueSlot function so showModalDialog can get the return
              value from the dialog it creates. Also add a data member to keep track of the pointer and a constant
              for the ShowModalDialog method.
      
              * khtml/khtml_part.h: Added new changeLocation member function. Made setOpener, openedByJS, and
              setOpenedByJS public.
      
              * khtml/khtml_part.cpp:
              (KHTMLPart::changeLocation): Broke out the part of slotRedirect that actually does the location change
              into a separate function so it can be called when needed. The case using it now is to load the content
              of a new window in KJS::createNewWindow.
              (KHTMLPart::slotRedirect): Call changeLocation to do most of the work.
              (KHTMLPart::urlSelected): Fixed a broken case where the "lack of referrer" in a new window would cause
              the referrer passed in by JavaScript to be ignored when opening a new window -- match logic elsewhere
              that leaves the referrer in the args alone if one is not set in the window.
      
              * khtml/khtmlpart_p.h: Initialize m_bCleared to true to avoid an unnecessary clear before loading the
              first URL in a new window. This change is needed to avoid blowing away the "dialogArguments" value in
              a modal dialog window, but it also avoid unnecessary work for each new window.
      
              * kwq/KWQApplication.h: Add availableGeometry function for QDesktopWidget. Used by the showModalDialog
              function inside kjs_window.cpp (and should be used elsewhere eventually too). Matches a Qt function that
              we just didn't have implemented before.
              * kwq/KWQApplication.mm: (QDesktopWidget::availableGeometry): Added.
      
              * kwq/KWQKHTMLPartBrowserExtension.h: Added new canRunModal, canRunModalNow, and runModal functions.
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Call createModalDialogWithURL on the bridge if the
              new window is a dialog. Also fixed the early return case for when the bridge returns nil.
              (KHTMLPartBrowserExtension::canRunModal): Added. Calls bridge.
              (KHTMLPartBrowserExtension::canRunModalNow): Ditto.
              (KHTMLPartBrowserExtension::runModal): Ditto.
      
              * kwq/KWQKPartsBrowserExtension.h:
              (KParts::URLArgs::URLArgs): Initialize m_lockHistory to false.
              (KParts::WindowArgs::WindowArgs): Add a dialog boolean.
      
              * kwq/WebCoreBridge.h: Declared canRunModal, canRunModalNow, createModalDialogWithURL, and runModal methods.
      
      WebKit:
      
              Reviewed by John Sullivan.
      
              - WebKit part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge createModalDialogWithURL:]): Added. Calls the UI delegate, falling back to the generic
              "create WebView" method.
              (-[WebBridge canRunModal]): Added. Checks the UI delegate to see if it implements runModal.
              (-[WebBridge canRunModalNow]): Added. Checks the "inConnectionCallback" field so we can prevent
              deadlock since we can't do any I/O while inside a connection callback until this aspect of NSURLConnection
              is changed.
              (-[WebBridge runModal]): Added. Sets "defersCallbacks" on all other web views in the group, then
              calls runModal on the UI delegate.
      
              * WebView.subproj/WebBaseResourceHandleDelegate.h: Added inConnectionCallback class method.
              * WebView.subproj/WebBaseResourceHandleDelegate.m:
              (-[WebBaseResourceHandleDelegate connection:willSendRequest:redirectResponse:]): Bump count and then
              decrement count so we can tell if we are in a callback.
              (-[WebBaseResourceHandleDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didReceiveResponse:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didReceiveData:lengthReceived:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:willStopBufferingData:]): Ditto.
              (-[WebBaseResourceHandleDelegate connectionDidFinishLoading:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:didFailWithError:]): Ditto.
              (-[WebBaseResourceHandleDelegate connection:willCacheResponse:]): Ditto.
              (+[WebBaseResourceHandleDelegate inConnectionCallback]): Added. Return YES if count is not 0.
      
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient receivedError:]): Changed to use the method without the connection: parameter
              in the base class, since we no longer are overriding the connection: version.
              (-[WebMainResourceClient willSendRequest:redirectResponse:]): Change to override the version without
              the connection prefix/parameter; now only the base class overrides the actual connection delegate methods.
              (-[WebMainResourceClient continueAfterContentPolicy:response:]): Ditto.
              (-[WebMainResourceClient didReceiveResponse:]): Ditto.
              (-[WebMainResourceClient didReceiveData:lengthReceived:]): Ditto.
              (-[WebMainResourceClient didFinishLoading]): Ditto.
              (-[WebMainResourceClient didFailWithError:]): Ditto.
              (-[WebMainResourceClient loadWithRequestNow:]): Call the method without the connection parameter.
      
              * WebView.subproj/WebUIDelegatePrivate.h: Added new SPI here that WebBrowser implements.
      
      WebBrowser:
      
              Reviewed by John.
      
              - WebBrowser part of fix for <rdar://problem/3166090> add IE JavaScript extension window.showModalDialog
      
              * AppController.m: (-[AppController validateUserInterfaceItem:]): Disable the find panel
              when there's a modal panel up.
              * BrowserApplication.m: (-[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:]):
              Force the event loop to use the default run loop mode instead of the modal panel mode for
              modal BrowserWindows. This is required to work around the WebFoundation issue where it will
              only give us data in the default run loop mode.
              * BrowserDocument.m:
              (-[BrowserDocument canAddBookmark]): Return NO when a modal window is up.
              (-[BrowserDocument canViewSource]): Ditto.
              (-[BrowserDocument canMailPage]): Ditto.
              (-[BrowserDocument canMailPageAddress]): Ditto.
              (-[BrowserDocument canOpenInDashboard]): Ditto.
              (-[BrowserDocument canSave]): Ditto.
              (-[BrowserDocument validateUserInterfaceItem:]): Disable save commands when modal window is up.
              Also implement validation for all three of the save commands that we implement.
              * BrowserDocumentController.m: (-[BrowserDocumentController validateUserInterfaceItem:]):
              Disable newTab: when modal window is up.
              * BrowserWebView.m:
              (-[BrowserWebView webView:createWebViewModalDialogWithRequest:]): Added. Creates a window that
              has no toolbar, which is an efficient way to disable all the toolbar-related commands for that
              window, even ones built into AppKit which otherwise would be difficult to disable.
              (-[BrowserWebView webViewRunModal:]): Added. Currently just calls -[NSApplication runModalForWindow:]
              but could do more in the future. More importantly, having this implemented is how the Web Kit can
              tell that this application supports modal web dialogs.
              (-[BrowserWebView validateUserInterfaceItem:]): Disable setPageForSnapBackToCurrentPage: for
              modal windows.
              * BrowserWindow.m: (-[BrowserWindow close]): Abort the modal session if the window being closed is
              the modal window. This is the only way we return from webViewRunModal:.
              * BrowserWindowController.m:
              (-[BrowserWindowController canShowInputFields]): Return no when this window is modal.
              (-[BrowserWindowController validateUserInterfaceItem:]): Disable newTab: and newBookmarkFolder: when
              modal window is up.
              (-[BrowserWindowController validateMenuItem:]): Disable Show/Hide of address bar, bookmarks bar,
              bookmarks collection, and toggleFullScreen: when modal window is up.
              (-[BrowserWindowController showWindow:]): Change code so that a new window always comes up behind
              a modal window. Also rearranged things so that setWindowFocusDisabled:YES will be called in any
              case where the window does not start out as key.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9876fae
  24. 09 Mar, 2005 1 commit
    • mjs's avatar
      WebCore: · 2b06eabb
      mjs authored
              Reviewed by Darin.
      
      	<rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
      
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::putValue):
              * khtml/ecma/kjs_window.cpp:
              (Window::put):
              (WindowFunc::tryCall):
              (Location::put):
              (LocationFunc::tryCall):
              * khtml/khtml_part.cpp:
              (KHTMLPart::begin):
              (KHTMLPart::scheduleLocationChange):
              (KHTMLPart::slotRedirect):
              (KHTMLPart::processObjectRequest):
              * khtml/khtml_part.h:
              * khtml/khtmlpart_p.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::openURLRequest):
              (KWQKHTMLPart::urlSelected):
              (KWQKHTMLPart::createPart):
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (hasCaseInsensitivePrefix):
              (-[WebCoreBridge didNotOpenURL:pageCache:]):
              (-[WebCoreBridge canLoadURL:fromReferrer:hideReferrer:]):
      
      WebKit:
      
              Reviewed by Darin.
      
      	<rdar://problem/4005575> Arbitrary file disclosure vulnerability due to ability to load local html from remote content
      
      	* Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView requestWithURLCString:]):
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
              (-[WebNetscapePluginEmbeddedView didStart]):
              * Plugins.subproj/WebNetscapePluginStream.m:
              (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge createWindowWithURL:frameName:]):
              (-[WebBridge startLoadingResource:withURL:customHeaders:]):
              (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
              (-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
              (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
              (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
              (-[WebBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              (-[WebBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:]):
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _loadURL:referrer:intoChild:]):
              * WebView.subproj/WebFramePrivate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@8837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b06eabb
  25. 06 Jul, 2004 1 commit
    • trey's avatar
      WebCore: · ce1bdcce
      trey authored
      	3716053 - www.theage.com.au has extra back/forward items due to ads
      
      	This turned out to be easily fixed by generalizing the fix to 3438441.  We prevent
      	addition to the b/f list not just during an onload event, but during any non-user
      	gesture, which includes top level script executing.
      
              Reviewed by Richard.
      
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::openURL):  Only real change - prevent adding to b/f list if not
      	a user gesture.
              (KWQKHTMLPart::openURLRequest):  Rename "onLoadEvent" to "userGesture", swap sense
              (KWQKHTMLPart::submitForm):  Ditto
              (KWQKHTMLPart::urlSelected): Ditto
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):  Ditto
              * kwq/WebCoreBridge.h:
      
      WebKit:
      
      	3716053 - www.theage.com.au has extra back/forward items due to ads
      
      	The real change was in WebKit.  Here was are just renaming a method and folding
      	all the WebFrameLoadTypeOnLoadEvent uses to be WebFrameLoadTypeInternal, since there
      	was never any difference anyway.
      
              Reviewed by Richard
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):  rename part of the method.
              * WebView.subproj/WebFrame.m:  Nuke WebFrameLoadTypeOnLoadEvent.
              (-[WebFrame _transitionToCommitted:]):
              (-[WebFrame _checkLoadCompleteForThisFrame]):
              (-[WebFrame _loadItem:withLoadType:]):
              (-[WebFrame _itemForRestoringDocState]):
              * WebView.subproj/WebFramePrivate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce1bdcce
  26. 16 Nov, 2003 2 commits
    • mjs's avatar
      Reviewed by Darin. · 7bffcb6f
      mjs authored
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Check for the
      	returned part being NULL, not the out value pointer.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7bffcb6f
    • mjs's avatar
      Reviewed by Dave. · 56e6f12a
      mjs authored
      	- fixed 3484723 - name property of window reference from window.open call is always empty
      
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Set the part name on the khtml side when
      	making a new window.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56e6f12a
  27. 03 Nov, 2003 1 commit
    • mjs's avatar
      Reviewed by Darin. · ba3757fa
      mjs authored
      	- fixed 3370085 - new frames with javascript: URLs should be populated with the result of the JavaScript code
      
              * ChangeLog:
              * khtml/html/html_baseimpl.cpp:
              (HTMLFrameElementImpl::updateForNewURL): Skip special filtering of
      	javascript:.
              (HTMLFrameElementImpl::attach): Ditto.
              * khtml/khtml_part.cpp:
              (KHTMLPart::replaceContentsWithScriptResult): New method to execute
      	script and if the result is a string, set it as the new document contents.
      	(KHTMLPart::requestFrame): Removed APPLE_CHANGES around
      	javascript: handling. Use new
      	replaceContentsWithScriptResult method. This executes the
      	JS in the new child frame, not the parent frame, as in other
      	browsers.
              * khtml/khtml_part.h: Prototype new method.
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::openURLRequest): Use new part method.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba3757fa
  28. 27 Oct, 2003 1 commit
    • mjs's avatar
      Reviewed by Darin. · 3d42fac8
      mjs authored
      	Improved exception blocking in the following ways:
      
      	- use C++ constructors and destructors so returning or breaking out of an exception block works
      	- Remove use of volatile
      	- Collapse the caught exception case into a single function call to reduce code size.
      
              * WebCore.pbproj/project.pbxproj:
              * kwq/KWQButton.mm:
              * kwq/KWQCheckBox.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQExceptions.h:
              * kwq/KWQExceptions.mm: Added.
              * kwq/KWQFileButton.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKCookieJar.mm:
              * kwq/KWQKCursor.mm:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPushButton.mm:
              * kwq/KWQRadioButton.mm:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQWidget.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d42fac8
  29. 08 Oct, 2003 1 commit
    • mjs's avatar
      Reviewed by Ken. · 5ea58b66
      mjs authored
      	Start on blocking Cocoa exceptions when calling ObjC from C++ to
      	avoid unreproducible crashes when this happens.
      
              * kwq/KWQExceptions.h: Added. Helper macros for exception blocking.
              * WebCore.pbproj/project.pbxproj: Add new header
      
      	In all these files, block exceptions when calling ObjC from C++,
      	or explain why not.
      
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQApplication.mm:
              * kwq/KWQButton.mm:
              (QButton::QButton):
              (QButton::~QButton):
              (QButton::setText):
              (QButton::text):
              (QButton::clicked):
              (QButton::simulateClick):
              (QButton::setFont):
              (QButton::focusPolicy):
              * kwq/KWQCheckBox.mm:
              (QCheckBox::QCheckBox):
              (QCheckBox::setChecked):
              (QCheckBox::isChecked):
              (QCheckBox::dimensions):
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              (QComboBox::QComboBox):
              (QComboBox::~QComboBox):
              (QComboBox::insertItem):
              (QComboBox::sizeHint):
              (QComboBox::setCurrentItem):
              (QComboBox::updateCurrentItem):
              (QComboBox::setFont):
              (QComboBox::dimensions):
              * kwq/KWQCursor.mm:
              * kwq/KWQFile.mm:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::KWQFileButton):
              (KWQFileButton::~KWQFileButton):
              (KWQFileButton::setFilename):
              (KWQFileButton::sizeForCharacterWidth):
              (KWQFileButton::frameGeometry):
              (KWQFileButton::setFrameGeometry):
              (KWQFileButton::baselinePosition):
              (KWQFileButton::filenameChanged):
              * kwq/KWQKCookieJar.mm:
              (KWQKCookieJar::cookie):
              (KWQKCookieJar::setCookie):
              (KWQKCookieJar::cookieEnabled):
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):
              (KHTMLPartBrowserExtension::setIconURL):
              (KHTMLPartBrowserExtension::setTypedIconURL):
              * kwq/KWQKHistoryProvider.mm:
              (KParts::HistoryProvider::contains):
              * kwq/KWQKPartsBrowserInterface.mm:
              (KParts::BrowserInterface::callMethod):
              * kwq/KWQKStandardDirs.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQKWinModule.mm:
              (KWinModule::workArea):
              * kwq/KWQObject.mm:
              * kwq/KWQString.mm:
              (QString::getNSString):
              * kwq/KWQTimer.mm:
              * kwq/KWQWindowWidget.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5147 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ea58b66
  30. 01 Oct, 2003 1 commit
    • rjw's avatar
      WebKit: · a04f4919
      rjw authored
      	Fixed 3438441.  If a load is triggered by a onload handling, don't add an entry for it into the b/f or history.  The new Google ads use this technique.
      
              Reviewed by Ken.
      
              * Misc.subproj/WebKitLogging.h:
              * Misc.subproj/WebKitLogging.m:
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge loadURL:referrer:reload:onLoadEvent:target:triggeringEvent:form:formValues:]):
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebFramePrivate.m:
              (-[WebFrame _addBackForwardItemClippedAtTarget:]):
              (-[WebFrame _transitionToCommitted:]):
              (-[WebFrame _isLoadComplete]):
              (-[WebFrame _loadItem:withLoadType:]):
              (-[WebFrame _itemForRestoringDocState]):
      
      WebCore:
      	Fixed 3438441.  Pass extra info up to WebKit about load type, specifically is a load is triggered by JS running in an onLoad handler.
      
              Reviewed by Ken.
      
              * khtml/ecma/kjs_binding.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::openURL):
              (KWQKHTMLPart::openURLRequest):
              (KWQKHTMLPart::submitForm):
              (KWQKHTMLPart::urlSelected):
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):
      
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge saveDocumentToPageCache]):
      	Nothing changed.  Tweaked spacing.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a04f4919
  31. 17 Jul, 2003 2 commits
    • kocienda's avatar
      WebCore: · de5c8c96
      kocienda authored
              Reviewed by John
      
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::createPart): Now uses NSURL instead of NSString
              (KWQKHTMLPart::redirectionTimerStartedOrStopped): Ditto
              (KWQKHTMLPart::userAgent): Ditto
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::setIconURL): Ditto
              (KHTMLPartBrowserExtension::setTypedIconURL): Ditto
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::showApplet): Ditto
              * kwq/KWQLoader.mm:
              (KWQServeRequest): Ditto
              (KWQCheckCacheObjectStatus): Ditto
              * kwq/WebCoreBridge.h: Changed quite a number of methods to use NSURL
      	instead of NSString
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge didNotOpenURL:]): Now uses NSURL instead of NSString
              (-[WebCoreBridge scrollToAnchorWithURL:]): Ditto
              (-[WebCoreBridge URL]): Ditto
      
      WebKit:
      
              Reviewed by John
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge startLoadingResource:withURL:]): Now uses NSURL instead of NSString
              (-[WebBridge objectLoadedFromCacheWithURL:response:size:]): Ditto
              (-[WebBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
      	Ditto
              (-[WebBridge setIconURL:]): Ditto
              (-[WebBridge setIconURL:withType:]): Ditto
              (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]): Ditto
              (-[WebBridge userAgentForURL:]): Ditto
              (-[WebBridge requestedURL]): Now returns string using _web_absoluteString
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _receivedError:complete:]): Now uses NSURL instead of NSString
              * WebView.subproj/WebFramePrivate.m:
              (-[WebFrame _opened]): Ditto
              (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:formState:]): Ditto
              (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]): Ditto
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de5c8c96
    • kocienda's avatar
      WebCore: · ca8a80ea
      kocienda authored
              Reviewed by Darin
      
              * kwq/KWQKHTMLPart.h: _submittedFormURL is now a KURL, not a QString
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::openURL): Now uses NSURL in API instead of NSString
              (KWQKHTMLPart::openURLRequest): Ditto
              (KWQKHTMLPart::didNotOpenURL): Ditto
              (KWQKHTMLPart::submitForm): Ditto. Plus update _submittedFormURL usages.
              (KWQKHTMLPart::urlSelected): Ditto
              (KWQKHTMLPart::setView): Ditto
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Now uses NSURL in API instead of NSString
              * kwq/KWQKURL.h: Added constructor that takes an NSURL
              * kwq/KWQKURL.mm:
              (KURL::KURL): Ditto.
              * kwq/WebCoreBridge.h: Updated bridge APIs to use NSURL instead of NSString
      	in several places.
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): Ditto
      
      WebKit:
      
              Reviewed by Darin
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge createWindowWithURL:frameName:]): Now uses NSURL in API instead of NSString
              (-[WebBridge loadURL:referrer:reload:target:triggeringEvent:form:formValues:]): Ditto
              (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]): Ditto
              * WebKit.pbproj/project.pbxproj: Added WebNSURLExtras file
              * WebView.subproj/WebDataSourcePrivate.m:
              (-[WebDataSource _commitIfReady:]): Now uses NSURL in API instead of NSString
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca8a80ea
  32. 04 May, 2003 1 commit
    • darin's avatar
      Reviewed by John. · f98065fa
      darin authored
      	- fixed 3131534 -- "javascript:window.open()" leads to page not found error
      
              * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): For open() calls, if the
              first parameter is not present, use "" instead of "undefined" as the URL.
      
      	- fixed 3244766 -- window.open() doesn't position window correctly along the y axis
      
              * kwq/KWQKHTMLPartBrowserExtension.mm: (KHTMLPartBrowserExtension::createNewWindow):
              Fixed the code that flips the y coordinate to take the window height into account.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f98065fa
  33. 27 Mar, 2003 1 commit
    • mjs's avatar
      WebCore: · c743d6d8
      mjs authored
              Reviewed by Darin.
      
      	- fixed 3192344 - nil-deref in KWin::info scrolling amazon while other shopping tabs load
      	- fixed 3098365 - Default window size changes as a result of popup windows
      	- fixed 3189291 - javascript window.close() closes window, not just originating tab
      
              * kwq/KWQKHTMLPart.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::scheduleClose): Close via the bridge, not the window directly.
              (KWQKHTMLPart::bridgeForWidget): Take const QWidget * instead of QWidget *.
              (KWQKHTMLPart::nodeForWidget): Likewise.
              (KWQKHTMLPart::khtmlMousePressEvent): Deal with responder issues via bridge,
      	not window directly.
              (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Likewise.
              (KWQKHTMLPart::mouseDown): Likewise.
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Set resizability via bridge,
      	not window directly.
              * kwq/KWQTextArea.mm:
              (-[KWQTextArea becomeFirstResponder]): Deal with bridge for first responder
      	issues, not window directly.
              (-[KWQTextArea drawRect:]): Likewise.
              (-[KWQTextAreaTextView insertTab:]): Likewise.
              (-[KWQTextAreaTextView insertBacktab:]): Likewise.
              (-[KWQTextAreaTextView shouldDrawInsertionPoint]): Likewise.
              (-[KWQTextAreaTextView selectedTextAttributes]): Likewise.
              * kwq/KWQWidget.mm:
              (QWidget::setActiveWindow): Focus window via bridge.
              (QWidget::hasFocus): Handle first responder issues via bridge.
              (QWidget::setFocus): Likewise.
              (QWidget::isVisible): Get window from bridge.
              (QWidget::mapFromGlobal): Get window from bridge.
              (QWidget::disableFlushDrawing): Add comment noting why it's OK
      	to get the window from the view instead of from the bridge here.
              (QWidget::enableFlushDrawing): Likewise.
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::frameGeometry): Work through bridge, not window
      	directly.
              (KWQWindowWidget::mapToGlobal): Likewise.
              (KWQWindowWidget::setFrameGeometry): Likewise.
              * kwq/WebCoreBridge.h:
      
      WebKit:
      
              Reviewed by Darin.
      
      	- fixed 3192344 - nil-deref in KWin::info scrolling amazon while other shopping tabs load
      	- fixed 3098365 - Default window size changes as a result of popup windows
      	- fixed 3189291 - javascript window.close() closes window, not just originating tab
      
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge setWindowIsResizable:]): New bridge method, implemented
      	by calling window operations delegate.
              (-[WebBridge windowIsResizable]): Likewise.
              (-[WebBridge firstResponder]): Likewise.
              (-[WebBridge makeFirstResponder:]): Likewise.
              (-[WebBridge closeWindow]): Likewise.
      
      WebBrowser:
      
              Reviewed by Darin.
      
      	- fixed 3189291 - javascript window.close() closes window, not just originating tab
      
              * BrowserWebController.m:
              (-[BrowserWebController windowController]): Moved this method higher.
              (-[BrowserWebController webViewCloseWindow:]): Close the tab, not the window.
              * BrowserWindowController.h:
              * BrowserWindowController.m:
              (-[BrowserWindowController closeTabForWebController:]): New method, closes
      	tab or window if there is only one tab.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c743d6d8
  34. 24 Mar, 2003 1 commit
    • mjs's avatar
      WebCore: · dcd9d2f0
      mjs authored
              Reviewed by Richard.
      
      	- fixed 3083339 - significant top and side margin appended to new windows
      
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow): Account for distinction between
      	frame and content rect.
      	* kwq/KWQStyle.h: Return 0 for the appropriate style to avoid
      	adding extra padding when making a new window from JavaScript.
              * kwq/WebCoreBridge.h: Prototype new methods.
      
      WebKit:
      
              Reviewed by Richard.
      
      	- fixed 3083339 - significant top and side margin appended to new windows
      
      	Part of the fix involves adding new window operation delegate methods.
      
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge setWindowFrame:]): Tweaked code a bit.
              (-[WebBridge windowFrame]): Added.
              (-[WebBridge setWindowContentRect:]): Added.
              (-[WebBridge windowContentRect]): Added.
              * WebView.subproj/WebDefaultWindowOperationsDelegate.m:
              (-[WebDefaultWindowOperationsDelegate webView:setContentRect:]): Implemented.
              (-[WebDefaultWindowOperationsDelegate webViewContentRect:]): Likewise.
              * WebView.subproj/WebWindowOperationsDelegate.h:
      
      WebBrowser:
      
              Reviewed by Richard.
      
      	- fixed 3083339 - significant top and side margin appended to new windows
      
              * BrowserWebController.m:
              (-[BrowserWebController webView:setFrame:]): Tweaked a bit.
              (-[BrowserWebController webViewFrame:]): Likewise.
              (-[BrowserWebController webView:setContentRect:]): Implemented.
              (-[BrowserWebController webViewContentRect:]): Likewise.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcd9d2f0