1. 02 Oct, 2006 1 commit
  2. 01 Oct, 2006 2 commits
  3. 30 Sep, 2006 1 commit
  4. 29 Sep, 2006 1 commit
    • adele's avatar
      Reviewed by Adam. · f989049f
      adele authored
              Initial implementation of engine-based list box control.
      
              * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
      
              * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
              * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
              (WebCore::FrameMac::FrameMac):
              (WebCore::FrameMac::handleMousePressEvent):
              (WebCore::FrameMac::handleMouseMoveEvent):
              (WebCore::FrameMac::mouseDown):
      
              * page/Frame.cpp:
              (WebCore::Frame::handleMouseMoveEvent):
              (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
              (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
              (WebCore::Frame::autoscrollTimerFired): ditto.
              (WebCore::Frame::stopAutoscrollTimer): ditto.
              (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
              * page/Frame.h:
              * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
      
              * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::currentMousePosition):
              (WebCore::FrameView::handleMousePressEvent):
              (WebCore::FrameView::handleMouseDoubleClickEvent):
              (WebCore::selectCursor):
              (WebCore::FrameView::handleMouseMoveEvent):
              (WebCore::FrameView::handleMouseReleaseEvent):
              * page/FrameView.h:
      
              * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument.  The list box will use a smaller scroll bar size.
              * platform/ScrollBar.h:
              (WebCore::):
              (WebCore::ScrollBar::controlSize):
              * platform/mac/PlatformScrollBar.h:
              * platform/mac/PlatformScrollBarMac.mm:
              (NSControlSizeForScrollBarControlSize):
              (-[WebCoreScrollBar initWithPlatformScrollBar:]):
              (WebCore::PlatformScrollBar::PlatformScrollBar):
      
              * rendering/RenderBlock.h:
              * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::shouldAutoscroll):
              (WebCore::RenderObject::autoscroll):
              * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
      
              * css/html4.css: Added properties for new list boxes.
      
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
              (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
              * html/HTMLOptionElement.h: Added disabled method.
      
              * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
              (WebCore::HTMLSelectElement::recalcStyle):
              (WebCore::HTMLSelectElement::lastSelectedListIndex):
              (WebCore::HTMLSelectElement::deselectItems):
              (WebCore::HTMLSelectElement::setSelectedIndex):
              (WebCore::HTMLSelectElement::isKeyboardFocusable):
              (WebCore::HTMLSelectElement::isMouseFocusable):
              (WebCore::HTMLSelectElement::createRenderer):
              (WebCore::HTMLSelectElement::recalcListItems):
              (WebCore::HTMLSelectElement::setRecalcListItems):
              (WebCore::HTMLSelectElement::reset):
              (WebCore::HTMLSelectElement::notifyOptionSelected):
              (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
              (WebCore::HTMLSelectElement::nextSelectableListIndex):
              (WebCore::HTMLSelectElement::previousSelectableListIndex):
              * html/HTMLSelectElement.h:
      
              * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
              (WebCore::RenderTheme::paint):
              (WebCore::RenderTheme::paintBorderOnly):
              (WebCore::RenderTheme::paintDecorations):
              (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
              (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
              (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
              (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
              (WebCore::RenderTheme::isControlStyled):
              (WebCore::RenderTheme::supportsFocusRing):
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
      
              * rendering/RenderListBox.cpp: Added.
              (WebCore::RenderListBox::RenderListBox):
              (WebCore::RenderListBox::~RenderListBox):
              (WebCore::RenderListBox::setStyle):
              (WebCore::RenderListBox::updateFromElement):
              (WebCore::RenderListBox::calcMinMaxWidth):
              (WebCore::RenderListBox::size):
              (WebCore::RenderListBox::numItems):
              (WebCore::RenderListBox::calcHeight):
              (WebCore::RenderListBox::baselinePosition):
              (WebCore::RenderListBox::itemBoundingBoxRect):
              (WebCore::RenderListBox::paintObject):
              (WebCore::RenderListBox::paintScrollbar):
              (WebCore::RenderListBox::paintItemForeground):
              (WebCore::RenderListBox::paintItemBackground):
              (WebCore::RenderListBox::scrollBarTarget):
              (WebCore::RenderListBox::isPointInScrollbar):
              (WebCore::RenderListBox::optionAtPoint):
              (WebCore::RenderListBox::autoscroll):
              (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
              (WebCore::RenderListBox::scroll):
              (WebCore::RenderListBox::valueChanged):
              * rendering/RenderListBox.h: Added.
              (WebCore::RenderListBox::isListBox):
              (WebCore::RenderListBox::selectionChanged):
              (WebCore::RenderListBox::setSelectionChanged):
              (WebCore::RenderListBox::canHaveChildren):
              (WebCore::RenderListBox::renderName):
              (WebCore::RenderListBox::setOptionsChanged):
              (WebCore::RenderListBox::shouldAutoscroll):
              (WebCore::RenderListBox::listIndexIsVisible):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f989049f
  5. 25 Sep, 2006 1 commit
    • andersca's avatar
      2006-09-25 Anders Carlsson <acarlsson@apple.com> · faf7bea9
      andersca authored
              Reviewed by Maciej.
      
              * css/MediaList.cpp:
              Remove unused header.
              
              * dom/Document.cpp:
              (WebCore::Document::clear):
              Use clear instead of iterating through the list of event listeners, removing each one.
              (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
              
              * html/HTMLKeygenElement.cpp:
              (WebCore::HTMLKeygenElement::HTMLKeygenElement):
              (WebCore::HTMLKeygenElement::appendFormData):
              Update due to changes in the SSL key generator.
              
              * ksvg2/svg/SVGAngle.cpp:
              Remove unused header.
              
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::parseMappedAttribute):
              Rename methods and pass Strings instead of DeprecatedStrings to
              parseSeparatedList.
              
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              Remove unused headers.
              
              * ksvg2/svg/SVGHelper.cpp:
              (WebCore::SVGHelper::parseSeparatedList):
              * ksvg2/svg/SVGHelper.h:
              Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
              DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
              
              * ksvg2/svg/SVGLengthList.cpp:
              (WebCore::SVGLengthList::parse):
              * ksvg2/svg/SVGLengthList.h:
              Use Vector<String> instead of DeprecatedStringList.
              
              * loader/Cache.cpp:
              (WebCore::Cache::requestImage):
              (WebCore::Cache::requestStyleSheet):
              (WebCore::Cache::requestScript):
              (WebCore::Cache::requestXSLStyleSheet):
              (WebCore::Cache::requestXBLDocument):
              (WebCore::Cache::remove):
              (WebCore::Cache::get):
              Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
              
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::needReload):
              * loader/DocLoader.h:
              Use a HashSet instead of DeprecatedStringList.
              
              * page/FrameView.h:
              Remove declarations that have no functions.
              
              * platform/SSLKeyGenerator.h:
              * platform/mac/SSLKeyGeneratorMac.mm:
              (WebCore::supportedKeySizes):
              (WebCore::signedPublicKeyAndChallengeString):
              Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
              DeprecatedString.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      faf7bea9
  6. 24 Aug, 2006 1 commit
    • thatcher's avatar
      WebCore: · 7122a90b
      thatcher authored
              Reviewed by Hyatt.
      
              Allow changing the background color WebCore draws under transparent page backgrounds.
              No automated way to test. All tests pass, no performance regression.
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge setBaseBackgroundColor:]):
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameView::baseBackgroundColor):
              (WebCore::FrameView::setBaseBackgroundColor):
              * page/FrameView.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/RenderView.cpp:
              (WebCore::RenderView::paintBoxDecorations):
      
      WebKit:
      
              Reviewed by Hyatt.
      
              WebView API to allow changing the background color that draws under transparent page backgrounds.
      
              * WebView/WebFrame.m:
              (-[WebFrame _makeDocumentView]):
              (-[WebFrame _updateBackground]):
              * WebView/WebFrameInternal.h:
              * WebView/WebFrameView.m:
              (-[WebFrameView drawRect:]):
              * WebView/WebView.m:
              (-[WebView setBackgroundColor:]):
              (-[WebView backgroundColor]):
              (-[WebView _commonInitializationWithFrameName:groupName:]):
              (-[WebView setDrawsBackground:]):
              * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7122a90b
  7. 31 Jul, 2006 1 commit
    • hyatt's avatar
      Fix for bug 10179, digg.com scrolls slowly. Improve fixed positioning · 3bd2d0be
      hyatt authored
              and fixed backgrounds so that a count of them is kept on the FrameView.
              This allows us to switch slow scrolling on and off as these objects come
              and go.
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::applyProperty):
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::useSlowRepaints):
              (WebCore::FrameView::setUseSlowRepaints):
              (WebCore::FrameView::addSlowRepaintObject):
              (WebCore::FrameView::removeSlowRepaintObject):
              * page/FrameView.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::setStyle):
              * rendering/RenderView.cpp:
              (WebCore::RenderView::paintBoxDecorations):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15722 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bd2d0be
  8. 17 Jul, 2006 1 commit
    • tomernic's avatar
      WebCore: · f917f147
      tomernic authored
              Reviewed by Maciej.
      
              <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
              by script
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge setProhibitsScrolling:]):
              * page/Frame.cpp:
              (WebCore::Frame::prohibitsScrolling):
              (WebCore::Frame::setProhibitsScrolling):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * page/FrameView.cpp:
              (WebCore::FrameView::scrollPointRecursively):
              (WebCore::FrameView::setContentsPos):
              * page/FrameView.h:
              * platform/ScrollView.h:
      
      WebKit:
      
              Reviewed by Maciej.
      
              <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
              by script
      
              * WebView/WebViewPrivate.h:
              * WebView/WebView.m:
              (-[WebView setProhibitsMainFrameScrolling:]):
              New method.  Prohibits scrolling in the WebView's main frame.  Used to "lock" a WebView to a specific
              scroll position.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f917f147
  9. 09 Jul, 2006 1 commit
    • darin's avatar
      Reviewed by Tim Hatcher. · f4b05b29
      darin authored
              - put more into the WebCore namespace
              - removed unused code for plain text fields
      
              Put more classes, class templates, enums, functions, and constants into
              the WebCore namespace, including all the headers in the platform directory.
      
              Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
      
              Added some "WebCore::" qualifiers in a few places.
      
              Removed "uses WebCore::" in headers that we said we'd remove "when
              everything is in the WebCore namespace".
      
              * bindings/js/JSDOMParser.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bridge/History.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/FormDataMac.h:
              * bridge/mac/FormDataMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              * bridge/mac/WebCoreSettings.h:
              * css/CSSGrammar.y:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/MediaList.cpp:
              * css/cssstyleselector.h:
              * dom/Clipboard.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/XMLTokenizer.cpp:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/CompositeEditCommand.cpp:
              * editing/CompositeEditCommand.h:
              * editing/CreateLinkCommand.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/FormatBlockCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/IndentOutdentCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertListCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertTextCommand.cpp:
              * editing/InsertTextCommand.h:
              * editing/JSEditor.cpp:
              * editing/JSEditor.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.cpp:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.h:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/WrapContentsInDummySpanCommand.h:
              * editing/markup.cpp:
              * editing/markup.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLBodyElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDocument.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLLabelElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTablePartElement.cpp:
              * icon/IconDatabase.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGContainer.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/svgpathparser.cpp:
              * ksvg2/svg/svgpathparser.h:
              * loader/Cache.h:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.h:
              * page/FrameView.h:
              * page/Page.h:
              * page/Settings.h:
              * platform/AffineTransform.cpp:
              * platform/AffineTransform.h:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/CookieJar.h:
              * platform/DeprecatedCString.cpp:
              * platform/DeprecatedCString.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedPtrQueue.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FileButton.h:
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              * platform/IntSize.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/ListBox.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/Pen.h:
              * platform/PopUpButton.h:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SSLKeyGenerator.h:
              * platform/ScrollBar.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/Slider.h:
              * platform/StringImpl.h:
              * platform/TextBox.h:
              * platform/TextField.h:
              * platform/TextStream.cpp:
              * platform/TextStream.h:
              * platform/TransferJob.h:
              * platform/TransferJobClient.h:
              * platform/Widget.h:
              * platform/cg/AffineTransformCG.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/DeprecatedStringListMac.mm:
              * platform/mac/FontCacheMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/ListBoxMac.mm:
              * platform/mac/PopUpButtonMac.mm:
              * platform/mac/SSLKeyGeneratorMac.mm:
              * platform/mac/TextBoxMac.mm:
              * platform/mac/TextFieldMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.h:
              * rendering/bidi.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4b05b29
  10. 06 Jul, 2006 2 commits
    • adele's avatar
      Reviewed by Tim Hatcher. · 0c114c5c
      adele authored
              - Speculative fix for <rdar://problem/4605532> unrepro crash at cnn.com after upgrading to 10.4.7 (but happening with 10.4.6 too)
      
              * page/FrameView.cpp: (WebCore::FrameView::layout): Ref's the view during layout, since a recalcStyle could cause the view to be deleted.
              If we get back from recalcStyle, and there's only one ref, return early since the the view will be deleted when we exit layout.
              * page/FrameView.h: (WebCore::FrameView::hasOneRef): Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c114c5c
    • andersca's avatar
      WebCore: · 0afc15f0
      andersca authored
      2006-07-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4610891> Support overflow events
              
              * DerivedSources.make:
              Add generated sources.
              
              * WebCore.xcodeproj/project.pbxproj:
              Add new files.
              
              * bindings/js/kjs_events.cpp:
              (KJS::toJS):
              Support creating wrappers for overflow events..
              
              * bindings/objc/DOMEvents.h:
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _eventWith:]):
              (-[DOMOverflowEvent _overflowEvent]):
              (-[DOMOverflowEvent orient]):
              (-[DOMOverflowEvent horizontalOverflow]):
              (-[DOMOverflowEvent verticalOverflow]):
              Add Objective-C wrapper for overflow events.
              
              * dom/Event.cpp:
              (WebCore::Event::isOverflowEvent):        
              * dom/Event.h:
              * dom/EventNames.h:
              * dom/OverflowEvent.cpp: Added.
              (WebCore::OverflowEvent::OverflowEvent):
              (WebCore::OverflowEvent::isOverflowEvent):
              * dom/OverflowEvent.h: Added.
              (WebCore::OverflowEvent::):
              (WebCore::OverflowEvent::orient):
              (WebCore::OverflowEvent::horizontalOverflow):
              (WebCore::OverflowEvent::verticalOverflow):
              * dom/OverflowEvent.idl: Added.
              Add overflow events.
              
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameView::applyOverflowToViewport):        
              (WebCore::FrameView::layout):
              Dispatch any scheduled events when layout is done.
              
              (WebCore::FrameView::scheduleEvent):
              New function which schedules an event.
              
              (WebCore::FrameView::updateOverflowStatus):
              Update overflow status for the viewport.
              
              (WebCore::FrameView::dispatchScheduledEvents):
              New function which dispatches all scheduled events.
              
              * page/FrameView.h:
              Add declarations.
              
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer):
              (WebCore::RenderLayer::updateOverflowStatus):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              * rendering/RenderLayer.h:
              Schedule overflow events when overflow status changes.
      
      LayoutTests:
      
      2006-07-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4610891> Support overflow events
              
              * fast/events/overflow-events-expected.txt: Added.
              * fast/events/overflow-events.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0afc15f0
  11. 24 Jun, 2006 2 commits
  12. 07 Jun, 2006 1 commit
    • adele's avatar
      WebCore: · e76b0101
      adele authored
              Reviewed by Hyatt 
      
              Added support for cross-platform resize property.
      
              * platform/PlatformMouseEvent.h: Removed isMouseButtonDown, since we
              already cache this info when we handle mouse down and mouse up.
              * platform/mac/MouseEventMac.mm: ditto.
              * platform/win/TemporaryLinkStubs.cpp: ditto.
      
              * page/Frame.cpp:
              (WebCore::Frame::autoscrollTimerFired): Use d->m_bMousePressed instead of isMouseButtonDown.
              * page/FrameView.cpp:
              (WebCore::FrameView::handleMouseMoveEvent): Passes event to layer resize method.
              (WebCore::FrameView::mousePressed): Added.
              * page/FrameView.h: Added mousePressed.
      
              * rendering/RenderTheme.h: Removed paintResizeControl.
              Since its not dependent on the theme, the layer can just paint this.
              * rendering/RenderTheme.cpp: ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer): Initializes m_resizeCornerImage.
              (WebCore::RenderLayer::~RenderLayer): Deletes m_resizeCornerImage.
              (WebCore::RenderLayer::resize): Uses passed in event instead of creating a new one.
              (WebCore::RenderLayer::paintResizeControl): Now loads and paints the resize image.
              * rendering/RenderLayer.h: Added m_resizeCornerImage.  Important to have one per-layer for when we allow
              more customization.
      
              * platform/cairo/ImageCairo.cpp:
              (WebCore::Image::loadResource): Loads image resources.
      
      WebKit:
      
              Reviewed by Hyatt. 
      
              Added resources for missingImage and textAreaResizeCorner.
      
              * COM/WebKitDLL.cpp:
              (loadResourceIntoArray): Added. Returns a DeprecatedByteArray with the resource's data.
              * WebKit.vcproj/WebKit.rc: Added missing image and resize pngs as resources. 
              * WebKit.vcproj/WebKit.vcproj: Added pngs.
              * WebKit.vcproj/missingImage.png: Added.
              * WebKit.vcproj/resource.h: Added entries for pngs.
              * WebKit.vcproj/textAreaResizeCorner.png: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e76b0101
  13. 31 May, 2006 1 commit
    • adele's avatar
      Reviewed by Hyatt. · 8877ecc6
      adele authored
              - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8969
                REGRESSION: typing in textfield repaints whole web page at gamefaqs.com
      
              No test possible (no functionality change)
      
              * dom/Document.cpp:
              (WebCore::Document::updateLayout): Changed to ensure that pending subtree
              layouts are performed too.
              * page/Frame.cpp:
              (WebCore::Frame::forceLayout): Force a full layout.
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout): Changed to relayout only the subtree rooted
              at d->layoutRoot if it's non-zero and allowSubtree is true.
              (WebCore::FrameView::scheduleRelayout): Change pending subtree relayout into
              normal relayout by clearing d->layoutRoot and propagating needsLayout to the
              root. 
              (WebCore::FrameView::scheduleRelayoutOfSubtree): Added.
              * page/FrameView.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::markContainingBlocksForLayout): Added scheduleRelayout
              parameter. FrameView passes false to force marking all the way to the root
              when turning a pending subtree relayout into a full relayout. Otherwise,
              marking stops at the first textField (or at the root) and
              relayout of the last object reached is scheduled.
              (WebCore::RenderObject::scheduleRelayout):
              * rendering/RenderObject.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8877ecc6
  14. 30 May, 2006 1 commit
    • hyatt's avatar
      Rename RenderCanvas to RenderView. Rename canvas(), isCanvas() · d804834e
      hyatt authored
              to view(), isView().  Rename the frame view accessor on the old canvas
              from view() to frameView() (to avoid view()->view(), since that just looks
              stupid). :)
      
              Reviewed by andersca
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_window.cpp:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge _setupRootForPrinting:]):
              (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              (-[WebCoreFrameBridge selectionColor]):
              (-[WebCoreFrameBridge accessibilityTree]):
              * dom/Document.cpp:
              (WebCore::Document::attach):
              (WebCore::Document::updateSelection):
              (WebCore::Document::prepareMouseEvent):
              * editing/SelectionController.cpp:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::canvasResource):
              * ksvg2/svg/SVGFEFloodElement.cpp:
              (SVGFEFloodElement::filterEffect):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::rebuildStops):
              * ksvg2/svg/SVGHelper.cpp:
              (SVGHelper::PercentageOfViewport):
              * ksvg2/svg/SVGPathElement.cpp:
              (WebCore::SVGPathElement::getPointAtLength):
              * ksvg2/svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::currentTranslate):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::view):
              (WebCore::SVGStyledElement::pushAttributeContext):
              * ksvg2/svg/SVGStyledElement.h:
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
              (-[WebCoreAXObject role]):
              (-[WebCoreAXObject value]):
              (-[WebCoreAXObject position]):
              (-[WebCoreAXObject accessibilityIsIgnored]):
              (-[WebCoreAXObject accessibilityAttributeNames]):
              (-[WebCoreAXObject topView]):
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              * page/Frame.cpp:
              (WebCore::Frame::selectionRect):
              (WebCore::Frame::paint):
              (WebCore::Frame::adjustPageHeight):
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              * page/FrameView.cpp:
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::layout):
              * page/FrameView.h:
              * rendering/AutoTableLayout.cpp:
              (WebCore::shouldScaleColumns):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::paintChildren):
              (WebCore::RenderBlock::setSelectionState):
              (WebCore::RenderBlock::isSelectionRoot):
              (WebCore::RenderBlock::fillInlineSelectionGaps):
              (WebCore::RenderBlock::lowestPosition):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::leftmostPosition):
              (WebCore::RenderBlock::clearFloats):
              (WebCore::RenderBlock::nodeAtPoint):
              (WebCore::RenderBlock::calcBlocminMaxWidth):
              (WebCore::RenderBlock::inRootBlockContext):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::paintRootBoxDecorations):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::availableHeightUsing):
              * rendering/RenderCanvas.cpp: Removed.
              * rendering/RenderCanvas.h: Removed.
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::removeChildNode):
              * rendering/RenderFileButton.cpp:
              (WebCore::RenderFileButton::RenderFileButton):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::destroy):
              (WebCore::RenderFlow::paintLines):
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::layout):
              (WebCore::RenderFrameSet::userResize):
              (WebCore::RenderFrameSet::setResizing):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::updateLayerPositions):
              (WebCore::RenderLayer::updateLayerPosition):
              (WebCore::RenderLayer::stackingContext):
              (WebCore::RenderLayer::enclosingPositionedAncestor):
              (WebCore::RenderLayer::convertToLayerCoords):
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::isSubframeCanvas):
              (WebCore::RenderLayer::intersectsDamageRect):
              * rendering/RenderLayer.h:
              (WebCore::RenderLayer::isStackingContext):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::scroll):
              (WebCore::RenderObject::containingBlock):
              (WebCore::RenderObject::repaint):
              (WebCore::RenderObject::repaintRectangle):
              (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
              (WebCore::RenderObject::draggableNode):
              (WebCore::RenderObject::selectionStartEnd):
              (WebCore::RenderObject::setStyle):
              (WebCore::RenderObject::viewRect):
              (WebCore::RenderObject::view):
              (WebCore::RenderObject::container):
              (WebCore::RenderObject::removeFromObjectLists):
              (WebCore::RenderObject::scheduleRelayout):
              (WebCore::RenderObject::imageChanged):
              (WebCore::RenderObject::maximalOutlineSize):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isRenderView):
              * rendering/RenderTextArea.cpp:
              (WebCore::RenderTextArea::RenderTextArea):
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintCheckbox):
              (WebCore::RenderThemeMac::paintRadio):
              (WebCore::RenderThemeMac::paintButton):
              * rendering/RenderTreeAsText.cpp:
              (externalRepresentation):
              * rendering/RenderView.cpp: Added.
              (WebCore::RenderView::RenderView):
              (WebCore::RenderView::~RenderView):
              (WebCore::RenderView::calcHeight):
              (WebCore::RenderView::calcWidth):
              (WebCore::RenderView::calcMinMaxWidth):
              (WebCore::RenderView::layout):
              (WebCore::RenderView::absolutePosition):
              (WebCore::RenderView::paint):
              (WebCore::RenderView::paintBoxDecorations):
              (WebCore::RenderView::repaintViewRectangle):
              (WebCore::RenderView::getAbsoluteRepaintRect):
              (WebCore::RenderView::computeAbsoluteRepaintRect):
              (WebCore::RenderView::absoluteRects):
              (WebCore::RenderView::selectionRect):
              (WebCore::RenderView::setSelection):
              (WebCore::RenderView::clearSelection):
              (WebCore::RenderView::selectionStartEnd):
              (WebCore::RenderView::updateWidgetPositions):
              (WebCore::RenderView::addWidget):
              (WebCore::RenderView::removeWidget):
              (WebCore::RenderView::viewRect):
              (WebCore::RenderView::docHeight):
              (WebCore::RenderView::docWidth):
              (WebCore::RenderView::setBestTruncatedAt):
              * rendering/RenderView.h: Added.
              (WebCore::RenderView::renderName):
              (WebCore::RenderView::isRenderView):
              (WebCore::RenderView::frameView):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::destroy):
              (WebCore::RenderWidget::updateWidgetPosition):
              * rendering/RenderWidget.h:
              (WebCore::RenderWidget::widget):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::layoutInlineChildren):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d804834e
  15. 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
  16. 20 Mar, 2006 2 commits
    • 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
    • ap's avatar
      Reviewed by Darin. · 1f71fdfa
      ap authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=3439
               mouseover effects can get stuck sometimes due to missing events
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7701
               mouseout sent to the wrong element when layout changes simultaneously
              
              Implemented saving the previous node under the mouse, so that we don't need to 
              recalculate it, which is slow and even not really possible. This has fixed a number 
              of issues with mouse event dispatching when the content changes.
              The code still needs refactoring and cleanup, see bug 3439 for comments.
      
              Tests (both files perform multiple checks):
              - fast/events/mouseover-mouseout.html
              - fast/events/mouseover-mouseout2.html
      
              * page/Frame.h: Added a Frame parameter to passSubframeEventToSubframe(),
              used for mouseMoved events.
              * bridge/mac/FrameMac.h: Ditto.
              * bridge/mac/FrameMac.mm: 
              (WebCore::FrameMac::passSubframeEventToSubframe): Use the passed subframe to target 
              NSMouseMoved events.
              * page/FrameView.h: Added a prepareMouseEvent() helper that does viewportToContents translation.
              * page/FrameView.cpp: Added data members for storing the previous node and subframe 
              under the mouse to FrameViewPrivate. Removed the now unused prevMouseX/prevMouseY.
              (WebCore::FrameViewPrivate::reset): Reset the new data members.
              (WebCore::subframeForEvent): A temporary place for the code that extracts a subframe
              pointer from MouseEventWithHitTestResults, moved from FrameMac::passSubframeEventToSubframe().
              (WebCore::FrameView::prepareMouseEvent): The new helper.
              (WebCore::FrameView::handleMousePressEvent): Use the new helper.
              (WebCore::FrameView::handleMouseDoubleClickEvent): Ditto.
              (WebCore::FrameView::handleMouseReleaseEvent): Ditto.
              (WebCore::FrameView::updateDragAndDrop): Ditto.
              (WebCore::FrameView::hoverTimerFired): Ditto.
              (WebCore::FrameView::dispatchMouseEvent): Store and use the oldUnder node, don't store 
              or use prevMouseX/Y.
              (WebCore::FrameView::handleMouseMoveEvent): Rewrote dispatching events to subframes using 
              a stored oldSubframe reference. Protect "this" from being removed while in this function.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1f71fdfa
  17. 19 Mar, 2006 1 commit
  18. 16 Mar, 2006 1 commit
    • 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
  19. 15 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-15 Eric Seidel <eseidel@apple.com> · 44effa7e
      eseidel authored
              Reviewed by mjs.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7790
              addEventListener does not work with "dblclick" event.
              Renamed khtmlDblclickEvent to dblclickEvent to fix.
      
              Test: fast/events/dblclick-addEventListener.html
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::mouseUp):
              (WebCore::MacFrame::mouseMoved):
              (WebCore::MacFrame::shouldDragAutoNode):
              (WebCore::MacFrame::sendContextMenuEvent):
              * dom/EventNames.h:
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent):
              * dom/NodeImpl.h:
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::Window::put):
              * khtml/html/HTMLElementImpl.cpp:
              (WebCore::HTMLElementImpl::parseMappedAttribute):
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchMouseEvent):
              * page/FrameView.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44effa7e
  20. 05 Mar, 2006 1 commit
    • ap's avatar
      Fix by Mitz Pettel, reviewed by Darin. · 39bfd518
      ap authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4840
              Frames only resize wider, can't make them narrower
      
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameSetElementImpl::HTMLFrameSetElementImpl): Removed unused m_resizing flag.
              * khtml/html/html_baseimpl.h:
              * manual-tests/bugzilla-4840.html: Added.
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::viewportMouseMoveEvent):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::setResizingFrameSet): New method. When a resizing frameset is set,
              mouse move and mouse release events target it instead of hit-testing.
              * page/FrameView.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::setResizing): Inform the FrameView that we are resizing (or not).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13135 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      39bfd518
  21. 01 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Eric. · 9d0a628e
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7444
                move QPainter to platform directory and name it GraphicsContext
      
              * platform/GraphicsContext.h: Added.
              * platform/TextDirection.h: Added.
              * platform/cg/GraphicsContextCG.cpp: Added.
              * platform/mac/GraphicsContextMac.mm: Added.
      
              * kwq/KWQPainter.h: Removed.
              * kwq/KWQPainter.mm: Removed.
              * ForwardingHeaders/qpainter.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for moved files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for moved files.
              * platform/win/TemporaryLinkStubs.cpp: Updated.
      
              * bridge/mac/MacFrame.mm: (WebCore::MacFrame::setDisplaysWithFocusAttributes):
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              * editing/SelectionController.h:
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Context2D::putValueProperty):
              (KJS::drawPattern):
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::paint):
              (WebCore::Frame::adjustPageHeight):
              * page/FrameView.h:
              * platform/Font.h:
              * platform/Font.cpp:
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::drawText):
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm: (WebCore::Widget::paint):
              * rendering/InlineTextBox.h:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintSpellingMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::paintAllMarkersOfType):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              (WebCore::InlineTextBox::offsetForPosition):
              * rendering/RenderTableCell.cpp:
              (WebCore::outlineBox):
              (WebCore::RenderTableCell::paintCollapsedBorder):
              (WebCore::RenderTableCell::paintBoxDecorations):
              * rendering/RenderTableCell.h:
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgrounds):
              (WebCore::RenderBox::paintBackground):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_box.h:
              * rendering/render_button.cpp:
              (WebCore::RenderButton::RenderButton):
              (WebCore::RenderButton::paintObject):
              * rendering/render_button.h:
              (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
              * rendering/render_canvas.cpp:
              * rendering/render_canvasimage.cpp:
              (WebCore::RenderCanvasImage::paint):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::addFocusRingRects):
              (WebCore::RenderFlow::paintFocusRing):
              (WebCore::RenderFlow::paintOutlines):
              (WebCore::RenderFlow::paintOutlineForLine):
              * rendering/render_flow.h:
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::setStyle):
              (WebCore::RenderFieldset::paintBorderMinusLegend):
              (WebCore::RenderSelect::setWidgetWritingDirection):
              (WebCore::RenderTextArea::setStyle):
              * rendering/render_form.h:
              (WebCore::RenderFieldset::renderName):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::beginTransparencyLayers):
              (WebCore::RenderLayer::paintScrollbars):
              (WebCore::RenderLayer::paint):
              (WebCore::setClip):
              (WebCore::restoreClip):
              (WebCore::RenderLayer::paintLayer):
              (WebCore::Marquee::direction):
              * rendering/render_layer.h:
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackgrounds):
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              (WebCore::InlineFlowBox::paintDecorations):
              (WebCore::EllipsisBox::paint):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::addFocusRingRects):
              (WebCore::RenderObject::paintOutline):
              (WebCore::RenderObject::selectionColor):
              * rendering/render_object.h:
              (WebCore::RenderObject::element):
              (WebCore::RenderObject::document):
              (WebCore::RenderObject::setNode):
              (WebCore::RenderObject::node):
              (WebCore::RenderObject::PaintInfo::PaintInfo):
              (WebCore::RenderObject::paintBoxDecorations):
              (WebCore::RenderObject::paintBackgroundExtended):
              (WebCore::RenderObject::printBoxDecorations):
              * rendering/render_replaced.cpp: (WebCore::RenderReplaced::selectionColor):
              * rendering/render_replaced.h:
              Updated to use GraphicsContext instead of QPainter.
      
              * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm: (QComboBox::setWritingDirection):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm: (QLineEdit::setWritingDirection):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm: (QListBox::setWritingDirection):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm: (QTextEdit::setWritingDirection):
              * rendering/bidi.cpp:
              (khtml::bidiNext):
              (khtml::bidiFirst):
              Updated to use TextDirection instead of QPainter::TextDirection and EDirection.
      
              * kcanvas/device/KRenderingDevice.h: Added renderingDevice here to
              replace QPainter::renderingDevice for now.
      
              * khtml/ecma/kjs_html.h: Fixed comments to mention GraphicsContext.
      
              * khtml/html/html_imageimpl.h:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              Added include needed since I reduced includes elsewhere.
      
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm: (QFontMetrics::checkSelectionPoint):
              Changed QChar* to be const QChar*.
      
              * platform/FontDescription.h: Added include that was missing.
              * rendering/render_theme.cpp: Ditto.
      
              * platform/Image.h: Removed unnecessary forward declaration of QPainter.
      
              * rendering/RenderText.h: Clean up types, use const.
      
              * rendering/render_style.h: Removed EDirection and replaced it with TextDirection.
      
              * kcanvas/KCanvasCreator.cpp:
              (WebCore::KCanvasCreator::createRoundedRectangle):
              (WebCore::KCanvasCreator::createRectangle):
              (WebCore::KCanvasCreator::createEllipse):
              (WebCore::KCanvasCreator::createLine):
              * kcanvas/KCanvasPath.cpp: (WebCore::operator<<):
              * kcanvas/KCanvasTreeDebug.cpp: (WebCore::operator<<):
              * kcanvas/RenderForeignObject.cpp: (WebCore::RenderForeignObject::paint):
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::paint):
              (WebCore::RenderSVGImage::translateForAttributes):
              * kcanvas/RenderSVGText.cpp:
              (WebCore::RenderSVGText::paint):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (WebCore::KCanvasFilterQuartz::prepareFilter):
              (WebCore::KCanvasFilterQuartz::applyFilter):
              * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
              (WebCore::KCanvasMaskerQuartz::applyMask):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              (WebCore::KCanvasContainerQuartz::paint):
              (WebCore::KCanvasClipperQuartz::applyClip):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceQuartz::pushContext):
              (WebCore::KRenderingDeviceQuartz::popContext):
              (WebCore::renderingDevice):
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              (WebCore::KRenderingPaintServerGradientQuartz::setup):
              (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
              (WebCore::KRenderingPaintServerGradientQuartz::teardown):
              * ksvg2/misc/KCanvasRenderingStyle.cpp: (WebCore::sharedSolidPaintServer):
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::createRenderer):
              * ksvg2/svg/SVGClipPathElementImpl.cpp: (SVGClipPathElementImpl::canvasResource):
              * ksvg2/svg/SVGFEBlendElementImpl.cpp: (SVGFEBlendElementImpl::filterEffect):
              * ksvg2/svg/SVGFEColorMatrixElementImpl.cpp: (SVGFEColorMatrixElementImpl::filterEffect):
              * ksvg2/svg/SVGFEComponentTransferElementImpl.cpp: (SVGFEComponentTransferElementImpl::filterEffect):
              * ksvg2/svg/SVGFECompositeElementImpl.cpp: (SVGFECompositeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDiffuseLightingElementImpl.cpp: (WebCore::SVGFEDiffuseLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp: (SVGFEDisplacementMapElementImpl::filterEffect):
              * ksvg2/svg/SVGFEFloodElementImpl.cpp: (SVGFEFloodElementImpl::filterEffect):
              * ksvg2/svg/SVGFEGaussianBlurElementImpl.cpp: (SVGFEGaussianBlurElementImpl::filterEffect):
              * ksvg2/svg/SVGFEImageElementImpl.cpp: (SVGFEImageElementImpl::filterEffect):
              * ksvg2/svg/SVGFEMergeElementImpl.cpp: (SVGFEMergeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEOffsetElementImpl.cpp: (SVGFEOffsetElementImpl::filterEffect):
              * ksvg2/svg/SVGFESpecularLightingElementImpl.cpp: (SVGFESpecularLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFETileElementImpl.cpp: (SVGFETileElementImpl::filterEffect):
              * ksvg2/svg/SVGFETurbulenceElementImpl.cpp: (SVGFETurbulenceElementImpl::filterEffect):
              * ksvg2/svg/SVGFilterElementImpl.cpp: (SVGFilterElementImpl::canvasResource):
              * ksvg2/svg/SVGGElementImpl.cpp: (SVGGElementImpl::createRenderer):
              * ksvg2/svg/SVGGradientElementImpl.cpp: (SVGGradientElementImpl::canvasResource):
              * ksvg2/svg/SVGMarkerElementImpl.cpp:
              (WebCore::SVGMarkerElementImpl::canvasResource):
              (WebCore::SVGMarkerElementImpl::createRenderer):
              * ksvg2/svg/SVGMaskElementImpl.cpp:
              (WebCore::SVGMaskElementImpl::drawMaskerContent):
              (WebCore::SVGMaskElementImpl::createRenderer):
              (WebCore::SVGMaskElementImpl::canvasResource):
              * ksvg2/svg/SVGPathElementImpl.cpp: (WebCore::SVGPathElementImpl::toPathData):
              * ksvg2/svg/SVGPatternElementImpl.cpp:
              (WebCore::SVGPatternElementImpl::drawPatternContentIntoTile):
              (WebCore::SVGPatternElementImpl::createRenderer):
              (WebCore::SVGPatternElementImpl::canvasResource):
              * ksvg2/svg/SVGPolygonElementImpl.cpp: (SVGPolygonElementImpl::toPathData):
              * ksvg2/svg/SVGPolylineElementImpl.cpp: (SVGPolylineElementImpl::toPathData):
              * ksvg2/svg/SVGSVGElementImpl.cpp: (WebCore::SVGSVGElementImpl::createRenderer):
              * ksvg2/svg/SVGStyledElementImpl.cpp: (WebCore::SVGStyledElementImpl::createRenderer):
              * ksvg2/svg/SVGSwitchElementImpl.cpp: (SVGSwitchElementImpl::createRenderer):
              * ksvg2/svg/SVGUseElementImpl.cpp: (SVGUseElementImpl::createRenderer):
              Updated to use renderingDevice instead of QPainter::renderingDevice.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d0a628e
  22. 24 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 6fb0fdcd
      darin authored
              - moved QScrollView from kwq to platform directory
      
              * kwq/KWQScrollView.h: Removed.
              * kwq/KWQScrollView.mm: Removed.
      
              * platform/ScrollBarMode.h: Added. Just the enum for scroll bar mode.
              * platform/ScrollView.h: Added. The rest of the former QScrollView.
              * platform/mac/ScrollViewMac.mm: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
              * platform/win/TemporaryLinkStubs.cpp: Updated.
      
              * bridge/mac/MacFrame.mm: (WebCore::MacFrame::createFrame):
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElementImpl::init):
              (WebCore::HTMLFrameElementImpl::parseMappedAttribute):
              * page/Frame.cpp: (WebCore::Frame::scrollbarsVisible):
              Changed scrolling constants to use new names.
      
              * khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::bodySetter):
              Use FrameView instead of QScrollView for a local variable.
      
              * khtml/html/html_baseimpl.h: Use ScrollBarMode instead of
              QScrollView::ScrollBarMode.
      
              * kwq/KWQListBox.h: Use WebCore::ScrollView instead of
              QScrollView and WebCore::ScrollBarMode instead of QScrollView::ScrollBarMode.
              * kwq/KWQTextEdit.h: Ditto.
              * kwq/KWQTextEdit.mm:
              (QTextEdit::setScrollBarModes): Ditto.
              (QTextEdit::focusPolicy): Ditto.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate): Use ScrollBarMode
              instead of QScrollView::ScrollBarMode.
              (WebCore::FrameView::FrameView): Remove mention of QScrollView.
              (WebCore::FrameView::resetScrollBars): Rename QScrollView to ScrollView.
              (WebCore::FrameView::applyOverflowToViewport): Use newly-named constants.
              (WebCore::FrameView::layout): Ditto.
              (WebCore::FrameView::setScrollBarsMode): Rename QScrollView to ScrollView.
              (WebCore::FrameView::setVScrollBarMode): Ditto.
              (WebCore::FrameView::setHScrollBarMode): Ditto.
              (WebCore::FrameView::restoreScrollBar): Ditto.
      
              * platform/mac/MouseEventMac.mm: (WebCore::positionForEvent): Fixed comment.
              * platform/mac/WheelEventMac.mm: (WebCore::positionForEvent): Ditto.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::getOuterView): Ditto.
      
              * rendering/render_form.cpp: (WebCore::RenderTextArea::setStyle):
              Use ScrollBarMode instead of QScrollView::ScrollBarMode, and new constants.
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize): Changed to use an IntRect to pass to
              updateContents so we can remove the overload.
              (WebCore::RenderPart::updateWidgetPosition): Remove unnecessary of QScrollView.
      
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible): Use FrameView instead of QScrollView.
              (WebCore::RenderLayer::setHasHorizontalScrollbar): Ditto.
              (WebCore::RenderLayer::setHasVerticalScrollbar): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6fb0fdcd
  23. 23 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by John Sullivan. · 947a31b6
      darin authored
              - moved QMouseEvent, QKeyEvent, QWheelEvent, and "Foundation extras"
                from kwq to platform directory
              - moved history function from kwq to bridge directory
              - eliminated QEvent, MousePressEvent, MouseDoubleClickEvent, MouseMoveEvent,
                MoveReleaseEvent, and DrawContents classes
              - merged NodeImpl::MouseEvent and the MouseEvent from khtml_events.h into
                a single class in the page directory
              - broke khtmllayout.h out into a file for the Length structure in the css
                directory and a file for the GapRects structure in the rendering directory
              - redid the Length structure to work more portably by not relying on bitfield
                layout and improve the names to no longer explicitly mention "width"
              - reduced use of QGuardedPtr and other uses of the QObject "destroyed" signal
      
              * ForwardingHeaders/kparts: Removed.
              * ForwardingHeaders/qevent.h: Removed.
              * khtml/khtml_events.cpp: Removed.
              * khtml/khtml_events.h: Removed.
              * khtml/misc/khtmllayout.h: Removed.
              * kwq/KWQEvent.h: Removed.
              * kwq/KWQEvent.mm: Removed.
              * kwq/KWQFoundationExtras.h: Removed.
              * kwq/KWQKHistoryProvider.mm: Removed.
              * kwq/KWQKPartsHistoryProvider.h: Removed.
      
              * bridge/History.h: Added.
              * bridge/mac/HistoryMac.mm: Added.
              * css/Length.h: Added.
              * page/MouseEventWithHitTestResults.h: Added.
              * platform/KeyEvent.h: Added.
              * platform/MouseEvent.h: Added.
              * platform/WheelEvent.h: Added.
              * platform/mac/FoundationExtras.h: Added.
              * platform/mac/KeyEventMac.mm: Added.
              * platform/mac/MouseEventMac.mm: Added.
              * platform/mac/WheelEventMac.mm: Added.
              * rendering/GapRects.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for above changes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for above changes.
      
              * bridge/mac/MacFrame.h: Removed unused parameters from urlSelected functions.
              Replaced MouseEvent, MousePressEvent, MouseMoveEvent, and MouseReleaseEvent
              with MouseEventWithHitTestResults.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::urlSelected): Removed unused parameters.
              (WebCore::MacFrame::wheelEvent): Changed to use WheelEvent.
              (WebCore::MacFrame::keyEvent): Changed to use KeyEvent.
              (WebCore::MacFrame::khtmlMousePressEvent): Changed parameter type.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Ditto.
              (WebCore::MacFrame::khtmlMouseReleaseEvent): Ditto.
              (WebCore::MacFrame::passSubframeEventToSubframe): Ditto.
              (WebCore::MacFrame::mouseDown): Changed to use MouseEvent.
              (WebCore::MacFrame::mouseDragged): Ditto.
              (WebCore::MacFrame::mouseUp): Ditto.
              (WebCore::MacFrame::mouseMoved): Ditto.
              (WebCore::MacFrame::sendContextMenuEvent): Ditto.
      
              * css/csshelper.h: Removed a bunch of unused declarations.
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent): Changed to take a MouseEvent
              and return a MouseEventWithHitTestResults.
              (WebCore::DocumentImpl::defaultEventHandler): Changed to use KeyEvent.
      
              * dom/NodeImpl.h: Removed NodeImpl::MouseEvent and NodeImpl::MouseEventType.
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent): Changed to always get the type and
              detail values from the caller, never from the event. Changed to use MouseEvent.
              (WebCore::NodeImpl::dispatchKeyEvent): Changed to use KeyEvent.
              (WebCore::NodeImpl::dispatchWheelEvent): Changed to use WheelEvent.
      
              * dom/dom2_eventsimpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl): Changed to use KeyEvent.
              (WebCore::KeyboardEventImpl::charCode): Ditto.
      
              * dom/dom_elementimpl.h: Removed unused mouseEventHandler function.
      
              * khtml/ecma/domparser.h: Use RefPtr instead of QGuardedPtr to hold the reference
              to the document.
      
              * khtml/ecma/kjs_proxy.h: (WebCore::KJSProxyImpl::haveInterpreter): Added. For
              use in the Frame destructor so we can get an existing KJS::Window object without
              creating a new interpreter and window object.
      
              * khtml/ecma/kjs_window.h: Merged WindowQObject into Window. Changed all the
              guarded pointers to Frame to use plain old pointers that are cleared by the
              Frame explicitly (by the function disconnectFrame). Made the pointers to all
              the sub-objects of KJS::Window be mutable so we don't have to const_cast in
              the functions to get (and lazily create) them.
              * khtml/ecma/kjs_window.cpp:
              (KJS::DOMWindowTimer::DOMWindowTimer): Use Window* instead of WindowQObject*.
              (KJS::History::disconnectFrame): Added. Clears m_frame.
              (KJS::FrameArray::disconnectFrame): Added. Clears m_frame.
              (KJS::Window::Window): Removed code to create a WindowQObject.
              (KJS::Window::~Window): Removed code to delete a WindowQObject.
              (KJS::Window::location): Remove now-unneeded const_cast.
              (KJS::Window::selection): Ditto.
              (KJS::Window::locationbar): Ditto.
              (KJS::Window::menubar): Ditto.
              (KJS::Window::personalbar): Ditto.
              (KJS::Window::statusbar): Ditto.
              (KJS::Window::toolbar): Ditto.
              (KJS::Window::scrollbars): Ditto.
              (KJS::Window::getValueProperty): Update since m_frame is now a raw pointer.
              (KJS::Window::getOwnPropertySlot): Ditto.
              (KJS::Window::toBoolean): Ditto.
              (KJS::Window::scheduleClose): Remove assert that WindowQObject* is not null.
              (KJS::Window::isSafeScript): Update since m_frame is now a raw pointer.
              (KJS::Window::clear): Remove code to delete a WindowQObject. Added a call
              to clearAllTimeouts instead.
              (KJS::Window::clearAllTimeouts): Added. Does equivalent of the WindowQObject
              destructor.
              (KJS::Window::installTimeout): Moved to Window from WindowQObject.
              (KJS::Window::pauseTimeouts): Ditto.
              (KJS::Window::resumeTimeouts): Ditto.
              (KJS::Window::clearTimeout): Ditto.
              (KJS::Window::timerFired): Ditto.
              (KJS::Window::disconnectFrame): Added. Sets all the frame pointers to 0.
              (KJS::FrameArray::getOwnPropertySlot): Update since m_frame is now a raw pointer.
              (KJS::Location::getOwnPropertySlot): Ditto.
              (KJS::Location::put): Ditto.
              (KJS::Selection::getOwnPropertySlot): Ditto.
              (KJS::BarInfo::getOwnPropertySlot): Ditto.
      
              * khtml/html/html_baseimpl.h: Forward-declare Length instead of including khtmllayout.h.
              * khtml/html/html_imageimpl.h: Ditto.
      
              * khtml/html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              Changed to use KeyEvent and removed the code to extract the button and state from the
              DOM even to pass to urlSelected.
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::defaultEventHandler): Ditto.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::timerFired): Change to use
              a RefPtr instead of a QGuardedPtr.
      
              * khtml/misc/helper.h:
              * khtml/misc/helper.cpp: Removed printpainter and setPrintPainter.
      
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp: (WebCore::SVGDocumentImpl::dispatchKeyEvent):
              Change to use KeyEvent.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusChanged):
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]):
              Updated to use new eventFilterFocusIn/Out instead of the general purpose
              eventFilter function. This allows us to remove QEvent and the focus events.
      
              * kwq/KWQNamespace.h: Removed ButtonState.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Replaced eventFilter function with eventFilterFocusIn and
              eventFilterFocusOut, allowing us to remove QEvent. Removed event function.
      
              * kwq/KWQSlot.cpp:
              (KWQSlot::KWQSlot): Removed the parentDestroyed slot.
              (KWQSlot::call): Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Renamed from
              PartStyleSheetLoader. Removed a lot of unneeded null checks. Use a
              raw Frame pointer instead of a QGuardedPtr, and count on the Frame
              to delete us when it's being deleted.
              (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader): No longer
              a virtual function. This is not a polymorphic class.
              (WebCore::UserStyleSheetLoader::setStyleSheet): Remove code to delete
              ourselves -- that's now the frame's responsibility.
              (WebCore::Frame::~Frame): Call disconnectFrame on the KJS::Window and
              delete m_userStyleSheetLoader.
              (WebCore::Frame::changeLocation): Update since urlSelected no longer takes
              button and state parameters.
              (WebCore::Frame::setUserStyleSheet): Delete existing loader to stop a load
              in progress before starting a new load. Store reference to loader.
              (WebCore::Frame::urlSelected): Remove button and state parameters and unused
              local variable hasTarget.
              (WebCore::Frame::selectClosestWordFromMouseEvent): Change from QMouseEvent
              to MouseEvent.
              (WebCore::Frame::handleMousePressEventDoubleClick): Change from MousePressEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::handleMousePressEventTripleClick): Ditto.
              (WebCore::Frame::handleMousePressEventSingleClick): Ditto.
              (WebCore::Frame::khtmlMousePressEvent): Ditto.
              (WebCore::Frame::handleMouseMoveEventSelection): Change from MouseMoveEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseMoveEvent): Ditto.
              (WebCore::Frame::khtmlMouseReleaseEvent): Change from MouseReleaseEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseDoubleClickEvent): Change from
              MouseReleaseDoubleClickEvent to MouseEventWithHitTestResults.
              (WebCore::Frame::passWidgetMouseDownEventToWidget): Change from
              NodeImpl::MouseEvent to MouseEventWithHitTestResults.
      
              * page/FramePrivate.h: Added m_userStyleSheetLoader.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportMouseDoubleClickEvent): Ditto.
              (WebCore::selectCursor): Ditto.
              (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
              (WebCore::FrameView::viewportMouseReleaseEvent): Ditto.
              (WebCore::FrameView::keyPressEvent): Change from QKeyEvent to KeyEvent.
              (WebCore::FrameView::dispatchMouseEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportWheelEvent): Change from QWheelEvent to
              WheelEvent.
              (WebCore::FrameView::hoverTimerFired): Update for change to prepareMouseEvent
              parameters.
      
              * platform/Widget.h:
              * platform/Widget.cpp: Removed event function.
      
              * rendering/render_form.h: Removed LineEditWidget, ComboBoxWidget, TextAreaWidget.
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::slotClicked): Changed from QMouseEvent to MouseEvent.
              (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed): Updated for changes
              to the Length class.
              (WebCore::RenderSelect::setWidgetWritingDirection): Updated for removal of
              ComboBoxWidget.
              (WebCore::RenderSelect::slotSelected): Ditto.
              (WebCore::RenderSelect::createComboBox): Ditto.
      
              * rendering/render_replaced.h:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::destroy): Updated since removeEventFilter no longer takes
              a parameter.
              (WebCore::RenderWidget::setQWidget): Ditto.
              (WebCore::RenderWidget::eventFilterFocusIn): Added. Replaces eventFilter.
              (WebCore::RenderWidget::eventFilterFocusOut): Ditto.
      
              * css/css_computedstyle.cpp:
              (WebCore::valueForLength):
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/cssstyleselector.cpp:
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElementImpl::getRegion):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::leftRelOffset):
              (WebCore::RenderBlock::rightRelOffset):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::getBPMWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlockMinMaxWidth):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::calcMinMaxWidth):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::addChild):
              (WebCore::RenderTableSection::addCell):
              (WebCore::RenderTableSection::calcRowHeight):
              (WebCore::RenderTableSection::layoutRows):
              * rendering/RenderText.h:
              (khtml::RenderText::marginLeft):
              (khtml::RenderText::marginRight):
              * rendering/bidi.cpp:
              (khtml::getBPMWidth):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::getClipRect):
              (WebCore::RenderBox::relativePositionOffset):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::sizesToIntrinsicWidth):
              (WebCore::RenderBox::calcHorizontalMargins):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcHeightUsing):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedWidthUsing):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcReplacedHeightUsing):
              (WebCore::RenderBox::availableHeightUsing):
              (WebCore::RenderBox::calcVerticalMargins):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVertical):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::calcHorizontalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcVerticalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcMinMaxWidth):
              (khtml::RenderFlexibleBox::allowedChildFlex):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::lineHeight):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::isWidthSpecified):
              (WebCore::RenderImage::isHeightSpecified):
              * rendering/render_layer.cpp:
              (WebCore::Marquee::direction):
              (WebCore::Marquee::start):
              (WebCore::Marquee::updateMarqueeStyle):
              (WebCore::Marquee::timerFired):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::marginLeft):
              (WebCore::InlineFlowBox::marginRight):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paddingTop):
              (WebCore::RenderObject::paddingBottom):
              (WebCore::RenderObject::paddingLeft):
              (WebCore::RenderObject::paddingRight):
              (WebCore::RenderObject::getVerticalPosition):
              (WebCore::RenderObject::lineHeight):
              (WebCore::RenderObject::addDashboardRegions):
              * rendering/render_style.h:
              * rendering/render_theme_mac.mm:
              (WebCore::RenderThemeMac::addIntrinsicMargins):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcWidthArray):
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::FixedTableLayout::layout):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::fullRecalc):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              (WebCore::AutoTableLayout::calcPercentages):
              Updated for changes to the Length class.
              Also removed a check of the printpainter global, never used in WebCore.
      
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/csshelper.cpp:
              * editing/SelectionController.cpp:
              * khtml/ecma/kjs_html.h:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPainter.mm:
              * kwq/WebCoreSettings.mm:
              * platform/StringImpl.cpp:
              * platform/mac/CursorMac.mm:
              * platform/mac/WidgetMac.mm:
              * rendering/RenderBlock.h:
              * rendering/render_canvas.cpp:
              * rendering/render_line.h:
              * rendering/render_style.cpp:
              * rendering/table_layout.h:
              Updated includes.
      
              * bindings/js/JSDOMCore.cpp: Touched, because I got strange failures if this
              didn't rebuild.
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      947a31b6
  24. 20 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 644b75ef
      darin authored
              - moved Cursor into the platform directory from KWQ
              - removed a lot of other unneeded stuff from KWQ
      
              * platform/Cursor.h: Added.
              * platform/mac/CursorMac.mm: Added.
              * platform/mac/CursorWin.cpp: Added.
      
              * kwq/KWQBuffer.cpp: Removed.
              * kwq/KWQBuffer.h: Removed.
              * kwq/KWQCursor.h: Removed.
              * kwq/KWQCursor.mm: Removed.
              * kwq/KWQIODevice.h: Removed.
              * kwq/KWQKCursor.h: Removed.
              * kwq/KWQKCursor.mm: Removed.
              * kwq/KWQKDebug.h: Removed.
              * kwq/KWQSignalStubs.cpp: Removed.
      
              * ForwardingHeaders/kcursor.h: Removed.
              * ForwardingHeaders/kdebug.h: Removed.
              * ForwardingHeaders/qbuffer.h: Removed.
      
              * kwq/KWQEvent.h: Removed unused constants and types QCustomEvent,
              QFocusEvent, QHideEvent, QShowEvent, QContextMenuEvent, and QResizeEvent.
      
              * kwq/KWQLoader.h: Removed KWQLoader class since signals are no longer needed.
              * kwq/KWQLoader.mm: Ditto.
      
              * kwq/KWQNamespace.h: Removed DontClip, ShowPrefix, WordBreak, LayoutDirection,
              LeftToRight, RightToLeft, RasterOp, CopyROP, OrROP, and XorROP.
      
              * kwq/KWQObject.h: Removed blockSignals, sender, _signalsBlocked, _sender,
              and KWQObjectSenderScope.
              * kwq/KWQObject.cpp:
              (QObject::QObject): Removed _signalsBlocked.
              (QObject::connect): Removed special-case signals to not complain about.
              All of them were either unused, converted to non-signal functions, or in one
              case (slotScrollBarMoved) turned into a FIXME.
      
              * kwq/KWQPainter.h: Removed rasterOp and setRasterOp.
              * kwq/KWQPainter.mm: Ditto.
      
              * kwq/KWQSignal.h:
              * kwq/KWQSignal.cpp: (KWQSignal::disconnect): Removed special cases for
              various signals; all are now using plain function calls instead.
      
              * kwq/KWQSlot.h:
              * kwq/KWQSlot.cpp: Removed slots that are no longer needed because they
              are using plain function calls instead of signals.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Updated for changed files.
      
              * bridge/mac/FrameViewMac.mm: Moved the contents of KWQKHTMLView.cpp in here.
              * bridge/mac/KWQKHTMLView.cpp: Removed.
      
              * bridge/mac/MacFrame.h: Removed signals, changed setStatusBarText to take
              String instead of QString.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame): Removed signals.
              (WebCore::MacFrame::setStatusBarText): Changed parameter type.
              (WebCore::MacFrame::openURLFromPageCache): Removed parameter from started function.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Changed from QCursor() to pointerCursor().
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl): Removed signals.
              (WebCore::DocumentImpl::implicitOpen): Ditto.
              (WebCore::DocumentImpl::determineParseMode): Removed a use of kdDebug.
              (WebCore::DocumentImpl::finishedParsing): Added. Does a setParsing(false) and then
              calls finishedParsing on the frame. Replaces the old finishedParsing signal.
      
              * dom/xml_tokenizer.h:
              * dom/xml_tokenizer.cpp: Removed the finishedParsing signal since it's not just
              a function on the document.
              (WebCore::XMLTokenizer::finish): Call the function instead of emitting the signal.
      
              * khtml/html/htmlparser.h:
              * khtml/html/htmlparser.cpp: Moved the parser inside the WebCore namespace.
      
              * khtml/html/htmltokenizer.h:
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::end): Updated
              to call finishedParsing function on document rather than emitting a signal.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]): Use QEvent instead of QFocusEvent.
              (-[KWQPopUpButton resignFirstResponder]): Ditto.
              * kwq/KWQFileButton.mm: (KWQFileButton::focusChanged): Ditto.
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]): Ditto.
              (-[KWQTableView resignFirstResponder]): Ditto.
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]): Ditto.
              (-[KWQSlider resignFirstResponder]): Ditto.
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]): Ditto.
              (-[KWQTextAreaTextView resignFirstResponder]): Ditto.
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]): Ditto.
      
              * kwq/KWQTextStream.h: Removed the mode parameter from the QTextStream constructor.
              Removed the QTextIStream and QTextOStream classes.
              * kwq/KWQTextStream.cpp: (QTextStream::QTextStream): Removed the mode parameter.
      
              * loader/CachedCSSStyleSheet.h: Changed to take a ByteArray instead of a QBuffer.
              * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::data): Ditto.
              * loader/CachedImage.h: Ditto.
              * loader/CachedImage.cpp: (WebCore::CachedImage::data): Ditto.
              * loader/CachedObject.h: Ditto.
              * loader/CachedScript.h: Ditto.
              * loader/CachedScript.cpp: (WebCore::CachedScript::data): Ditto.
              * loader/CachedXBLDocument.h: Ditto.
              * loader/CachedXBLDocument.cpp: (WebCore::CachedXBLDocument::data): Ditto.
              * loader/CachedXSLStyleSheet.h:
              * loader/CachedXSLStyleSheet.cpp: (WebCore::CachedXSLStyleSheet::data): Ditto.
      
              * loader/DocLoader.cpp: (WebCore::DocLoader::setLoadInProgress): Added a call
              to loadDone on the frame. Replaces the requestFailed and requestDone signals.
      
              * loader/DocLoader.h: Removed include of <qbuffer.h>.
      
              * loader/Request.h:
              * loader/Request.cpp: Updated to use ByteArray instead of QBuffer.
      
              * loader/loader.h: Removed unused signals.
              * loader/loader.cpp:
              (WebCore::Loader::Loader): Removed use of KWQLoader.
              (WebCore::Loader::~Loader): Ditto.
              (WebCore::Loader::load): Removed code to emit unused requestStarted signal.
              (WebCore::Loader::slotFinished): Removed code to emit requestFailed and
              requestDone signals, now handled by DocLoader::setLoadInProgress(false).
              (WebCore::Loader::slotReceivedResponse): Use ByteArray instead of QBuffer.
              (WebCore::Loader::slotData): Ditto.
      
              * page/Frame.h: Removed setURLCursor, urlCursor, slotRestoreData, slotIncZoom,
              slotDecZoom, slotLoadImages, slotPartRemoved, slotActiveFrameChanged,
              slotChildURLRequest, slotShowDocument, slotAutoScroll, slotPrintFrame, slotSelectAll,
              slotProgressUpdate, slotJobPercent, slotJobSpeed.connectChild, disconnectChild,
              and changed a number of others from slots to plain old functions.
              * page/Frame.cpp:
              (WebCore::Frame::Frame): Don't connect to loader signals.
              (WebCore::Frame::~Frame): Don't disconnect from loader signals.
              (WebCore::Frame::didOpenURL): Call started function instead of emitting
              started signal. Don't connect to speed and percent signals (which never
              existed in WebCore anyway).
              (WebCore::Frame::stopLoading): Call finishedParsing function instead of
              calling slotFinishedParsing.
              (WebCore::Frame::executeScript): Removed redundant checks and let
              submitFormAgain do the checking.
              (WebCore::Frame::clear): Removed code to disconnect from finishedParsing
              signal; we now use a function. Also removed loop that calls disconnectChild,
              becase again we use functions now instead of signals.
              (WebCore::Frame::setDocument): Remove code to disconnect and connect to the
              finishedParsing signal.
              (WebCore::Frame::begin): Remove code to connect to the finishedParsing signal.
              (WebCore::Frame::finishedParsing): Moved code that does setParsing(false) into
              the document class. Also renamed from slotFinishedParsing.
              (WebCore::Frame::loadDone): Renamed from slotLoaderRequestDone.
              (WebCore::Frame::checkCompleted): Changed to call the completed function instead
              of emitting one of the two completed signals.
              (WebCore::Frame::loadSubframe): Removed call to connectChild because we now use
              functions instead of signals. Also change the call to completed to pass false
              instead of true.
              (WebCore::Frame::submitFormAgain): Change function around so we are less likely
              to leak if something strange happens inside submitForm.
              (WebCore::Frame::submitForm): Remove code to connect signal. We now call
              submitFormAgain from inside the completed function.
              (WebCore::Frame::parentCompleted): Renamed from slotParentCompleted. No longer
              a slot, now called from completed.
              (WebCore::Frame::childCompleted): Renamed from slotChildCompleted.
              (WebCore::Frame::setJSStatusBarText): Removed "emit" from function call. Changed
              to use String instead of QString.
              (WebCore::Frame::setJSDefaultStatusBarText): Ditto.
              (WebCore::Frame::sendResizeEvent): Changed to send DOM event directly instead of
              creating a QResizeEvent to send along to the FrameView.
              (WebCore::Frame::scrollToAnchor): Changed to not pass a parameter to the started
              function, which no longer takes one.
              (WebCore::Frame::frameDetached): Removed code that calls disconnectChild, since
              we no longer use signals.
              (WebCore::Frame::completed): Added. Calls childCompleted, parentCompleted, and
              submitFormAgain.
              (WebCore::Frame::setStatusBarText): Added.
              (WebCore::Frame::started): Added. Sets the complete flag to false for the frame
              and all its ancestors, which is what slotChildStarted did recursively.
      
              * page/FramePrivate.h: Removed m_activeFrame and changed m_kjsStatusBarText and
              m_kjsDefaultStatusBarText to String from QString.
      
              * page/FrameView.h: Removed resizeEvent, focusInEvent, focusOutEvent, and
              slotPaletteChanged. Changed cleared from a signal to a private function and
              slotScrollBarMoved to a private function named scrollBarMoved.
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView): Removed connect call here that was connecting
              a signal that's nonexistent in WebCore; we'll want to rig it up later.
              (WebCore::FrameView::~FrameView): Added a call to setQWidget(0) here to replace
              something that was done with a signal before.
              (WebCore::FrameView::clear): Call cleared as a function rather than a signal.
              (WebCore::selectCursor): Changed to use Cursor instead of QCursor.
              (WebCore::FrameView::scrollBarMoved): Renamed this function, which is never called.
              Added a FIXME about calling it.
              (WebCore::FrameView::cleared): Added. Calls viewCleared on the owner part, which
              used to be done with a signal.
      
              * platform/Widget.h: Changed to Cursor from QCursor.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::setCursor): Ditto.
      
              * rendering/render_frames.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize): Removed cursor-setting code here. We might
              want to use resize cursors for frames again, but it was mostly disabled anyway and
              it's not clear which cursors to use.
              (WebCore::RenderPart::setWidget): Removed code to connect to the cleared signal.
              Instead, FrameView takes care of it directly.
              (WebCore::RenderPart::viewCleared): Renamed from slotViewCleared.
              (WebCore::RenderFrame::viewCleared): Ditto.
              (WebCore::RenderPartObject::viewCleared): Ditto.
      
              * rendering/render_image.cpp:
              (WebCore::RenderImage::imageChanged): Removed use of WordBreak, which doesn't exist
              in WebCore text rendering.
              (WebCore::RenderImage::paint): Ditto.
      
              * rendering/render_list.cpp: (RenderListMarker::paint): Removed use of DontClip, which
              doesn't exist in WebCore text rendering. Also removed incorrect use of references to
              temporaries for the ". " and " ." strings.
      
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder): Removed call to setRasterOp since it is a no-op
              in WebCore's painter. Added a FIXME.
              (WebCore::RenderObject::information): Remove mode parameter to QTextStream.
      
              * rendering/render_replaced.h: Removed slotWidgetDestructed, made setQWidget public,
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::setQWidget): Removed code to connect slotWidgetDestructed to
              the destroyed signal. Instead FrameView calls setQWidget(0) on us.
              (WebCore::RenderWidget::eventFilter): Removed use of QFocusEvent::reason, which is
              never "popup" in WebCore.
      
              * WebCore+SVG/kdom.h:
              * css/css_stylesheetimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/RenderPath.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/svg/SVGPathSegLinetoImpl.cpp:
              * ksvg2/svg/SVGStyledTransformableElementImpl.cpp:
              * ksvg2/svg/SVGTransformImpl.cpp:
              * platform/StringImpl.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/render_box.cpp:
              * rendering/render_canvas.cpp:
              * rendering/render_flow.cpp:
              * rendering/render_form.cpp:
              * rendering/render_layer.cpp:
              * rendering/render_style.cpp:
              Removed includes of <kdebug.h>.
      
              * css/css_base.cpp: (CSSSelector::selectorText):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSRule::putValueProperty):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMDocument::getValueProperty):
              * khtml/ecma/kjs_events.cpp:
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMUIEvent::getValueProperty):
              (KJS::DOMMouseEvent::getValueProperty):
              (KJS::DOMKeyboardEvent::getValueProperty):
              (KJS::Clipboard::getValueProperty):
              (KJS::Clipboard::putValueProperty):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::anchorGetter):
              (KJS::HTMLElement::areaGetter):
              (KJS::KJS::HTMLElementFunction::callAsFunction):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::getValueProperty):
              (KJS::DOMTreeWalker::getValueProperty):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::clear):
              (KJS::LocationFunc::callAsFunction):
              (KJS::History::getValueProperty):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
              (SVGAnimateTransformElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              (SVGAnimationElementImpl::parseMappedAttribute):
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::finishedParsing):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValueInSpecifiedUnits):
              Removed use of kdWarning, kdDebug, etc.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      644b75ef
  25. 16 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · d85b585f
      darin authored
              - eliminate QFrame and QObject::inherits, fix some strange stuff
                in RenderCanvas that showed up when I tested that change
      
              * kwq/KWQFrame.h: Removed.
              * kwq/KWQFrame.mm: Removed.
      
              * bridge/mac/FrameViewMac.mm: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for adds and removes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removes.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]):
              * khtml/ecma/kjs_window.cpp:
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              Change QObject::inherits callers to call the "is" functions directly.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Removed QObject::inherits, QObject::isQFrame,
              and QObject::isQScrollView.
      
              * kwq/KWQScrollView.h: Inherit from Widget instead of QFrame.
              Remove isQScrollView.
              * kwq/KWQScrollView.mm: Remove isQScrollView.
      
              * page/FrameView.h:
              * page/FrameView.cpp: Changed underMouse and clickNode to be RefPtr.
              Added m_hasBorder.
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameViewPrivate::~FrameViewPrivate):
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::viewportMousePressEvent):
              (WebCore::FrameView::invalidateClick):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::keyPressEvent):
              (WebCore::FrameView::dispatchDragEvent): Use RefPtr for MouseEventImpl.
              (WebCore::FrameView::nodeUnderMouse):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::setHasBorder): Added.
              (WebCore::FrameView::hasBorder): Added.
              (WebCore::FrameView::borderWidth): Added.
      
              * rendering/render_canvas.h: Eliminated unneeded setWidth/Height overrides.
              Eliminated viewportWidth(), viewportHeight(), m_rootWidth, m_rootHeight,
              m_viewportWidth, and m_viewportHeight.
              * rendering/render_canvas.cpp:
              (RenderCanvas::calcHeight): Remove unneeded code to set height when there's
              no view.
              (RenderCanvas::calcWidth): Fix code to set width to visibleWidth(). Removed
              incorrect old width setting, and removed unneeded code to set width when
              there's no view. Also removed incorrect margin-setting code.
              (RenderCanvas::layout): Removed incorrect code to set width and height.
              Instead letting calcWidth and calcHeight do the job.
              (RenderCanvas::repaintViewRectangle): Use new FrameView::hasBorder instead
              of QFrame::frameStyle.
              (RenderCanvas::viewRect): Removed unneeded "root width" feature for a canvas
              without a view.
      
              * rendering/render_frames.cpp:
              (WebCore::RenderFrame::slotViewCleared): Use new setHasBorder.
              (WebCore::RenderPartObject::slotViewCleared): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d85b585f
  26. 13 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · d47a9034
      darin authored
              - moved QWidget to platform directory, renamed to Widget,
                split into cross-platform and platform-specific parts,
                removed some of the unused bits
      
              * ForwardingHeaders/qwidget.h: Removed.
              * kwq/KWQWidget.h: Removed.
              * kwq/KWQWidget.mm: Removed.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Update for file removals and adds.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * platform/Widget.h: Moved code here, fixed it up.
              * platform/Widget.cpp: Ditto.
              * platform/mac/WidgetMac.mm: Added.
      
              * bindings/objc/DOMHTML.mm:
              (viewForElement):
              * bridge/mac/KWQKHTMLView.cpp:
              (WebCore::FrameView::topLevelWidget):
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::createPlugin):
              (WebCore::MacFrame::nextKeyViewInFrame):
              (WebCore::MacFrame::nextKeyViewForWidget):
              (WebCore::MacFrame::currentEventIsMouseDownInWidget):
              (WebCore::MacFrame::bridgeForWidget):
              (WebCore::MacFrame::passMouseDownEventToWidget):
              (WebCore::MacFrame::passSubframeEventToSubframe):
              (WebCore::MacFrame::passWheelEventToChildWidget):
              (WebCore::MacFrame::getAppletInstanceForWidget):
              (WebCore::MacFrame::getEmbedInstanceForWidget):
              (WebCore::MacFrame::getObjectInstanceForWidget):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
              (-[WebCoreFrameBridge copyRenderNode:copier:]):
              (-[WebCoreFrameBridge elementForView:]):
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]):
              * dom/DocumentImpl.cpp:
              (WebCore::widgetForNode):
              (WebCore::DocumentImpl::setFocusNode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/HTMLGenericFormElementImpl.cpp:
              (WebCore::HTMLGenericFormElementImpl::isKeyboardFocusable):
              (WebCore::HTMLGenericFormElementImpl::isMouseFocusable):
              * khtml/html/html_objectimpl.cpp:
              (WebCore::HTMLEmbedElementImpl::getEmbedInstance):
              (WebCore::HTMLObjectElementImpl::getObjectInstance):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject addChildrenToArray:]):
              (-[KWQAccObject attachmentView]):
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm:
              (QComboBox::frameGeometry):
              (QComboBox::setFrameGeometry):
              (QComboBox::setFont):
              (QComboBox::focusPolicy):
              (-[KWQPopUpButtonCell widget]):
              (-[KWQPopUpButton widget]):
              (-[KWQPopUpButton mouseDown:]):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              (-[KWQPopUpButton nextKeyView]):
              (-[KWQPopUpButton previousKeyView]):
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusPolicy):
              * kwq/KWQFrame.h:
              * kwq/KWQKCursor.h:
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::KJavaAppletWidget):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::setFont):
              (QLineEdit::setPalette):
              (QLineEdit::focusPolicy):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm:
              (QListBox::QListBox):
              (QListBox::focusPolicy):
              (QListBox::setFont):
              (-[KWQListBoxScrollView widget]):
              (-[KWQListBoxScrollView becomeFirstResponder]):
              (-[KWQTableView mouseDown:]):
              (-[KWQTableView widget]):
              * kwq/KWQPainter.h:
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              * kwq/KWQScrollBar.h:
              * kwq/KWQScrollBar.mm:
              (-[KWQScrollBar widget]):
              (-[KWQScrollBar mouseDown:]):
              (QScrollBar::QScrollBar):
              (QScrollBar::~QScrollBar):
              * kwq/KWQScrollView.h:
              (QScrollView::QScrollView):
              * kwq/KWQScrollView.mm:
              (QScrollView::viewport):
              (QScrollView::childX):
              (QScrollView::childY):
              (QScrollView::addChild):
              (QScrollView::removeChild):
              * kwq/KWQSlider.h:
              * kwq/KWQSlider.mm:
              (-[KWQSlider mouseDown:]):
              (-[KWQSlider widget]):
              (QSlider::setFont):
              (QSlider::focusPolicy):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView widget]):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::QTextEdit):
              (QTextEdit::setFont):
              (QTextEdit::focusPolicy):
              (QTextEdit::setPalette):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController widget]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              (-[KWQTextFieldController textView:didHandleEvent:]):
              (-[KWQTextField widget]):
              (-[KWQTextField nextKeyView]):
              (-[KWQTextField previousKeyView]):
              (-[KWQSecureTextField widget]):
              (-[KWQSecureTextField nextKeyView]):
              (-[KWQSecureTextField previousKeyView]):
              (-[KWQSearchField widget]):
              (-[KWQSearchField nextKeyView]):
              (-[KWQSearchField previousKeyView]):
              * kwq/KWQView.h:
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::topLevelWidget):
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              (WebCore::Frame::frameForWidget):
              (WebCore::Frame::nodeForWidget):
              (WebCore::Frame::setDocumentFocus):
              (WebCore::Frame::clearDocumentFocus):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView):
              (WebCore::FrameView::init):
              * page/FrameView.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Screen.h:
              * platform/mac/ScreenMac.mm:
              (WebCore::screen):
              (WebCore::screenDepth):
              (WebCore::screenRect):
              (WebCore::usableScreenRect):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::layout):
              * rendering/render_form.cpp:
              (WebCore::ComboBoxWidget::ComboBoxWidget):
              (WebCore::RenderSelect::createListBox):
              * rendering/render_form.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderPart::setWidget):
              * rendering/render_frames.h:
              * rendering/render_object.cpp:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::resizeWidget):
              (WebCore::RenderWidget::setQWidget):
              * rendering/render_replaced.h:
              (WebCore::RenderWidget::widget):
              Change name from QWidget to Widget, a few other changes to get compiling.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d47a9034
  27. 11 Feb, 2006 1 commit
    • adele's avatar
      Reviewed by Hyatt. · efc7cf59
      adele authored
       
               - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6821
                 Fix for 5983 will not always update hover correctly.
       
               * khtml/xml/DocumentImpl.cpp:
               (WebCore::DocumentImpl::hoveredNodeDetached): Added this method. Moved the hover logic from
               NodeImpl::detach here, modified to use the DOM tree instead of hoverAncestor,
               to handle the case that the hover node is a text node, and to schedule an update
               of hover state.
               (WebCore::DocumentImpl::activeChainNodeDetached): Added this method to trim the
               active chain above the node being detached.
               * khtml/xml/DocumentImpl.h:
               * khtml/xml/NodeImpl.cpp:
               (WebCore::NodeImpl::detach): Moved most of the hover logic out of here into
               DocumentImpl. Reset m_active and m_inActiveChain and call activeChainNodeDetached
               when detaching an active node. 
               * manual-tests/bugzilla-6821.html: Added.
               * page/FrameView.cpp:
               (WebCore::FrameViewPrivate::FrameViewPrivate): Added hover-state update timer.
               (WebCore::FrameViewPrivate::reset):
               (WebCore::FrameView::~FrameView):
               (WebCore::FrameView::viewportMouseMoveEvent):
               (WebCore::FrameView::hoverTimerFired): Call DocumentImpl::prepareMouseEvent
               when the timer fires to cause hover state to update.
               (WebCore::FrameView::scheduleHoverStateUpdate): Added.
               * page/FrameView.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      efc7cf59
  28. 01 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · a52f4e12
      darin authored
              - use Timer for everything, kill timer features of QObject, QTimer, QTimerEvent
      
              * ForwardingHeaders/kxmlcore/Noncopyable.h: Added.
              * ForwardingHeaders/kxmlcore/OwnArrayPtr.h: Added.
              * ForwardingHeaders/kxmlcore/OwnPtr.h: Added.
              * ForwardingHeaders/qtimer.h: Removed.
              * kwq/KWQTimer.cpp: Removed.
              * kwq/KWQTimer.h: Removed.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Remove timer-related features.
      
              * kwq/KWQEvent.h: Remove QTimerEvent.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * platform/Timer.h: Change to use nextFireInterval rather than nextFireTime.
              More convenient and also no need to define what the epoch is. Change TimerBase
              to use a virtual function rather than a function pointer. Added setDeferringTimers
              function to ensure timers don't fire while handling an event.
              * platform/mac/Timer.cpp:
              (WebCore::timerFired): Added deferral support.
              (WebCore::fireDeferred): Added.
              (WebCore::TimerBase::TimerBase): Simplify to remove function pointer.
              (WebCore::TimerBase::~TimerBase): Put in here, no longer inline.
              (WebCore::TimerBase::start): Change to use interval.
              (WebCore::TimerBase::startRepeating): Change since we use interval now.
              (WebCore::TimerBase::startOneShot): Ditto.
              (WebCore::TimerBase::stop): Added deferral support.
              (WebCore::TimerBase::nextFireInterval): Added.
              (WebCore::TimerBase::fire): Added.
              (WebCore::isDeferringTimers): Added.
              (WebCore::setDeferringTimers): Added.
      
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::startRedirectionTimer): Update for change to Timer class.
              (WebCore::MacFrame::passMouseDownEventToWidget): Update to use setDeferringTimers
              instead of QObject::setDefersTimers.
      
              * khtml/ecma/kjs_window.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::DOMWindowTimer): Added. Class for JavaScript "timeout".
              (KJS::WindowQObject::parentDestroyed): Update to use DOMWindowTimer.
              (KJS::WindowQObject::installTimeout): Ditto.
              (KJS::WindowQObject::pauseTimeouts): Ditto.
              (KJS::WindowQObject::resumeTimeouts): Ditto.
              (KJS::WindowQObject::clearTimeout): Ditto.
              (KJS::WindowQObject::timerFired): Ditto.
              (KJS::DOMWindowTimer::fired): Added.
      
              * khtml/html/htmltokenizer.h:
              * khtml/html/htmltokenizer.cpp:
              (WebCore::HTMLTokenizer::HTMLTokenizer): Use Timer instead of timer ID.
              (WebCore::HTMLTokenizer::reset): Ditto.
              (WebCore::HTMLTokenizer::continueProcessing): Ditto.
              (WebCore::HTMLTokenizer::write): Ditto.
              (WebCore::HTMLTokenizer::stopParsing): Ditto.
              (WebCore::HTMLTokenizer::processingData): Ditto.
              (WebCore::HTMLTokenizer::timerFired): Ditto.
              (WebCore::HTMLTokenizer::end): Ditto.
              (WebCore::HTMLTokenizer::finish): Ditto.
      
              * khtml/xml/DocumentImpl.h:
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl): Updated for changes to use RefPtr
              more cases, and not use it for m_svgExtensions.
              (WebCore::DocumentImpl::~DocumentImpl): Delete m_svgExtensions instead of
              just deref'ing it since it's no longer shared.
              (WebCore::DocumentImpl::implementation): Update for RefPtr.
              (WebCore::DocumentImpl::elementSheet): Ditto.
              (WebCore::DocumentImpl::styleSheets): Ditto.
              (WebCore::DocumentImpl::recalcStyleSelector): Ditto.
              (WebCore::DocumentImpl::dispatchImageLoadEventSoon): Update to use new style timer.
              (WebCore::DocumentImpl::removeImage): Ditto.
              (WebCore::DocumentImpl::dispatchImageLoadEventsNow): Ditto.
              (WebCore::DocumentImpl::imageLoadEventTimerFired): Ditto.
              (WebCore::DocumentImpl::svgExtensions): Update for RefPtr.
              (WebCore::DocumentImpl::accessSVGExtensions): Ditto.
      
              * ksvg2/misc/KSVGTimeScheduler.h:
              (WebCore::TimeScheduler::document):
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              (WebCore::SVGTimer::downcast):
              (WebCore::SVGTimer::SVGTimer):
              (WebCore::SVGTimer::start):
              (WebCore::SVGTimer::calculateTimePercentage):
              (WebCore::SVGTimer::notifyAll):
              (WebCore::SVGTimer::addNotify):
              (WebCore::SVGTimer::removeNotify):
              (WebCore::TimeScheduler::TimeScheduler):
              (WebCore::TimeScheduler::~TimeScheduler):
              (WebCore::TimeScheduler::addTimer):
              (WebCore::TimeScheduler::connectIntervalTimer):
              (WebCore::TimeScheduler::disconnectIntervalTimer):
              (WebCore::TimeScheduler::startAnimations):
              (WebCore::TimeScheduler::toggleAnimations):
              (WebCore::TimeScheduler::timerFired):
              Rework to use new timer.
      
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              Make SVGDocumentExtensions no longer be shared, be solely owned by the document.
      
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::createStyleSelector): Update for RefPtr use.
      
              * kwq/KWQSlot.cpp: Remove endLifeSupport and timerNotify slots.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::selectionLayoutChanged): Update to use new style timer.
              (WebCore::Frame::caretBlinkTimerFired): Ditto.
              * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Ditto.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate): Update to use new style timer.
              (WebCore::FrameView::clear): Ditto.
              (WebCore::FrameView::layout): Ditto.
              (WebCore::FrameView::layoutTimerFired): Ditto.
              (WebCore::FrameView::scheduleRelayout): Ditto.
              (WebCore::FrameView::layoutPending): Ditto.
              (WebCore::FrameView::haveDelayedLayoutScheduled): Ditto.
              (WebCore::FrameView::unscheduleRelayout): Ditto.
      
              * page/ObjectContents.h: Remove unneeded includes.
      
              * rendering/render_frames.cpp: Removed include of <qtimer.h>.
      
              * rendering/render_layer.h:
              * rendering/render_layer.cpp:
              (WebCore::Marquee::Marquee): Use new style timers.
              (WebCore::Marquee::start): Ditto.
              (WebCore::Marquee::suspend): Ditto.
              (WebCore::Marquee::stop): Ditto.
              (WebCore::Marquee::updateMarqueeStyle): Ditto.
              (WebCore::Marquee::timerFired): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a52f4e12
  29. 31 Jan, 2006 1 commit
    • darin's avatar
      WebCore: · ffd93c32
      darin authored
              Reviewed by Hyatt.
      
              - added a Timer class
              - used the Timer class for the redirection timer
              - moved Frame, FrameView, MacFrame, and FrameNodeTree into WebCore namespace
              - removed more KWQ
      
              * ForwardingHeaders/khtml_factory.h: Removed.
              * kwq/KWQKHTMLFactory.cpp: Removed.
              * kwq/KWQKHTMLFactory.h: Removed.
      
              * platform/Timer.h: Added.
              * platform/mac/Timer.cpp: Added.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for added and removed files.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::init): Remove code to set up slotRedirect.
              (WebCore::Frame::checkCompleted): Call start/stopRedirectionTimer instead of using
              the redirection timer directly.
              (WebCore::Frame::scheduleRedirection): Ditto.
              (WebCore::Frame::scheduleLocationChange): Ditto.
              (WebCore::Frame::scheduleHistoryNavigation): Ditto.
              (WebCore::Frame::cancelRedirection): Ditto.
              (WebCore::Frame::redirectionTimerFired): Renamed from slotRedirect.
              (WebCore::Frame::slotParentCompleted): More startRedirectionTimer.
              (WebCore::Frame::startRedirectionTimer): Added. Virtual bottleneck to start the
              redirection timer.
              (WebCore::Frame::stopRedirectionTimer): Added. Virtual bottleneck to stop the
              redirection timer.
      
              * page/FramePrivate.h: Changed m_redirectionTimer from a QTimer to a Timer.
      
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::startRedirectionTimer): Added. Avoids the need for the QTimer
              "monitor" feature that I had added a while back to implement the client-redirected
              callback.
              (WebCore::MacFrame::stopRedirectionTimer): Ditto.
      
              * kwq/KWQSlot.cpp: Removed slotRedirected.
      
              * ForwardingHeaders/ksvg2/KSVGPart.h: Removed using to put Frame into various
              namespaces (all of which are WebCore now anyway).
      
              * bindings/objc/DOMInternal.mm:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/KWQKHTMLView.cpp:
              * bridge/mac/MacFrame.h:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCorePageBridge.h:
              * bridge/mac/WebCorePageBridge.mm:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_navigator.cpp:
              * khtml/ecma/kjs_navigator.h:
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_window.h:
              * khtml/editing/SelectionController.h:
              * khtml/editing/jsediting.h:
              * khtml/html/html_baseimpl.h:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_documentimpl.h:
              * khtml/html/html_headimpl.h:
              * khtml/html/htmlparser.h:
              * khtml/html/htmltokenizer.h:
              * khtml/xml/DOMImplementationImpl.h:
              * khtml/xml/DocumentImpl.h:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/xml_tokenizer.h:
              * khtml/xsl/xslt_processorimpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * kwq/KWQClipboard.h:
              * kwq/KWQComboBox.mm:
              * kwq/KWQFileButton.h:
              * kwq/KWQFrame.mm:
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQListBox.mm:
              * kwq/KWQSignalStubs.cpp:
              * kwq/KWQSlider.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQWidget.mm:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * loader/DocLoader.h:
              * page/FrameTreeNode.cpp:
              * page/FrameTreeNode.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * rendering/InlineTextBox.h:
              * rendering/font.cpp:
              * rendering/render_canvas.h:
              * rendering/render_frames.h:
              * rendering/render_object.h:
              * rendering/render_replaced.h:
              Updated for namespace and header changes.
      
      WebKit:
      
              Reviewed by Hyatt.
      
              * WebCoreSupport.subproj/WebFrameBridge.m:
              (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              Updated for name change.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ffd93c32
  30. 30 Jan, 2006 1 commit
    • darin's avatar
      Reviewed by Maciej. · 5630e07f
      darin authored
              - killed more KWQ, KWinModule and QVariant
      
              * ForwardingHeaders/kwinmodule.h: Removed.
              * ForwardingHeaders/qvariant.h: Removed.
      
              * kwq/KWQKWinModule.h: Removed.
              * kwq/KWQKWinModule.mm: Removed.
              * kwq/KWQVariant.cpp: Removed.
              * kwq/KWQVariant.h: Removed.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removal.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_binding.cpp: Remove QVariant stuff.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              * khtml/ecma/kjs_events.cpp: (KJS::JSAbstractEventListener::handleEvent):
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_proxy.cpp: (WebCore::KJSProxyImpl::evaluate):
              * page/Frame.h:
              * page/Frame.cpp:
              (getString):
              (Frame::replaceContentsWithScriptResult):
              (Frame::executeScript):
              (Frame::executeScheduledScript):
              (Frame::changeLocation):
              (Frame::urlSelected):
              (Frame::submitForm):
              Changed to use JSValue instead of QVariant for result of executing JavaScript.
      
              * kwq/KWQObject.h: Removed a bunch of unneeded includes and forward declarations.
      
              * bridge/mac/MacFrame.mm:
              * khtml/ecma/kjs_window.h:
              * khtml/ecma/kjs_window.cpp:
              * khtml/html/html_inlineimpl.cpp:
              * khtml/html/htmltokenizer.cpp:
              * khtml/xml/DocumentImpl.cpp:
              * khtml/xml/NodeImpl.cpp:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * kwq/KWQComboBox.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQObject.cpp:
              * kwq/KWQSlider.mm:
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextField.mm:
              * loader/CachedImage.h:
              * page/FrameView.h:
              * page/FrameView.cpp:
              * rendering/render_form.cpp:
              Updated includes, since KWQObject.h now includes less.
              Also updated callers to executeScript since one overload was removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5630e07f
  31. 27 Jan, 2006 1 commit
    • hyatt's avatar
      Fix for 6867. Rename QPixmap to Image and move it to platform/. · b9443599
      hyatt authored
              Eliminate QPaintDevice and QPaintDeviceMetrics completely, since
              they aren't necessary.
      
              Reviewed by anders
      
              * ForwardingHeaders/q3paintdevicemetrics.h: Removed.
              * ForwardingHeaders/qpaintdevice.h: Removed.
              * ForwardingHeaders/qpaintdevicemetrics.h: Removed.
              * ForwardingHeaders/qpixmap.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/MacFrame.mm:
              (MacFrame::fileWrapperForElement):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
              (nowPrinting):
              (-[WebCoreFrameBridge elementAtPoint:]):
              * css/css_valueimpl.cpp:
              (WebCore::CSSPrimitiveValueImpl::computeLength):
              (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
              * css/css_valueimpl.h:
              * css/csshelper.cpp:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              (WebCore::CSSStyleSelector::init):
              (WebCore::CSSStyleSelector::initForStyleResolve):
              (WebCore::CSSStyleSelector::styleForElement):
              (WebCore::CSSStyleSelector::pseudoStyleForElement):
              (WebCore::convertToLength):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::mapBackgroundXPosition):
              (WebCore::CSSStyleSelector::mapBackgroundYPosition):
              * css/cssstyleselector.h:
              * kcanvas/KCanvasFilters.h:
              (KCanvasFEImage::image):
              (KCanvasFEImage::setImage):
              * kcanvas/KCanvasImage.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (KCanvasFEImageQuartz::getCIFilter):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              (KCanvasImageQuartz::init):
              * khtml/ecma/kjs_events.cpp:
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::drawPattern):
              (KJS::_rh):
              (KJS::ImagePattern::createPattern):
              * khtml/ecma/kjs_html.h:
              (KJS::ImagePattern::image):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              * khtml/editing/SelectionController.h:
              * khtml/html/html_imageimpl.h:
              (WebCore::HTMLImageElementImpl::image):
              * khtml/misc/helper.h:
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl):
              (WebCore::DocumentImpl::~DocumentImpl):
              (WebCore::DocumentImpl::recalcStyle):
              (WebCore::DocumentImpl::attach):
              (WebCore::DocumentImpl::detach):
              * khtml/xml/DocumentImpl.h:
              (WebCore::DocumentImpl::printing):
              (WebCore::DocumentImpl::setPrinting):
              * khtml/xml/dom2_eventsimpl.h:
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              (WebCore::KSVGPainterFactory::cssPrimitiveToLength):
              (WebCore::KSVGPainterFactory::strokePainter):
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              (SVGCursorElementImpl::notifyFinished):
              * ksvg2/svg/SVGCursorElementImpl.h:
              (KSVG::SVGCursorElementImpl::image):
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (SVGDocumentImpl::SVGDocumentImpl):
              * ksvg2/svg/SVGFEImageElementImpl.cpp:
              (SVGFEImageElementImpl::notifyFinished):
              * ksvg2/svg/SVGMaskElementImpl.cpp:
              (KSVG::SVGMaskElementImpl::drawMaskerContent):
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              * kwq/KWQApplication.h:
              * kwq/KWQApplication.mm:
              (QDesktopWidget::screenDepth):
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (WebCore::KWQClipboard::dragImage):
              (WebCore::KWQClipboard::setDragImage):
              (WebCore::KWQClipboard::setDragImageElement):
              * kwq/KWQComboBox.mm:
              * kwq/KWQCursor.h:
              * kwq/KWQCursor.mm:
              (WebCore::createCustomCursor):
              (WebCore::QCursor::QCursor):
              * kwq/KWQKPartsEvent.h:
              * kwq/KWQObject.h:
              * kwq/KWQPaintDevice.h: Removed.
              * kwq/KWQPaintDeviceMetrics.h: Removed.
              * kwq/KWQPaintDeviceMetrics.mm: Removed.
              * kwq/KWQPainter.h:
              (WebCore::QPainter::printing):
              * kwq/KWQPainter.mm:
              (WebCore::QPainter::drawImage):
              (WebCore::QPainter::drawFloatImage):
              (WebCore::QPainter::drawTiledImage):
              (WebCore::QPainter::drawScaledAndTiledImage):
              * kwq/KWQPixmap.h: Removed.
              * kwq/KWQPixmap.mm: Removed.
              * kwq/KWQPrinter.h:
              (QPrinter::QPrinter):
              * kwq/KWQWidget.h:
              * loader/Cache.cpp:
              (khtml::Cache::init):
              (khtml::Cache::clear):
              (khtml::Cache::requestImage):
              (khtml::Cache::getStatistics):
              * loader/Cache.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::CachedImage):
              (WebCore::CachedImage::ref):
              (WebCore::CachedImage::tiled_image):
              (WebCore::CachedImage::image):
              (WebCore::CachedImage::image_size):
              (WebCore::CachedImage::do_notify):
              (WebCore::CachedImage::data):
              (WebCore::CachedImage::error):
              * loader/CachedImage.h:
              * loader/CachedImageCallback.cpp:
              (WebCore::CachedImageCallback::notifyUpdate):
              (WebCore::CachedImageCallback::notifyFinished):
              (WebCore::CachedImageCallback::handleError):
              * loader/CachedObject.h:
              (WebCore::CachedObject::):
              * loader/CachedObjectClient.h:
              (WebCore::CachedObjectClient::setImage):
              * loader/DocLoader.cpp:
              (khtml::DocLoader::setAutoloadImages):
              (khtml::DocLoader::setShowAnimations):
              * loader/loader.cpp:
              (WebCore::Loader::servePendingRequests):
              (WebCore::Loader::slotFinished):
              * page/Frame.cpp:
              (Frame::paint):
              * page/Frame.h:
              * page/FrameView.cpp:
              (selectCursor):
              * page/FrameView.h:
              * platform/Image.h: Added.
              * platform/mac/Image.mm: Added.
              (WebCore::Image::loadResource):
              (WebCore::Image::Image):
              (WebCore::Image::~Image):
              (WebCore::Image::imageRef):
              (WebCore::Image::resetAnimation):
              (WebCore::Image::setAnimationRect):
              (-[WebImageCallback initWithCallback:WebCore::]):
              (WebCore::Image::shouldUseThreadedDecoding):
              (WebCore::Image::receivedData):
              (WebCore::Image::mask):
              (WebCore::Image::isNull):
              (WebCore::Image::size):
              (WebCore::Image::rect):
              (WebCore::Image::width):
              (WebCore::Image::height):
              (WebCore::Image::resize):
              (WebCore::Image::operator=):
              (WebCore::Image::increaseUseCount):
              (WebCore::Image::decreaseUseCount):
              (WebCore::Image::stopAnimations):
              (WebCore::Image::flushRasterCache):
              * rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paint):
              * rendering/InlineTextBox.h:
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintChildren):
              (WebCore::RenderBlock::paintObject):
              * rendering/RenderText.h:
              * rendering/font.cpp:
              (khtml::Font::update):
              * rendering/font.h:
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/render_canvasimage.cpp:
              (WebCore::RenderCanvasImage::paint):
              * rendering/render_flow.cpp:
              (RenderFlow::paintLines):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::~RenderImage):
              (WebCore::RenderImage::setContentObject):
              (WebCore::RenderImage::setImage):
              (WebCore::RenderImage::paint):
              (WebCore::RenderImage::layout):
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
              * rendering/render_image.h:
              (WebCore::RenderImage::image):
              (WebCore::RenderImage::getImage):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              * rendering/render_list.cpp:
              (RenderListItem::getAbsoluteRepaintRect):
              (RenderListMarker::paint):
              (RenderListMarker::setImage):
              (RenderListMarker::calcMinMaxWidth):
              * rendering/render_list.h:
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::setImage):
              * rendering/render_object.h:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::paint):
              * rendering/render_replaced.h:
              * rendering/render_theme_mac.mm:
              (khtml::RenderThemeMac::setFontFromControlSize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9443599
  32. 18 Jan, 2006 2 commits
  33. 14 Jan, 2006 1 commit
    • hyatt's avatar
      Convert QRect/QRectF -> IntRect/FloatRect. Same drill as point · 673184e2
      hyatt authored
              and size.
      
              Reviewed by mjs
      
              * ForwardingHeaders/qrect.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/MacFrame.mm:
              (MacFrame::snapshotDragImage):
              (MacFrame::setDisplaysWithFocusAttributes):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge drawRect:withPainter:]):
              (-[WebCoreFrameBridge firstRectForDOMRange:]):
              (-[WebCoreFrameBridge ensureSelectionVisible]):
              * kcanvas/KCanvasContainer.cpp:
              (KCanvasContainer::relativeBBox):
              (KCanvasContainer::getAspectRatio):
              * kcanvas/KCanvasContainer.h:
              * kcanvas/KCanvasFilters.cpp:
              (KCanvasFilterEffect::subRegion):
              (KCanvasFilterEffect::setSubRegion):
              * kcanvas/KCanvasFilters.h:
              (KCanvasFilter::filterRect):
              (KCanvasFilter::setFilterRect):
              * kcanvas/KCanvasItem.cpp:
              (RenderPath::relativeBBox):
              * kcanvas/KCanvasItem.h:
              * kcanvas/KCanvasResources.cpp:
              (KCanvasMarker::draw):
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              (operator<<):
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGImage.cpp:
              (RenderSVGImage::paint):
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              (KRenderingPaintServerPattern::setBbox):
              (KRenderingPaintServerPattern::bbox):
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (KCanvasFilterQuartz::prepareFilter):
              (KCanvasFilterQuartz::applyFilter):
              * kcanvas/device/quartz/KCanvasItemQuartz.h:
              (KCanvasItemQuartz::getAbsoluteRepaintRect):
              * kcanvas/device/quartz/KCanvasItemQuartz.mm:
              (drawMarkerWithData):
              (KCanvasItemQuartz::drawMarkersIfNeeded):
              (KCanvasItemQuartz::bboxForPath):
              * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
              * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
              (KCanvasMaskerQuartz::applyMask):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              (KCanvasContainerQuartz::getAbsoluteRepaintRect):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              (KCanvasContainerQuartz::layout):
              (KCanvasContainerQuartz::paint):
              (KCanvasContainerQuartz::setViewport):
              (KCanvasContainerQuartz::viewport):
              (KCanvasContainerQuartz::setViewBox):
              (KCanvasContainerQuartz::viewBox):
              (KCanvasContainerQuartz::absoluteTransform):
              (KCanvasClipperQuartz::applyClip):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (KRenderingDeviceContextQuartz::mapFromVisual):
              (KRenderingDeviceContextQuartz::mapToVisual):
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
              (KRenderingPaintServerImageQuartz::draw):
              * kcanvas/device/quartz/QuartzSupport.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::showModalDialog):
              (KJS::Window::getValueProperty):
              (KJS::constrainToVisible):
              (KJS::WindowFunc::callAsFunction):
              * khtml/editing/SelectionController.cpp:
              (khtml::caretY):
              (khtml::SelectionController::layout):
              (khtml::SelectionController::caretRect):
              (khtml::SelectionController::caretRepaintRect):
              (khtml::SelectionController::paintCaret):
              * khtml/editing/SelectionController.h:
              * khtml/html/html_imageimpl.cpp:
              (DOM::HTMLAreaElementImpl::getRect):
              * khtml/html/html_imageimpl.h:
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::isFocusable):
              * khtml/misc/CachedImage.cpp:
              (khtml::CachedImage::valid_rect):
              (khtml::CachedImage::do_notify):
              (khtml::CachedImage::error):
              * khtml/misc/CachedImage.h:
              * khtml/misc/khtmllayout.h:
              (khtml::GapRects::left):
              (khtml::GapRects::center):
              (khtml::GapRects::right):
              (khtml::GapRects::uniteLeft):
              (khtml::GapRects::uniteCenter):
              (khtml::GapRects::uniteRight):
              (khtml::GapRects::operator IntRect):
              * khtml/misc/loader_client.h:
              (khtml::CachedObjectClient::setPixmap):
              * khtml/rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::selectionRect):
              (khtml::InlineTextBox::nodeAtPoint):
              * khtml/rendering/InlineTextBox.h:
              * khtml/rendering/RenderText.cpp:
              (khtml::RenderText::absoluteRects):
              (khtml::RenderText::caretRect):
              (khtml::RenderText::getAbsoluteRepaintRect):
              (khtml::RenderText::selectionRect):
              * khtml/rendering/RenderText.h:
              * khtml/rendering/bidi.cpp:
              (khtml::RenderBlock::layoutInlineChildren):
              * khtml/rendering/font.cpp:
              (khtml::Font::selectionRectForText):
              * khtml/rendering/font.h:
              * khtml/rendering/render_block.cpp:
              (khtml::RenderBlock::overflowRect):
              (khtml::RenderBlock::layoutBlock):
              (khtml::RenderBlock::getAbsoluteRepaintRectIncludingFloats):
              (khtml::RenderBlock::paint):
              (khtml::RenderBlock::fillHorizontalSelectionGap):
              (khtml::RenderBlock::fillVerticalSelectionGap):
              (khtml::RenderBlock::fillLeftSelectionGap):
              (khtml::RenderBlock::fillRightSelectionGap):
              (khtml::RenderBlock::floatRect):
              (khtml::RenderBlock::isPointInScrollbar):
              (khtml::RenderBlock::nodeAtPoint):
              * khtml/rendering/render_block.h:
              (khtml::RenderBlock::selectionRect):
              * khtml/rendering/render_box.cpp:
              (RenderBox::nodeAtPoint):
              (RenderBox::paintBoxDecorations):
              (RenderBox::paintBackgroundExtended):
              (RenderBox::getOverflowClipRect):
              (RenderBox::getClipRect):
              (RenderBox::getAbsoluteRepaintRect):
              (RenderBox::computeAbsoluteRepaintRect):
              (RenderBox::caretRect):
              * khtml/rendering/render_box.h:
              (khtml::RenderBox::borderBox):
              * khtml/rendering/render_br.cpp:
              (khtml::RenderBR::caretRect):
              * khtml/rendering/render_br.h:
              (khtml::RenderBR::selectionRect):
              * khtml/rendering/render_button.cpp:
              (khtml::RenderButton::paintObject):
              * khtml/rendering/render_canvas.cpp:
              (RenderCanvas::repaintViewRectangle):
              (RenderCanvas::getAbsoluteRepaintRect):
              (RenderCanvas::computeAbsoluteRepaintRect):
              (RenderCanvas::absoluteRects):
              (RenderCanvas::selectionRect):
              (RenderCanvas::viewRect):
              * khtml/rendering/render_canvas.h:
              (khtml::RenderCanvas::printRect):
              (khtml::RenderCanvas::setPrintRect):
              * khtml/rendering/render_canvasimage.cpp:
              (RenderCanvasImage::paint):
              (RenderCanvasImage::layout):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutBlock):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::getAbsoluteRepaintRect):
              (RenderFlow::caretRect):
              (RenderFlow::paintOutlines):
              (RenderFlow::paintOutlineForLine):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_frames.cpp:
              (RenderFrameSet::userResize):
              (RenderPart::updateWidgetPosition):
              * khtml/rendering/render_image.cpp:
              (RenderImage::setImage):
              (RenderImage::setPixmap):
              (RenderImage::paint):
              (RenderImage::layout):
              * khtml/rendering/render_image.h:
              * khtml/rendering/render_inline.cpp:
              (RenderInline::absoluteRects):
              * khtml/rendering/render_inline.h:
              * khtml/rendering/render_layer.cpp:
              (khtml::RenderLayer::updateLayerPositions):
              (khtml::RenderLayer::scrollRectToVisible):
              (khtml::RenderLayer::getRectToExpose):
              (khtml::RenderLayer::positionScrollbars):
              (khtml::RenderLayer::updateScrollInfoAfterLayout):
              (khtml::RenderLayer::paintScrollbars):
              (khtml::RenderLayer::paint):
              (khtml::setClip):
              (khtml::restoreClip):
              (khtml::RenderLayer::paintLayer):
              (khtml::RenderLayer::hitTest):
              (khtml::RenderLayer::hitTestLayer):
              (khtml::RenderLayer::calculateClipRects):
              (khtml::RenderLayer::calculateRects):
              (khtml::mustExamineRenderer):
              (khtml::RenderLayer::intersectsDamageRect):
              (khtml::RenderLayer::containsPoint):
              * khtml/rendering/render_layer.h:
              (khtml::ClipRects::m_refCnt):
              (khtml::ClipRects::overflowClipRect):
              (khtml::ClipRects::fixedClipRect):
              (khtml::ClipRects::posClipRect):
              (khtml::RenderLayer::repaintRect):
              * khtml/rendering/render_line.cpp:
              (khtml::InlineBox::canAccommodateEllipsis):
              (khtml::InlineFlowBox::nodeAtPoint):
              (khtml::InlineFlowBox::paintBackground):
              (khtml::InlineFlowBox::paintBackgroundAndBorder):
              (khtml::EllipsisBox::nodeAtPoint):
              * khtml/rendering/render_list.cpp:
              (RenderListItem::getAbsoluteRepaintRect):
              (RenderListMarker::setPixmap):
              * khtml/rendering/render_list.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::paintBorderImage):
              (RenderObject::paintBorder):
              (RenderObject::absoluteRects):
              (RenderObject::absoluteBoundingBoxRect):
              (RenderObject::addAbsoluteRectForLayer):
              (RenderObject::paintingRootRect):
              (RenderObject::repaintRectangle):
              (RenderObject::repaintAfterLayoutIfNeeded):
              (RenderObject::getAbsoluteRepaintRectWithOutline):
              (RenderObject::getAbsoluteRepaintRect):
              (RenderObject::getAbsoluteRepaintRectIncludingFloats):
              (RenderObject::computeAbsoluteRepaintRect):
              (RenderObject::viewRect):
              (RenderObject::caretRect):
              (RenderObject::addDashboardRegions):
              (RenderObject::setPixmap):
              * khtml/rendering/render_object.h:
              (khtml::RenderObject::getOverflowClipRect):
              (khtml::RenderObject::getClipRect):
              (khtml::RenderObject::relativeBBox):
              (khtml::RenderObject::PaintInfo::PaintInfo):
              (khtml::RenderObject::RepaintInfo::m_repaintRect):
              (khtml::RenderObject::borderBox):
              (khtml::RenderObject::overflowRect):
              (khtml::RenderObject::floatRect):
              (khtml::RenderObject::selectionRect):
              (khtml::RenderObject::SelectionInfo::rect):
              * khtml/rendering/render_replaced.cpp:
              (RenderReplaced::selectionRect):
              (RenderWidget::paint):
              (RenderWidget::updateWidgetPosition):
              * khtml/rendering/render_replaced.h:
              * khtml/rendering/render_table.cpp:
              (RenderTable::layout):
              (RenderTableRow::getAbsoluteRepaintRect):
              (RenderTableCell::computeAbsoluteRepaintRect):
              (RenderTableCell::getAbsoluteRepaintRect):
              (RenderTableCell::paintBoxDecorations):
              * khtml/rendering/render_table.h:
              * khtml/rendering/render_theme.cpp:
              (khtml::RenderTheme::paint):
              * khtml/rendering/render_theme.h:
              (khtml::RenderTheme::adjustRepaintRect):
              * khtml/rendering/render_theme_mac.h:
              * khtml/rendering/render_theme_mac.mm:
              (khtml::RenderThemeMac::adjustRepaintRect):
              (khtml::RenderThemeMac::inflateRect):
              (khtml::RenderThemeMac::paintCheckbox):
              (khtml::RenderThemeMac::setCheckboxCellState):
              (khtml::RenderThemeMac::paintRadio):
              (khtml::RenderThemeMac::setRadioCellState):
              (khtml::RenderThemeMac::setButtonCellState):
              (khtml::RenderThemeMac::paintButton):
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::scrollIntoView):
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::NodeImpl::getRect):
              (DOM::ContainerNodeImpl::getRect):
              * khtml/xml/dom_nodeimpl.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/svg/SVGFilterElementImpl.cpp:
              (SVGFilterElementImpl::canvasResource):
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributesImpl.cpp:
              (SVGFilterPrimitiveStandardAttributesImpl::setStandardAttributes):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::value):
              * ksvg2/svg/SVGLocatableImpl.cpp:
              (SVGLocatableImpl::getBBox):
              * ksvg2/svg/SVGMaskElementImpl.cpp:
              (KSVG::SVGMaskElementImpl::drawMaskerContent):
              * ksvg2/svg/SVGPatternElementImpl.cpp:
              (SVGPatternElementImpl::drawPatternContentIntoTile):
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              (SVGSVGElementImpl::checkIntersection):
              (SVGSVGElementImpl::checkEnclosure):
              (SVGSVGElementImpl::createRenderer):
              * kwq/KWQAccObject.mm:
              (boundingBoxRect):
              (-[KWQAccObject position]):
              (-[KWQAccObject size]):
              (-[KWQAccObject doAXBoundsForTextMarkerRange:]):
              * kwq/KWQApplication.h:
              * kwq/KWQApplication.mm:
              (QDesktopWidget::screenGeometry):
              (QDesktopWidget::availableGeometry):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm:
              (QComboBox::frameGeometry):
              (QComboBox::setFrameGeometry):
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::frameGeometry):
              (KWQFileButton::setFrameGeometry):
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm:
              (QFontMetrics::selectionRectForText):
              (QFontMetrics::boundingRect):
              * kwq/KWQKWinModule.h:
              * kwq/KWQKWinModule.mm:
              (KWinModule::workArea):
              * kwq/KWQObject.h:
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (QPainter::xForm):
              (QPainter::drawPixmap):
              (QPainter::fillRect):
              (QPainter::addClip):
              (QPainter::addRoundedRectClip):
              * kwq/KWQPixmap.h:
              * kwq/KWQPixmap.mm:
              (QPixmap::setAnimationRect):
              (QPixmap::rect):
              * kwq/KWQRect.h: Removed.
              * kwq/KWQRect.mm: Removed.
              * kwq/KWQRectF.h: Removed.
              * kwq/KWQRectF.mm: Removed.
              * kwq/KWQRegion.cpp:
              (QRegion::QRegion):
              (QRegion::boundingRect):
              * kwq/KWQRegion.h:
              * kwq/KWQRenderTreeDebug.cpp:
              (operator<<):
              (write):
              (writeLayers):
              (externalRepresentation):
              * kwq/KWQScrollView.h:
              * kwq/KWQScrollView.mm:
              (QScrollView::updateContents):
              * kwq/KWQWMatrix.cpp:
              (QWMatrix::mapRect):
              * kwq/KWQWMatrix.h:
              * kwq/KWQWidget.h:
              * kwq/KWQWidget.mm:
              (QWidget::resize):
              (QWidget::move):
              (QWidget::frameGeometry):
              (QWidget::setFrameGeometry):
              (QWidget::paint):
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::frameGeometry):
              (KWQWindowWidget::setFrameGeometry):
              * page/Frame.cpp:
              (Frame::gotoAnchor):
              (Frame::paintCaret):
              (Frame::paintDragCaret):
              (Frame::selectionRect):
              (Frame::revealSelection):
              (Frame::paint):
              (Frame::adjustPageHeight):
              (Frame::centerSelectionInVisibleArea):
              * page/Frame.h:
              * page/FrameView.cpp:
              (KHTMLView::addRepaintInfo):
              (KHTMLView::scrollTo):
              (KHTMLView::focusNextPrevNode):
              (KHTMLView::repaintRectangle):
              * page/FrameView.h:
              * platform/FloatRect.cpp: Added.
              (WebCore::FloatRect::FloatRect):
              (WebCore::FloatRect::isNull):
              (WebCore::FloatRect::isValid):
              (WebCore::FloatRect::isEmpty):
              (WebCore::FloatRect::right):
              (WebCore::FloatRect::bottom):
              (WebCore::FloatRect::topLeft):
              (WebCore::FloatRect::topRight):
              (WebCore::FloatRect::bottomRight):
              (WebCore::FloatRect::bottomLeft):
              (WebCore::FloatRect::size):
              (WebCore::FloatRect::unite):
              (WebCore::FloatRect::normalize):
              (WebCore::FloatRect::intersects):
              (WebCore::FloatRect::intersect):
              (WebCore::FloatRect::inflate):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/FloatRect.h: Added.
              (WebCore::FloatRect::contains):
              (WebCore::FloatRect::operator&):
              (WebCore::enclosingIntRect):
              * platform/IntPointArray.cpp:
              (IntPointArray::IntPointArray):
              (IntPointArray::boundingRect):
              * platform/IntPointArray.h:
              * platform/IntRect.cpp: Added.
              (WebCore::IntRect::IntRect):
              (WebCore::IntRect::isNull):
              (WebCore::IntRect::isValid):
              (WebCore::IntRect::isEmpty):
              (WebCore::IntRect::right):
              (WebCore::IntRect::bottom):
              (WebCore::IntRect::topLeft):
              (WebCore::IntRect::topRight):
              (WebCore::IntRect::bottomRight):
              (WebCore::IntRect::bottomLeft):
              (WebCore::IntRect::size):
              (WebCore::IntRect::unite):
              (WebCore::IntRect::normalize):
              (WebCore::IntRect::intersects):
              (WebCore::IntRect::intersect):
              (WebCore::IntRect::inflate):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/IntRect.h: Added.
              (WebCore::IntRect::contains):
              (WebCore::IntRect::operator&):
              * platform/mac/FloatRect.mm: Added.
              (WebCore::FloatRect::FloatRect):
              (WebCore::FloatRect::operator NSRect):
              (WebCore::FloatRect::operator CGRect):
              * platform/mac/IntRect.mm: Added.
              (WebCore::IntRect::IntRect):
              (WebCore::IntRect::operator NSRect):
              (WebCore::IntRect::operator CGRect):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      673184e2
  34. 13 Jan, 2006 2 commits
    • hyatt's avatar
      Convert QPoint and QPointArray to IntPoint and IntPointArray. · 85fa3d50
      hyatt authored
              Factor out the Objective-C-specific logic into a .mm file
              for IntPoint.
              
              * ForwardingHeaders/qpoint.h: Removed.
              * ForwardingHeaders/qpointarray.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLView.cpp:
              (KHTMLView::viewportToGlobal):
              * bridge/mac/KWQKPartsBrowserExtension.h:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (MacFrame::khtmlMouseMoveEvent):
              (MacFrame::dragSourceMovedTo):
              (MacFrame::dragSourceEndedAt):
              (MacFrame::dispatchDragSrcEvent):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge elementAtPoint:]):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
              (-[WebCoreFrameBridge dragSourceMovedTo:]):
              (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
              * kcanvas/KCanvasItem.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              (operator<<):
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::ClipboardProtoFunc::callAsFunction):
              * khtml/ecma/kjs_window.cpp:
              (KJS::WindowFunc::callAsFunction):
              * khtml/editing/SelectionController.cpp:
              (khtml::SelectionController::layout):
              (khtml::SelectionController::caretRect):
              * khtml/editing/SelectionController.h:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              (DOM::HTMLAreaElementImpl::mapMouseEvent):
              (DOM::HTMLAreaElementImpl::getRegion):
              * khtml/rendering/render_image.cpp:
              (RenderImage::paint):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::paint):
              * khtml/rendering/render_object.cpp:
              (RenderObject::drawBorder):
              * khtml/xml/dom2_eventsimpl.h:
              * ksvg2/svg/SVGPointImpl.cpp:
              (SVGPointImpl::SVGPointImpl):
              * ksvg2/svg/SVGPointImpl.h:
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              (SVGSVGElementImpl::createSVGPoint):
              * ksvg2/svg/SVGSVGElementImpl.h:
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (KWQClipboard::dragLocation):
              (KWQClipboard::setDragImage):
              (KWQClipboard::setDragImageElement):
              * kwq/KWQCursor.h:
              * kwq/KWQEvent.h:
              (QMouseEvent::pos):
              (QWheelEvent::QWheelEvent):
              (QWheelEvent::pos):
              (QWheelEvent::globalPos):
              * kwq/KWQEvent.mm:
              (positionForEvent):
              (globalPositionForEvent):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (QPainter::drawConvexPolygon):
              (QPainter::drawPixmap):
              * kwq/KWQPixmap.mm:
              (QPixmap::rect):
              * kwq/KWQPoint.mm: Removed.
              * kwq/KWQPointArray.cpp: Removed.
              * kwq/KWQPointArray.h: Removed.
              * kwq/KWQPointF.h:
              * kwq/KWQPointF.mm:
              (yCoord):
              * kwq/KWQRect.h:
              (QRect::moveTopLeft):
              (QRect::contains):
              * kwq/KWQRect.mm:
              (QRect::QRect):
              (QRect::topLeft):
              (QRect::topRight):
              (QRect::bottomRight):
              (QRect::bottomLeft):
              * kwq/KWQRegion.cpp:
              (QRegion::QRegion):
              (QRegion::contains):
              * kwq/KWQRegion.h:
              * kwq/KWQScrollView.h:
              * kwq/KWQScrollView.mm:
              (QScrollView::contentsToViewport):
              * kwq/KWQWidget.h:
              * kwq/KWQWidget.mm:
              (QWidget::pos):
              (QWidget::move):
              (QWidget::mapFromGlobal):
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::mapFromGlobal):
              (KWQWindowWidget::viewportToGlobal):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameView.cpp:
              (KHTMLView::dispatchDragEvent):
              (KHTMLView::updateDragAndDrop):
              (KHTMLView::cancelDragAndDrop):
              (KHTMLView::performDragAndDrop):
              * page/FrameView.h:
              * platform/IntPoint.cpp: Added.
              (WebCore::IntPoint::IntPoint):
              (WebCore::operator+):
              (WebCore::operator-):
              (WebCore::operator*):
              * platform/IntPoint.h: Added.
              (WebCore::IntPoint::x):
              (WebCore::IntPoint::y):
              (WebCore::IntPoint::setX):
              (WebCore::IntPoint::setY):
              (WebCore::IntPoint::isNull):
              (WebCore::IntPoint::operator -=):
              * platform/IntPointArray.cpp: Added.
              (IntPointArray::IntPointArray):
              (IntPointArray::copy):
              (IntPointArray::boundingRect):
              (IntPointArray::point):
              (IntPointArray::setPoint):
              (IntPointArray::setPoints):
              * platform/IntPointArray.h: Added.
              (WebCore::IntPointArray::IntPointArray):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85fa3d50
    • darin's avatar
      - Replaced tabs with spaces in source files that had less than 10 lines with tabs. · d7d82ce1
      darin authored
              - Set allow-tabs Subversion property in source files that have more than 10 lines with tabs.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7d82ce1