1. 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
  2. 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
  3. 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
  4. 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
  5. 18 Jan, 2006 2 commits
  6. 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
  7. 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
  8. 11 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Anders. · d4145d12
      mjs authored
              - renamed KHTMLPartPrivate to FramePrivate and KHTMLView to FrameView
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6490
      
              (also corresponding header renames, remove headers where not
              needed, and a few substantive changes to allow more header removal)
      
              * khtml/xml/dom_docimpl.h: moved m_selectedStylesheetSet here from
              KHTMLPartPrivate, since this was the only class using it.
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::processHttpEquiv): ditto
              (DocumentImpl::selectedStylesheetSet): ditto
              (DocumentImpl::setSelectedStylesheetSet): ditto
              (DocumentImpl::recalcStyleSelector): ditto
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocument::getValueProperty): Use new isCompleted method
              on Frame instead of accessing private field directly.
              (KJS::getDOMDocumentNode): remove gratuitous use of view()
              
              Just the renames:
              
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLView.cpp:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              * bridge/mac/WebCoreBridge.mm:
              * khtml/css/cssstyleselector.cpp:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_elementimpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::defaultEventHandler):
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/render_applet.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * kwq/KWQAccObject.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQSignalStubs.mm:
              * kwq/KWQWidget.mm:
              * page/Frame.cpp:
              (Frame::init):
              (Frame::submitForm):
              (Frame::isComplete):
              * page/Frame.h:
              * page/FramePrivate.h: Added.
              (FramePrivate::FramePrivate):
              (FramePrivate::~FramePrivate):
              * page/FrameView.cpp: Added.
              * page/FrameView.h: Added.
              * page/khtmlpart_p.h: Removed.
              * page/khtmlview.cpp: Removed.
              * page/khtmlview.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4145d12
  9. 10 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 5477f33b
      mjs authored
              - moved files related to the Frame class and the forthcoming Page class
              to WebCore/page
              
              - moved files related to the MacFrame class and other bridging-related classes
              to WebCore/bridge/mac
      
              * ForwardingHeaders/ksvg2/KSVGPart.h:
              * ForwardingHeaders/ksvg2/KSVGView.h:
              * WebCore.xcodeproj/project.pbxproj:
              * bridge: Added.
              * bridge/mac: Added.
              * bridge/mac/KWQKHTMLPartBrowserExtension.h: Added.
              * bridge/mac/KWQKHTMLPartBrowserExtension.mm: Added.
              * bridge/mac/KWQKHTMLView.cpp: Added.
              * bridge/mac/KWQKPartsBrowserExtension.h: Added.
              * bridge/mac/KWQKPartsBrowserInterface.mm: Added.
              * bridge/mac/MacFrame.h: Added.
              * bridge/mac/MacFrame.mm: Added.
              * bridge/mac/WebCoreBridge.h: Added.
              * bridge/mac/WebCoreBridge.mm: Added.
              * khtml/Frame.cpp: Removed.
              * khtml/Frame.h: Removed.
              * khtml/khtmlpart_p.h: Removed.
              * khtml/khtmlview.cpp: Removed.
              * khtml/khtmlview.h: Removed.
              * kwq/KWQKHTMLPartBrowserExtension.h: Removed.
              * kwq/KWQKHTMLPartBrowserExtension.mm: Removed.
              * kwq/KWQKHTMLView.cpp: Removed.
              * kwq/KWQKPartsBrowserExtension.h: Removed.
              * kwq/KWQKPartsBrowserInterface.mm: Removed.
              * kwq/MacFrame.h: Removed.
              * kwq/MacFrame.mm: Removed.
              * kwq/WebCoreBridge.h: Removed.
              * kwq/WebCoreBridge.mm: Removed.
              * page: Added.
              * page/Frame.cpp: Added.
              * page/Frame.h: Added.
              * page/khtmlpart_p.h: Added.
              * page/khtmlview.cpp: Added.
              * page/khtmlview.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5477f33b
  10. 09 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 810e9764
      mjs authored
              - renamed KHTMLPart to Frame (and KWQKHTMLPart to MacFrame for now)
      
              * ForwardingHeaders/ksvg2/KSVGPart.h:
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/Frame.cpp: Added.
              (khtml::PartStyleSheetLoader::PartStyleSheetLoader):
              (khtml::PartStyleSheetLoader::setStyleSheet):
              (Frame::Frame):
              (Frame::init):
              (Frame::~Frame):
              (Frame::restoreURL):
              (Frame::didOpenURL):
              (Frame::didExplicitOpen):
              (Frame::stopLoading):
              (Frame::closeURL):
              (Frame::browserExtension):
              (Frame::view):
              (Frame::setJScriptEnabled):
              (Frame::jScriptEnabled):
              (Frame::setMetaRefreshEnabled):
              (Frame::metaRefreshEnabled):
              (Frame::jScript):
              (Frame::replaceContentsWithScriptResult):
              (Frame::executeScript):
              (Frame::scheduleScript):
              (Frame::executeScheduledScript):
              (Frame::setJavaEnabled):
              (Frame::javaEnabled):
              (Frame::setPluginsEnabled):
              (Frame::pluginsEnabled):
              (Frame::slotDebugDOMTree):
              (Frame::slotDebugRenderTree):
              (Frame::setAutoloadImages):
              (Frame::autoloadImages):
              (Frame::clear):
              (Frame::openFile):
              (Frame::xmlDocImpl):
              (Frame::replaceDocImpl):
              (Frame::receivedFirstData):
              (Frame::slotFinished):
              (Frame::childBegin):
              (Frame::begin):
              (Frame::write):
              (Frame::end):
              (Frame::endIfNotLoading):
              (Frame::stop):
              (Frame::stopAnimations):
              (Frame::gotoAnchor):
              (Frame::slotFinishedParsing):
              (Frame::slotLoaderRequestStarted):
              (Frame::slotLoaderRequestDone):
              (Frame::checkCompleted):
              (Frame::checkEmitLoadEvent):
              (Frame::settings):
              (Frame::baseURL):
              (Frame::baseTarget):
              (Frame::completeURL):
              (Frame::scheduleRedirection):
              (Frame::scheduleLocationChange):
              (Frame::isScheduledLocationChangePending):
              (Frame::scheduleHistoryNavigation):
              (Frame::cancelRedirection):
              (Frame::changeLocation):
              (Frame::slotRedirect):
              (Frame::slotRedirection):
              (Frame::encoding):
              (Frame::setUserStyleSheet):
              (Frame::setStandardFont):
              (Frame::setFixedFont):
              (Frame::urlCursor):
              (Frame::onlyLocalReferences):
              (Frame::setOnlyLocalReferences):
              (Frame::selectedText):
              (Frame::hasSelection):
              (Frame::selection):
              (Frame::selectionGranularity):
              (Frame::setSelectionGranularity):
              (Frame::dragCaret):
              (Frame::mark):
              (Frame::setMark):
              (Frame::setSelection):
              (Frame::setDragCaret):
              (Frame::clearSelection):
              (Frame::invalidateSelection):
              (Frame::setCaretVisible):
              (Frame::clearCaretRectIfNeeded):
              (isFrameElement):
              (Frame::setFocusNodeIfNeeded):
              (Frame::selectionLayoutChanged):
              (Frame::setXPosForVerticalArrowNavigation):
              (Frame::xPosForVerticalArrowNavigation):
              (Frame::timerEvent):
              (Frame::paintCaret):
              (Frame::paintDragCaret):
              (Frame::urlSelected):
              (Frame::requestFrame):
              (Frame::requestFrameName):
              (Frame::requestObject):
              (Frame::processObjectRequest):
              (Frame::submitFormAgain):
              (Frame::submitForm):
              (Frame::slotParentCompleted):
              (Frame::slotChildStarted):
              (Frame::slotChildCompleted):
              (Frame::childFrame):
              (Frame::findFrame):
              (Frame::frameExists):
              (Frame::parentFrame):
              (Frame::zoomFactor):
              (Frame::slotIncZoom):
              (Frame::slotDecZoom):
              (Frame::setZoomFactor):
              (Frame::setJSStatusBarText):
              (Frame::setJSDefaultStatusBarText):
              (Frame::jsStatusBarText):
              (Frame::jsDefaultStatusBarText):
              (Frame::referrer):
              (Frame::lastModified):
              (Frame::reparseConfiguration):
              (Frame::frameNames):
              (Frame::frames):
              (Frame::childFrameNamed):
              (Frame::setDNDEnabled):
              (Frame::dndEnabled):
              (Frame::shouldDragAutoNode):
              (Frame::customEvent):
              (Frame::isPointInsideSelection):
              (Frame::selectClosestWordFromMouseEvent):
              (Frame::handleMousePressEventDoubleClick):
              (Frame::handleMousePressEventTripleClick):
              (Frame::handleMousePressEventSingleClick):
              (Frame::khtmlMousePressEvent):
              (Frame::khtmlMouseDoubleClickEvent):
              (Frame::handleMouseMoveEventSelection):
              (Frame::khtmlMouseMoveEvent):
              (Frame::khtmlMouseReleaseEvent):
              (Frame::khtmlDrawContentsEvent):
              (Frame::startAutoScroll):
              (Frame::stopAutoScroll):
              (Frame::selectAll):
              (Frame::selectContentsOfNode):
              (Frame::shouldChangeSelection):
              (Frame::shouldBeginEditing):
              (Frame::shouldEndEditing):
              (Frame::isContentEditable):
              (Frame::lastEditCommand):
              (Frame::appliedEditing):
              (Frame::unappliedEditing):
              (Frame::reappliedEditing):
              (Frame::typingStyle):
              (Frame::setTypingStyle):
              (Frame::clearTypingStyle):
              (Frame::slotPartRemoved):
              (Frame::createHTMLEventListener):
              (Frame::opener):
              (Frame::setOpener):
              (Frame::openedByJS):
              (Frame::setOpenedByJS):
              (Frame::preloadStyleSheet):
              (Frame::preloadScript):
              (Frame::restored):
              (Frame::incrementFrameCount):
              (Frame::decrementFrameCount):
              (Frame::topLevelFrameCount):
              (Frame::tabsToLinks):
              (Frame::tabsToAllControls):
              (Frame::copyToPasteboard):
              (Frame::cutToPasteboard):
              (Frame::pasteFromPasteboard):
              (Frame::pasteAndMatchStyle):
              (Frame::transpose):
              (Frame::redo):
              (Frame::undo):
              (Frame::computeAndSetTypingStyle):
              (Frame::applyStyle):
              (Frame::applyParagraphStyle):
              (updateState):
              (Frame::selectionHasStyle):
              (Frame::selectionStartHasStyle):
              (Frame::selectionStartStylePropertyValue):
              (Frame::selectionComputedStyle):
              (Frame::applyEditingStyleToBodyElement):
              (Frame::removeEditingStyleFromBodyElement):
              (Frame::applyEditingStyleToElement):
              (Frame::removeEditingStyleFromElement):
              (Frame::isCharacterSmartReplaceExempt):
              (Frame::connectChild):
              (Frame::disconnectChild):
              (Frame::keepAlive):
              (Frame::slotEndLifeSupport):
              (Frame::selectFrameElementInParentIfFullySelected):
              (Frame::handleFallbackContent):
              * khtml/Frame.h: Added.
              * khtml/css/cssstyleselector.cpp:
              (khtml::CSSStyleSelector::CSSStyleSelector):
              (khtml::CSSStyleSelector::initForStyleResolve):
              (khtml::CSSStyleSelector::checkOneSelector):
              (khtml::CSSStyleSelector::applyProperty):
              (khtml::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/css/cssstyleselector.h:
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::ScriptInterpreter):
              (KJS::ScriptInterpreter::~ScriptInterpreter):
              * khtml/ecma/kjs_binding.h:
              (KJS::ScriptInterpreter::frame):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocument::getValueProperty):
              (KJS::getDOMDocumentNode):
              (KJS::checkNodeSecurity):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              (KJS::JSLazyEventListener::parseCode):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::HTMLDocFunction::callAsFunction):
              (KJS::HTMLDocument::namedItemGetter):
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::framesetNameGetter):
              (KJS::HTMLElement::frameWindowPropertyGetter):
              (KJS::HTMLElement::getOwnPropertySlot):
              (KJS::KJS::HTMLElement::implementsCall):
              (KJS::Image::notifyFinished):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::Navigator):
              (KJS::Navigator::getValueProperty):
              (KJS::NavigatorFunc::callAsFunction):
              * khtml/ecma/kjs_navigator.h:
              (KJS::Navigator::frame):
              * khtml/ecma/kjs_proxy.cpp:
              (KJSProxyImpl::KJSProxyImpl):
              (KJSProxyImpl::evaluate):
              (KJSProxyImpl::clear):
              (KJSProxyImpl::createHTMLEventHandler):
              (KJSProxyImpl::interpreter):
              (KJSProxyImpl::initScript):
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::History::History):
              (KJS::FrameArray::FrameArray):
              (KJS::Screen::getValueProperty):
              (KJS::Window::Window):
              (KJS::Window::interpreter):
              (KJS::Window::retrieveWindow):
              (KJS::Window::retrieve):
              (KJS::Window::location):
              (KJS::Window::selection):
              (KJS::Window::locationbar):
              (KJS::Window::menubar):
              (KJS::Window::personalbar):
              (KJS::Window::statusbar):
              (KJS::Window::toolbar):
              (KJS::Window::scrollbars):
              (KJS::allowPopUp):
              (KJS::createNewWindow):
              (KJS::canShowModalDialog):
              (KJS::canShowModalDialogNow):
              (KJS::showModalDialog):
              (KJS::Window::getValueProperty):
              (KJS::Window::childFrameGetter):
              (KJS::Window::namedFrameGetter):
              (KJS::Window::indexGetter):
              (KJS::Window::namedItemGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::Window::put):
              (KJS::Window::toBoolean):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::setListener):
              (KJS::Window::getListener):
              (KJS::Window::setCurrentEvent):
              (KJS::WindowFunc::callAsFunction):
              (KJS::Window::updateLayout):
              (KJS::ScheduledAction::execute):
              (KJS::WindowQObject::WindowQObject):
              (KJS::FrameArray::getValueProperty):
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              (KJS::Location::Location):
              (KJS::Location::getValueProperty):
              (KJS::Location::getOwnPropertySlot):
              (KJS::Location::put):
              (KJS::Location::toString):
              (KJS::LocationFunc::callAsFunction):
              (KJS::Selection::Selection):
              (KJS::Selection::getValueProperty):
              (KJS::Selection::getOwnPropertySlot):
              (KJS::Selection::toString):
              (KJS::SelectionFunc::callAsFunction):
              (KJS::BarInfo::BarInfo):
              (KJS::BarInfo::getValueProperty):
              (KJS::BarInfo::getOwnPropertySlot):
              (KJS::History::getValueProperty):
              (KJS::HistoryFunc::callAsFunction):
              * khtml/ecma/kjs_window.h:
              (KJS::Window::frame):
              (KJS::Location::frame):
              (KJS::Selection::frame):
              (KJS::BarInfo::frame):
              * khtml/ecma/xmlhttprequest.cpp:
              (KJS::XMLHttpRequest::changeState):
              (KJS::XMLHttpRequestProtoFunc::callAsFunction):
              * khtml/editing/SelectionController.cpp:
              (khtml::SelectionController::modify):
              (khtml::SelectionController::xPosForVerticalArrowNavigation):
              * khtml/editing/SelectionController.h:
              (khtml::SelectionController::frame):
              * khtml/editing/delete_selection_command.cpp:
              (khtml::DeleteSelectionCommand::calculateTypingStyleAfterDelete):
              * khtml/editing/edit_command.cpp:
              (khtml::EditCommand::EditCommand):
              (khtml::EditCommand::apply):
              (khtml::EditCommand::unapply):
              (khtml::EditCommand::reapply):
              (khtml::EditCommand::styleAtPosition):
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              (khtml::InsertLineBreakCommand::doApply):
              * khtml/editing/insert_text_command.cpp:
              (khtml::InsertTextCommand::input):
              * khtml/editing/jsediting.cpp:
              (DOM::JSEditor::execCommand):
              (DOM::JSEditor::queryCommandEnabled):
              (DOM::JSEditor::queryCommandIndeterm):
              (DOM::JSEditor::queryCommandState):
              (DOM::JSEditor::queryCommandValue):
              * khtml/editing/jsediting.h:
              * khtml/editing/replace_selection_command.cpp:
              (khtml::ReplaceSelectionCommand::doApply):
              * khtml/editing/text_granularity.h:
              * khtml/editing/typing_command.cpp:
              (khtml::TypingCommand::deleteKeyPressed):
              (khtml::TypingCommand::forwardDeleteKeyPressed):
              (khtml::TypingCommand::insertText):
              (khtml::TypingCommand::insertLineBreak):
              (khtml::TypingCommand::insertParagraphSeparatorInQuotedContent):
              (khtml::TypingCommand::insertParagraphSeparator):
              (khtml::TypingCommand::markMisspellingsAfterTyping):
              (khtml::TypingCommand::typingAddedToOpenCommand):
              (khtml::TypingCommand::insertTextRunWithoutNewlines):
              * khtml/html/html_baseimpl.cpp:
              (HTMLFrameElementImpl::isURLAllowed):
              (HTMLFrameElementImpl::openURL):
              (HTMLFrameElementImpl::attach):
              (HTMLFrameElementImpl::close):
              (HTMLFrameElementImpl::contentPart):
              (HTMLFrameElementImpl::contentDocument):
              (HTMLIFrameElementImpl::attach):
              * khtml/html/html_baseimpl.h:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              (DOM::HTMLDocumentImpl::lastModified):
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::isContentEditable):
              (HTMLElementImpl::setContentEditable):
              * khtml/html/html_formimpl.cpp:
              (DOM::HTMLFormElementImpl::formData):
              (DOM::HTMLFormElementImpl::prepareSubmit):
              (DOM::HTMLFormElementImpl::submit):
              (DOM::HTMLFormElementImpl::reset):
              (DOM::HTMLGenericFormElementImpl::isKeyboardFocusable):
              (DOM::HTMLKeygenElementImpl::appendFormData):
              * khtml/html/html_headimpl.cpp:
              (HTMLBaseElementImpl::process):
              (HTMLLinkElementImpl::process):
              (HTMLScriptElementImpl::parseMappedAttribute):
              (HTMLScriptElementImpl::insertedIntoDocument):
              (HTMLScriptElementImpl::evaluateScript):
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::isKeyboardFocusable):
              (DOM::HTMLAnchorElementImpl::defaultEventHandler):
              * khtml/html/html_objectimpl.cpp:
              (DOM::HTMLAppletElementImpl::createRenderer):
              (DOM::HTMLAppletElementImpl::getAppletInstance):
              (DOM::HTMLEmbedElementImpl::getEmbedInstance):
              (DOM::HTMLEmbedElementImpl::rendererIsNeeded):
              (DOM::HTMLObjectElementImpl::getObjectInstance):
              (DOM::HTMLObjectElementImpl::rendererIsNeeded):
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlparser.cpp:
              (HTMLParser::noscriptCreateErrorCheck):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::scriptHandler):
              (khtml::HTMLTokenizer::scriptExecution):
              (khtml::HTMLTokenizer::parseTag):
              (khtml::HTMLTokenizer::write):
              (khtml::HTMLTokenizer::stopParsing):
              (khtml::HTMLTokenizer::timerEvent):
              (khtml::HTMLTokenizer::processToken):
              * khtml/khtml_part.cpp: Removed.
              * khtml/khtml_part.h: Removed.
              * khtml/khtmlpart_p.h:
              (KHTMLPartPrivate::KHTMLPartPrivate):
              * khtml/khtmlview.cpp:
              (KHTMLView::KHTMLView):
              (KHTMLView::~KHTMLView):
              (KHTMLView::clearPart):
              (KHTMLView::clear):
              (KHTMLView::resizeEvent):
              (KHTMLView::adjustViewSize):
              (KHTMLView::layout):
              (KHTMLView::updateDashboardRegions):
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::viewportMouseDoubleClickEvent):
              (selectCursor):
              (KHTMLView::viewportMouseMoveEvent):
              (KHTMLView::viewportMouseReleaseEvent):
              (KHTMLView::keyPressEvent):
              (KHTMLView::dispatchDragEvent):
              (KHTMLView::updateDragAndDrop):
              (KHTMLView::focusNextPrevNode):
              (KHTMLView::mediaType):
              (KHTMLView::dispatchMouseEvent):
              (KHTMLView::viewportWheelEvent):
              (KHTMLView::focusInEvent):
              (KHTMLView::focusOutEvent):
              (KHTMLView::timerEvent):
              (KHTMLView::scheduleRelayout):
              (KHTMLView::unscheduleRelayout):
              * khtml/khtmlview.h:
              (KHTMLView::frame):
              * khtml/misc/CachedImageCallback.cpp:
              (khtml::CachedImageCallback::notifyUpdate):
              (khtml::CachedImageCallback::notifyFinished):
              (khtml::CachedImageCallback::clear):
              * khtml/misc/CachedObject.h:
              * khtml/misc/DocLoader.cpp:
              (khtml::DocLoader::DocLoader):
              (khtml::DocLoader::requestImage):
              (khtml::DocLoader::requestStyleSheet):
              (khtml::DocLoader::requestScript):
              (khtml::DocLoader::requestXSLStyleSheet):
              (khtml::DocLoader::requestXBLDocument):
              * khtml/misc/DocLoader.h:
              (khtml::DocLoader::frame):
              * khtml/misc/loader.cpp:
              (khtml::Loader::slotReceivedResponse):
              * khtml/rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paint):
              (khtml::InlineTextBox::paintMarkedTextUnderline):
              * khtml/rendering/InlineTextBox.h:
              * khtml/rendering/render_applet.cpp:
              (RenderApplet::createWidgetIfNecessary):
              * khtml/rendering/render_block.cpp:
              (khtml::RenderBlock::paintCaret):
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_form.cpp:
              (RenderFileButton::RenderFileButton):
              * khtml/rendering/render_frames.cpp:
              (isURLAllowed):
              (RenderPartObject::updateWidget):
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_object.cpp:
              (RenderObject::draggableNode):
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::eventFilter):
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::updateTitle):
              (DocumentImpl::frame):
              (DocumentImpl::recalcStyle):
              (DocumentImpl::updateSelection):
              (DocumentImpl::open):
              (DocumentImpl::close):
              (DocumentImpl::implicitClose):
              (DocumentImpl::processHttpEquiv):
              (DocumentImpl::selectedStylesheetSet):
              (DocumentImpl::setSelectedStylesheetSet):
              (DocumentImpl::recalcStyleSelector):
              (DocumentImpl::relinquishesEditingFocus):
              (DocumentImpl::acceptsEditingFocus):
              (DocumentImpl::clearSelectionIfNeeded):
              (DocumentImpl::createHTMLEventListener):
              (DocumentImpl::ownerElement):
              (DocumentImpl::referrer):
              (DocumentImpl::parentDocument):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::focus):
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::NodeImpl::dispatchEvent):
              * khtml/xml/dom_xmlimpl.cpp:
              (DOM::ProcessingInstructionImpl::checkStyleSheet):
              * khtml/xml/xml_tokenizer.cpp:
              (khtml::XMLTokenizer::processingInstruction):
              (khtml::XMLTokenizer::executeScripts):
              (khtml::XMLTokenizer::notifyFinished):
              * khtml/xsl/xslt_processorimpl.cpp:
              (DOM::XSLTProcessorImpl::createDocumentFromSource):
              * ksvg2/svg/SVGAElementImpl.cpp:
              (SVGAElementImpl::defaultEventHandler):
              * ksvg2/svg/SVGImageElementImpl.cpp:
              (SVGImageElementImpl::notifyFinished):
              * kwq/DOM.mm:
              (-[DOMNode KJS::Bindings::]):
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject textUnderElement]):
              (-[KWQAccObject value]):
              (-[KWQAccObject accessibilityPerformAction:]):
              (-[KWQAccObject accessibilityAttributeValue:]):
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              (-[KWQAccObject rendererForView:]):
              (-[KWQAccObject doSetAXSelectedTextMarkerRange:]):
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (KWQClipboard::KWQClipboard):
              (KWQClipboard::dragNSImage):
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              (-[KWQPopUpButton nextKeyView]):
              (-[KWQPopUpButton previousKeyView]):
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::KWQFileButton):
              (KWQFileButton::focusPolicy):
              (KWQFileButton::focusChanged):
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              * kwq/KWQKHTMLFactory.h:
              * kwq/KWQKHTMLPart.cpp: Removed.
              * kwq/KWQKHTMLPart.h: Removed.
              * kwq/KWQKHTMLPart.mm: Removed.
              * kwq/KWQKHTMLPartBrowserExtension.h:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::KHTMLPartBrowserExtension):
              (KHTMLPartBrowserExtension::openURLRequest):
              (KHTMLPartBrowserExtension::createNewWindow):
              (KHTMLPartBrowserExtension::setIconURL):
              (KHTMLPartBrowserExtension::setTypedIconURL):
              (KHTMLPartBrowserExtension::canRunModal):
              (KHTMLPartBrowserExtension::canRunModalNow):
              (KHTMLPartBrowserExtension::runModal):
              * kwq/KWQKHTMLView.cpp:
              (KHTMLView::topLevelWidget):
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::KJavaAppletWidget):
              * kwq/KWQKPartsBrowserInterface.h:
              (KParts::BrowserInterface::BrowserInterface):
              * kwq/KWQKPartsBrowserInterface.mm:
              (KParts::BrowserInterface::property):
              (KParts::BrowserInterface::callMethod):
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              (-[KWQListBoxScrollView becomeFirstResponder]):
              (-[KWQTableView keyDown:]):
              (-[KWQTableView keyUp:]):
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              (-[KWQTableView nextKeyView]):
              (-[KWQTableView previousKeyView]):
              * kwq/KWQLoader.mm:
              (KWQServeRequest):
              (KWQServeSynchronousRequest):
              (KWQCheckIfReloading):
              (KWQCheckCacheObjectStatus):
              (KWQCacheObjectExpiresTime):
              * kwq/KWQObject.cpp:
              (QObject::inherits):
              (QObject::isFrame):
              * kwq/KWQObject.h:
              * kwq/KWQPageState.mm:
              (-[KWQPageState dealloc]):
              (-[KWQPageState finalize]):
              * kwq/KWQRegExp.cpp:
              (QRegExp::KWQRegExpPrivate::compile):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              (writeSelection):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              (-[KWQSlider nextKeyView]):
              (-[KWQSlider previousKeyView]):
              (-[KWQSlider canBecomeKeyView]):
              (QSlider::focusPolicy):
              * kwq/KWQSlot.mm:
              (KWQSlot::KWQSlot):
              (KWQSlot::call):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView _isResizableByUser]):
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView nextKeyView]):
              (-[KWQTextAreaTextView previousKeyView]):
              (-[KWQTextAreaTextView _trackResizeFromMouseDown:]):
              (-[KWQTextAreaTextView drawRect:]):
              (-[KWQTextAreaTextView insertTab:]):
              (-[KWQTextAreaTextView insertBacktab:]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              (-[KWQTextAreaTextView shouldDrawInsertionPoint]):
              (-[KWQTextAreaTextView selectedTextAttributes]):
              (-[KWQTextAreaTextView keyDown:]):
              (-[KWQTextAreaTextView keyUp:]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController controlTextDidBeginEditing:]):
              (-[KWQTextFieldController controlTextDidEndEditing:]):
              (-[KWQTextFieldController controlTextDidChange:]):
              (-[KWQTextFieldController control:textView:doCommandBySelector:]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              (-[KWQTextFieldController setHasFocus:]):
              (-[KWQTextField nextKeyView]):
              (-[KWQTextField previousKeyView]):
              (-[KWQSecureTextField nextKeyView]):
              (-[KWQSecureTextField previousKeyView]):
              (-[KWQSearchField nextKeyView]):
              (-[KWQSearchField previousKeyView]):
              * kwq/KWQTimer.h:
              * kwq/KWQWidget.mm:
              (QWidget::setActiveWindow):
              (QWidget::hasFocus):
              (QWidget::setFocus):
              (QWidget::clearFocus):
              (QWidget::isVisible):
              (QWidget::mapFromGlobal):
              (QWidget::setIsSelected):
              * kwq/MacFrame.cpp: Added.
              (MacFrame::isFrameSet):
              * kwq/MacFrame.h: Added.
              (MacFrame::instances):
              (Mac):
              * kwq/MacFrame.mm: Added.
              (Frame::completed):
              (Frame::openURL):
              (Frame::onURL):
              (Frame::setStatusBarText):
              (Frame::started):
              (redirectionTimerMonitor):
              (MacFrame::MacFrame):
              (MacFrame::~MacFrame):
              (MacFrame::freeClipboard):
              (MacFrame::setSettings):
              (MacFrame::generateFrameName):
              (MacFrame::provisionalLoadStarted):
              (MacFrame::userGestureHint):
              (MacFrame::openURL):
              (MacFrame::openURLRequest):
              (MacFrame::didNotOpenURL):
              (MacFrame::currentForm):
              (MacFrame::searchForLabelsAboveCell):
              (MacFrame::searchForLabelsBeforeElement):
              (MacFrame::matchLabelsAgainstElement):
              (MacFrame::findString):
              (MacFrame::clearRecordedFormValues):
              (MacFrame::recordFormValue):
              (MacFrame::submitForm):
              (MacFrame::setEncoding):
              (MacFrame::addData):
              (Frame::frameDetached):
              (MacFrame::urlSelected):
              (MacFrame::createPart):
              (MacFrame::setView):
              (MacFrame::view):
              (MacFrame::setTitle):
              (MacFrame::setStatusBarText):
              (MacFrame::scheduleClose):
              (MacFrame::unfocusWindow):
              (MacFrame::revealSelection):
              (MacFrame::advanceToNextMisspelling):
              (MacFrame::scrollOverflow):
              (MacFrame::wheelEvent):
              (MacFrame::redirectionTimerStartedOrStopped):
              (MacFrame::paint):
              (MacFrame::adjustPageHeight):
              (MacFrame::renderer):
              (MacFrame::userAgent):
              (MacFrame::mimeTypeForFileName):
              (MacFrame::nextKeyViewInFrame):
              (MacFrame::nextKeyViewInFrameHierarchy):
              (MacFrame::nextKeyView):
              (MacFrame::nextKeyViewForWidget):
              (MacFrame::currentEventIsMouseDownInWidget):
              (MacFrame::currentEventIsKeyboardOptionTab):
              (MacFrame::handleKeyboardOptionTabInView):
              (MacFrame::tabsToLinks):
              (MacFrame::tabsToAllControls):
              (MacFrame::executionContextForDOM):
              (MacFrame::bindingRootObject):
              (MacFrame::windowScriptObject):
              (MacFrame::windowScriptNPObject):
              (MacFrame::partClearedInBegin):
              (MacFrame::pauseTimeouts):
              (MacFrame::resumeTimeouts):
              (MacFrame::canCachePage):
              (MacFrame::saveWindowProperties):
              (MacFrame::saveLocationProperties):
              (MacFrame::restoreWindowProperties):
              (MacFrame::restoreLocationProperties):
              (MacFrame::saveInterpreterBuiltins):
              (MacFrame::restoreInterpreterBuiltins):
              (MacFrame::openURLFromPageCache):
              (MacFrame::frameForWidget):
              (MacFrame::bridgeForWidget):
              (MacFrame::frameForNode):
              (MacFrame::documentViewForNode):
              (MacFrame::nodeForWidget):
              (MacFrame::setDocumentFocus):
              (MacFrame::clearDocumentFocus):
              (MacFrame::saveDocumentState):
              (MacFrame::restoreDocumentState):
              (MacFrame::mutableInstances):
              (MacFrame::updatePolicyBaseURL):
              (MacFrame::setPolicyBaseURL):
              (MacFrame::requestedURLString):
              (MacFrame::incomingReferrer):
              (MacFrame::forceLayout):
              (MacFrame::forceLayoutWithPageWidthRange):
              (MacFrame::sendResizeEvent):
              (MacFrame::sendScrollEvent):
              (MacFrame::runJavaScriptAlert):
              (MacFrame::runJavaScriptConfirm):
              (MacFrame::runJavaScriptPrompt):
              (MacFrame::locationbarVisible):
              (MacFrame::menubarVisible):
              (MacFrame::personalbarVisible):
              (MacFrame::scrollbarsVisible):
              (MacFrame::statusbarVisible):
              (MacFrame::toolbarVisible):
              (MacFrame::addMessageToConsole):
              (MacFrame::createEmptyDocument):
              (MacFrame::addMetaData):
              (MacFrame::keyEvent):
              (MacFrame::scrollToAnchor):
              (MacFrame::closeURL):
              (MacFrame::canMouseDownStartSelect):
              (MacFrame::khtmlMousePressEvent):
              (MacFrame::khtmlMouseDoubleClickEvent):
              (MacFrame::passWidgetMouseDownEventToWidget):
              (MacFrame::lastEventIsMouseUp):
              (MacFrame::mouseDownViewIfStillGood):
              (MacFrame::dragHysteresisExceeded):
              (MacFrame::dispatchDragSrcEvent):
              (MacFrame::eventMayStartDrag):
              (MacFrame::khtmlMouseMoveEvent):
              (MacFrame::dragSourceMovedTo):
              (MacFrame::dragSourceEndedAt):
              (MacFrame::dispatchCPPEvent):
              (MacFrame::mayCut):
              (MacFrame::mayCopy):
              (MacFrame::mayPaste):
              (MacFrame::tryCut):
              (MacFrame::tryCopy):
              (MacFrame::tryPaste):
              (MacFrame::khtmlMouseReleaseEvent):
              (MacFrame::clearTimers):
              (MacFrame::passSubframeEventToSubframe):
              (MacFrame::passWheelEventToChildWidget):
              (MacFrame::mouseDown):
              (MacFrame::mouseDragged):
              (MacFrame::mouseUp):
              (MacFrame::sendFakeEventsAfterWidgetTracking):
              (MacFrame::mouseMoved):
              (MacFrame::shouldDragAutoNode):
              (MacFrame::sendContextMenuEvent):
              (MacFrame::fileWrapperForElement):
              (MacFrame::attributedString):
              (MacFrame::selectionRect):
              (MacFrame::visibleSelectionRect):
              (MacFrame::centerSelectionInVisibleArea):
              (MacFrame::imageFromRect):
              (MacFrame::selectionImage):
              (MacFrame::snapshotDragImage):
              (MacFrame::styleForSelectionStart):
              (MacFrame::fontForSelection):
              (MacFrame::fontAttributesForSelectionStart):
              (MacFrame::baseWritingDirectionForSelectionStart):
              (MacFrame::topLevelWidget):
              (MacFrame::tokenizerProcessedData):
              (MacFrame::selectionStartOffset):
              (MacFrame::selectionEndOffset):
              (MacFrame::selectionStart):
              (MacFrame::selectionEnd):
              (MacFrame::setBridge):
              (MacFrame::overrideMediaType):
              (MacFrame::setMediaType):
              (MacFrame::setSelectionFromNone):
              (MacFrame::setDisplaysWithFocusAttributes):
              (MacFrame::displaysWithFocusAttributes):
              (MacFrame::setWindowHasFocus):
              (MacFrame::backslashAsCurrencySymbol):
              (MacFrame::bodyBackgroundColor):
              (MacFrame::keyboardUIMode):
              (MacFrame::setName):
              (MacFrame::didTellBridgeAboutLoad):
              (MacFrame::haveToldBridgeAboutLoad):
              (MacFrame::clear):
              (Frame::print):
              (MacFrame::getAppletInstanceForWidget):
              (MacFrame::getEmbedInstanceForWidget):
              (MacFrame::getObjectInstanceForWidget):
              (MacFrame::addPluginRootObject):
              (MacFrame::cleanupPluginRootObjects):
              (MacFrame::registerCommandForUndoOrRedo):
              (MacFrame::registerCommandForUndo):
              (MacFrame::registerCommandForRedo):
              (MacFrame::clearUndoRedoOperations):
              (MacFrame::issueUndoCommand):
              (MacFrame::issueRedoCommand):
              (MacFrame::issueCutCommand):
              (MacFrame::issueCopyCommand):
              (MacFrame::issuePasteCommand):
              (MacFrame::issuePasteAndMatchStyleCommand):
              (MacFrame::issueTransposeCommand):
              (Frame::canUndo):
              (Frame::canRedo):
              (Frame::canPaste):
              (MacFrame::markMisspellingsInAdjacentWords):
              (MacFrame::markMisspellings):
              (MacFrame::respondToChangedSelection):
              (MacFrame::shouldChangeSelection):
              (MacFrame::respondToChangedContents):
              (MacFrame::isContentEditable):
              (MacFrame::shouldBeginEditing):
              (MacFrame::shouldEndEditing):
              (convertAttributesToUnderlines):
              (MacFrame::setMarkedTextRange):
              (MacFrame::markedTextUsesUnderlines):
              (MacFrame::markedTextUnderlines):
              (MacFrame::canGoBackOrForward):
              (MacFrame::prepareForUserAction):
              (MacFrame::didFirstLayout):
              (MacFrame::dashboardRegionsDictionary):
              (MacFrame::dashboardRegionsChanged):
              (MacFrame::isCharacterSmartReplaceExempt):
              (MacFrame::isFrame):
              (MacFrame::mousePressNode):
              (MacFrame::handledOnloadEvents):
              (MacFrame::shouldClose):
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (updateRenderingForBindings):
              (frameHasSelection):
              (+[WebCoreBridge bridgeForDOMDocument:]):
              (-[WebCoreBridge init]):
              (-[WebCoreBridge initializeSettings:]):
              (-[WebCoreBridge dealloc]):
              (-[WebCoreBridge finalize]):
              (-[WebCoreBridge part]):
              (-[WebCoreBridge setParent:]):
              (-[WebCoreBridge parent]):
              (-[WebCoreBridge provisionalLoadStarted]):
              (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              (-[WebCoreBridge setEncoding:userChosen:]):
              (-[WebCoreBridge addData:]):
              (-[WebCoreBridge closeURL]):
              (-[WebCoreBridge stopLoading]):
              (-[WebCoreBridge didNotOpenURL:pageCache:]):
              (-[WebCoreBridge saveDocumentState]):
              (-[WebCoreBridge restoreDocumentState]):
              (-[WebCoreBridge scrollToAnchorWithURL:]):
              (-[WebCoreBridge scrollOverflowInDirection:granularity:]):
              (-[WebCoreBridge sendScrollWheelEvent:]):
              (-[WebCoreBridge saveDocumentToPageCache]):
              (-[WebCoreBridge canCachePage]):
              (-[WebCoreBridge clear]):
              (-[WebCoreBridge end]):
              (-[WebCoreBridge stop]):
              (-[WebCoreBridge handleFallbackContent]):
              (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]):
              (-[WebCoreBridge scrollToAnchor:]):
              (-[WebCoreBridge isSelectionEditable]):
              (-[WebCoreBridge selectionState]):
              (-[WebCoreBridge _documentTypeString]):
              (-[WebCoreBridge selectedString]):
              (-[WebCoreBridge stringForRange:]):
              (-[WebCoreBridge selectAll]):
              (-[WebCoreBridge deselectAll]):
              (-[WebCoreBridge deselectText]):
              (-[WebCoreBridge isFrameSet]):
              (-[WebCoreBridge reapplyStylesForDeviceType:]):
              (nowPrinting):
              (-[WebCoreBridge _setupRootForPrinting:]):
              (-[WebCoreBridge forceLayoutAdjustingViewSize:]):
              (-[WebCoreBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
              (-[WebCoreBridge sendResizeEvent]):
              (-[WebCoreBridge sendScrollEvent]):
              (-[WebCoreBridge drawRect:withPainter:]):
              (-[WebCoreBridge drawRect:]):
              (-[WebCoreBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              (-[WebCoreBridge adjustPageHeightNew:top:bottom:limit:]):
              (-[WebCoreBridge copyDOMTree:]):
              (-[WebCoreBridge copyRenderTree:]):
              (-[WebCoreBridge removeFromFrame]):
              (-[WebCoreBridge installInFrame:]):
              (-[WebCoreBridge setActivationEventNumber:]):
              (-[WebCoreBridge mouseDown:]):
              (-[WebCoreBridge mouseDragged:]):
              (-[WebCoreBridge mouseUp:]):
              (-[WebCoreBridge mouseMoved:]):
              (-[WebCoreBridge sendContextMenuEvent:]):
              (-[WebCoreBridge currentForm]):
              (-[WebCoreBridge searchForLabels:beforeElement:]):
              (-[WebCoreBridge matchLabels:againstElement:]):
              (-[WebCoreBridge elementAtPoint:]):
              (-[WebCoreBridge URLWithAttributeString:]):
              (-[WebCoreBridge searchFor:direction:caseSensitive:wrap:]):
              (-[WebCoreBridge advanceToNextMisspelling]):
              (-[WebCoreBridge advanceToNextMisspellingStartingJustBeforeSelection]):
              (-[WebCoreBridge unmarkAllMisspellings]):
              (-[WebCoreBridge setTextSizeMultiplier:]):
              (-[WebCoreBridge textEncoding]):
              (-[WebCoreBridge nextKeyView]):
              (-[WebCoreBridge previousKeyView]):
              (-[WebCoreBridge nextKeyViewInsideWebFrameViews]):
              (-[WebCoreBridge previousKeyViewInsideWebFrameViews]):
              (-[WebCoreBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              (-[WebCoreBridge windowScriptObject]):
              (-[WebCoreBridge windowScriptNPObject]):
              (-[WebCoreBridge DOMDocument]):
              (-[WebCoreBridge selectedAttributedString]):
              (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]):
              (-[WebCoreBridge selectionRect]):
              (-[WebCoreBridge visibleSelectionRect]):
              (-[WebCoreBridge centerSelectionInVisibleArea]):
              (-[WebCoreBridge selectionImage]):
              (-[WebCoreBridge setName:]):
              (-[WebCoreBridge name]):
              (-[WebCoreBridge URL]):
              (-[WebCoreBridge baseURL]):
              (-[WebCoreBridge referrer]):
              (-[WebCoreBridge domain]):
              (-[WebCoreBridge opener]):
              (-[WebCoreBridge setOpener:]):
              (-[WebCoreBridge needsLayout]):
              (-[WebCoreBridge setNeedsLayout]):
              (-[WebCoreBridge interceptKeyEvent:toView:]):
              (-[WebCoreBridge renderTreeAsExternalRepresentation]):
              (-[WebCoreBridge setSelectionFromNone]):
              (-[WebCoreBridge setDisplaysWithFocusAttributes:]):
              (-[WebCoreBridge setWindowHasFocus:]):
              (-[WebCoreBridge numPendingOrLoadingRequests]):
              (-[WebCoreBridge doneProcessingData]):
              (-[WebCoreBridge shouldClose]):
              (-[WebCoreBridge bodyBackgroundColor]):
              (-[WebCoreBridge selectionColor]):
              (-[WebCoreBridge adjustViewSize]):
              (-[WebCoreBridge accessibilityTree]):
              (-[WebCoreBridge setDrawsBackground:]):
              (-[WebCoreBridge rangeByExpandingSelectionWithGranularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:direction:granularity:]):
              (-[WebCoreBridge alterCurrentSelection:direction:granularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:verticalDistance:]):
              (-[WebCoreBridge alterCurrentSelection:verticalDistance:]):
              (-[WebCoreBridge selectionGranularity]):
              (-[WebCoreBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreBridge selectedDOMRange]):
              (-[WebCoreBridge convertToNSRange:DOM::]):
              (-[WebCoreBridge convertToDOMRange:]):
              (-[WebCoreBridge selectNSRange:]):
              (-[WebCoreBridge selectedNSRange]):
              (-[WebCoreBridge selectionAffinity]):
              (-[WebCoreBridge setMarkDOMRange:]):
              (-[WebCoreBridge markDOMRange]):
              (-[WebCoreBridge setMarkedTextDOMRange:customAttributes:ranges:]):
              (-[WebCoreBridge markedTextDOMRange]):
              (-[WebCoreBridge markedTextNSRange]):
              (-[WebCoreBridge replaceMarkedTextWithText:]):
              (-[WebCoreBridge smartDeleteRangeForProposedRange:]):
              (-[WebCoreBridge smartInsertForString:replacingRange:beforeString:afterString:]):
              (-[WebCoreBridge documentFragmentWithMarkupString:baseURLString:]):
              (-[WebCoreBridge documentFragmentWithText:]):
              (-[WebCoreBridge documentFragmentWithNodesAsParagraphs:]):
              (-[WebCoreBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              (-[WebCoreBridge insertLineBreak]):
              (-[WebCoreBridge insertParagraphSeparator]):
              (-[WebCoreBridge insertParagraphSeparatorInQuotedContent]):
              (-[WebCoreBridge insertText:selectInsertedText:]):
              (-[WebCoreBridge setSelectionToDragCaret]):
              (-[WebCoreBridge moveSelectionToDragCaret:smartMove:]):
              (-[WebCoreBridge _visiblePositionForPoint:]):
              (-[WebCoreBridge moveDragCaretToPoint:]):
              (-[WebCoreBridge removeDragCaret]):
              (-[WebCoreBridge dragCaretDOMRange]):
              (-[WebCoreBridge deleteSelectionWithSmartDelete:]):
              (-[WebCoreBridge deleteKeyPressedWithSmartDelete:]):
              (-[WebCoreBridge forwardDeleteKeyPressedWithSmartDelete:]):
              (-[WebCoreBridge typingStyle]):
              (-[WebCoreBridge setTypingStyle:withUndoAction:]):
              (-[WebCoreBridge applyStyle:withUndoAction:]):
              (-[WebCoreBridge applyParagraphStyle:withUndoAction:]):
              (-[WebCoreBridge selectionStartHasStyle:]):
              (-[WebCoreBridge selectionHasStyle:]):
              (-[WebCoreBridge applyEditingStyleToBodyElement]):
              (-[WebCoreBridge removeEditingStyleFromBodyElement]):
              (-[WebCoreBridge applyEditingStyleToElement:]):
              (-[WebCoreBridge removeEditingStyleFromElement:]):
              (-[WebCoreBridge fontForSelection:]):
              (-[WebCoreBridge fontAttributesForSelectionStart]):
              (-[WebCoreBridge baseWritingDirectionForSelectionStart]):
              (-[WebCoreBridge ensureSelectionVisible]):
              (-[WebCoreBridge eventMayStartDrag:]):
              (-[WebCoreBridge dragOperationForDraggingInfo:]):
              (-[WebCoreBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreBridge concludeDragForDraggingInfo:]):
              (-[WebCoreBridge dragSourceMovedTo:]):
              (-[WebCoreBridge dragSourceEndedAt:operation:]):
              (-[WebCoreBridge mayDHTMLCut]):
              (-[WebCoreBridge mayDHTMLCopy]):
              (-[WebCoreBridge mayDHTMLPaste]):
              (-[WebCoreBridge tryDHTMLCut]):
              (-[WebCoreBridge tryDHTMLCopy]):
              (-[WebCoreBridge tryDHTMLPaste]):
              (-[WebCoreBridge rangeOfCharactersAroundCaret]):
              (-[WebCoreBridge dashboardRegions]):
              (-[WebCoreBridge executionContextForView:]):
              * kwq/WebCoreSettings.mm:
              (-[WebCoreSettings _updateAllViews]):
              * kwq/WebCoreTextRendererFactory.mm:
              (-[WebCoreTextRendererFactory clearCaches]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      810e9764
  11. 15 Dec, 2005 1 commit
    • eseidel's avatar
      Bug #: 6091 · eedc541f
      eseidel authored
      Submitted by: eseidel
      Reviewed by: darin
              Remove more legacy code from khtml/kwq
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6091
      
              No tests needed, no functionality changes.
      
              * ForwardingHeaders/kapplication.h: Removed.
              * ForwardingHeaders/kcompletionbox.h: Removed.
              * ForwardingHeaders/kdatastream.h: Removed.
              * ForwardingHeaders/kfiledialog.h: Removed.
              * ForwardingHeaders/kfileitem.h: Removed.
              * ForwardingHeaders/khtml_iface.h: Removed.
              * ForwardingHeaders/khtml_pagecache.h: Removed.
              * ForwardingHeaders/khtml_printsettings.h: Removed.
              * ForwardingHeaders/khtml_run.h: Removed.
              * ForwardingHeaders/kiconloader.h: Removed.
              * ForwardingHeaders/kio/kprotocolmanager.h: Removed.
              * ForwardingHeaders/kio/netaccess.h: Removed.
              * ForwardingHeaders/kmessagebox.h: Removed.
              * ForwardingHeaders/kmimetype.h: Removed.
              * ForwardingHeaders/kmultipledrag.h: Removed.
              * ForwardingHeaders/kparts/partmanager.h: Removed.
              * ForwardingHeaders/kprinter.h: Removed.
              * ForwardingHeaders/kprotocolmanager.h: Removed.
              * ForwardingHeaders/ksimpleconfig.h: Removed.
              * ForwardingHeaders/ksslcertchain.h: Removed.
              * ForwardingHeaders/ksslinfodlg.h: Removed.
              * ForwardingHeaders/kstdaction.h: Removed.
              * ForwardingHeaders/ktempfile.h: Removed.
              * ForwardingHeaders/ktrader.h: Removed.
              * ForwardingHeaders/kurldrag.h: Removed.
              * ForwardingHeaders/kxmlguifactory.h: Removed.
              * ForwardingHeaders/netaccess.h: Removed.
              * ForwardingHeaders/private/qucomextra_p.h: Removed.
              * ForwardingHeaders/qasyncimageio.h: Removed.
              * ForwardingHeaders/qbitmap.h: Removed.
              * ForwardingHeaders/qclipboard.h: Removed.
              * ForwardingHeaders/qdir.h: Removed.
              * ForwardingHeaders/qdrawutil.h: Removed.
              * ForwardingHeaders/qfontdatabase.h: Removed.
              * ForwardingHeaders/qfontinfo.h: Removed.
              * ForwardingHeaders/qglobal.h: Removed.
              * ForwardingHeaders/qhbox.h: Removed.
              * ForwardingHeaders/qinputdialog.h: Removed.
              * ForwardingHeaders/qintcache.h: Removed.
              * ForwardingHeaders/qmetaobject.h: Removed.
              * ForwardingHeaders/qmovie.h: Removed.
              * ForwardingHeaders/qobjectlist.h: Removed.
              * ForwardingHeaders/qtooltip.h: Removed.
              * ForwardingHeaders/scheduler.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/css/cssstyleselector.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              (KJSProxyImpl::KJSProxyImpl):
              (KJSProxyImpl::initScript):
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/kjs_window.moc: Removed.
              * khtml/html/html_documentimpl.cpp:
              (DOM::HTMLDocumentImpl::HTMLDocumentImpl):
              * khtml/html/html_documentimpl.moc: Removed.
              * khtml/html/html_formimpl.cpp:
              * khtml/html/html_formimpl.h:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_objectimpl.h:
              * khtml/html/htmltokenizer.moc: Removed.
              * khtml/khtml_part.cpp:
              (KHTMLPart::didOpenURL):
              (KHTMLPart::stopLoading):
              (KHTMLPart::createJavaContext):
              (KHTMLPart::begin):
              (KHTMLPart::slotRedirection):
              (KHTMLPart::setSelection):
              (KHTMLPart::handleFallbackContent):
              * khtml/khtml_part.h:
              * khtml/khtml_part.moc: Removed.
              * khtml/khtmlpart_p.h:
              (KHTMLPartPrivate::KHTMLPartPrivate):
              (KHTMLPartPrivate::~KHTMLPartPrivate):
              * khtml/khtmlview.cpp:
              (KHTMLViewPrivate::KHTMLViewPrivate):
              (KHTMLViewPrivate::~KHTMLViewPrivate):
              (KHTMLView::KHTMLView):
              (KHTMLView::init):
              (KHTMLView::resizeEvent):
              (KHTMLView::layout):
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::viewportMouseDoubleClickEvent):
              (KHTMLView::viewportMouseReleaseEvent):
              (KHTMLView::scrollTo):
              (KHTMLView::focusNextPrevNode):
              (KHTMLView::focusInEvent):
              (KHTMLView::focusOutEvent):
              * khtml/khtmlview.h:
              * khtml/khtmlview.moc: Removed.
              * khtml/misc/loader.cpp:
              (CachedImage::CachedImage):
              (CachedImage::ref):
              (CachedImage::deref):
              (CachedImage::pixmap_size):
              (CachedImage::valid_rect):
              (CachedImage::clear):
              (CachedXSLStyleSheet::CachedXSLStyleSheet):
              (Cache::clear):
              (Cache::flush):
              (Cache::getStatistics):
              (Cache::setCacheDisabled):
              * khtml/misc/loader.h:
              * khtml/misc/loader.moc: Removed.
              * khtml/rendering/render_form.cpp:
              (ComboBoxWidget::ComboBoxWidget):
              (RenderSelect::createListBox):
              (RenderSlider::slotClicked):
              * khtml/rendering/render_form.h:
              * khtml/rendering/render_form.moc: Removed.
              * khtml/rendering/render_frames.cpp:
              (RenderFrameSet::userResize):
              (RenderPart::updateWidgetPosition):
              * khtml/rendering/render_frames.moc: Removed.
              * khtml/rendering/render_layer.cpp:
              (khtml::RenderLayer::isTransparent):
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::destroy):
              (RenderWidget::setSelectionState):
              * khtml/rendering/render_replaced.moc: Removed.
              * khtml/xml/dom_docimpl.cpp:
              (DocumentTypeImpl::cloneNode):
              * khtml/xml/dom_docimpl.moc: Removed.
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xml/xml_tokenizer.moc: Removed.
              * ksvg2/svg/SVGImageElementImpl.cpp:
              * kwq/KWQApplication.h:
              (QApplication::sendEvent):
              * kwq/KWQComboBox.h:
              * kwq/KWQKApplication.h: Removed.
              * kwq/KWQKHTMLPageCache.h: Removed.
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::openURLFromPageCache):
              * kwq/KWQKHTMLPartBrowserExtension.h:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletContext.h:
              (KJavaAppletContext::KJavaAppletContext):
              * kwq/KWQKPartsHistoryProvider.h:
              * kwq/KWQKPartsPartManager.h: Removed.
              * kwq/KWQMovie.h: Removed.
              * kwq/KWQMovie.mm: Removed.
              * kwq/KWQObject.h:
              * kwq/KWQScrollView.h:
              * kwq/KWQScrollView.mm:
              * kwq/KWQWidget.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eedc541f
  12. 20 Nov, 2005 1 commit
    • eseidel's avatar
      Bug #: 5711 · 7811b780
      eseidel authored
      Submitted by: eseidel
      Reviewed by: mjs
              Remove #if !APPLE_CHANGES and #if 0 blocks.  No functional changes.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=5711
      
              * khtml/css/css_computedstyle.cpp:
              (DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * khtml/css/css_valueimpl.cpp:
              (DOM::CSSMutableStyleDeclarationImpl::setProperty):
              (DOM::CSSPrimitiveValueImpl::computeLength):
              (DOM::CSSPrimitiveValueImpl::computeLengthFloat):
              (DOM::CSSPrimitiveValueImpl::cssText):
              (DOM::FontFamilyValueImpl::FontFamilyValueImpl):
              * khtml/css/css_valueimpl.h:
              * khtml/css/cssparser.cpp:
              (qFatal):
              (CSSParser::parseValue):
              (CSSParser::parseDashboardRegions):
              * khtml/css/cssstyleselector.cpp:
              (khtml::):
              (khtml::colorForCSSValue):
              (khtml::CSSStyleSelector::applyDeclarations):
              (khtml::CSSStyleSelector::applyProperty):
              (khtml::CSSStyleSelector::checkForTextSizeAdjust):
              * khtml/css/cssstyleselector.h:
              * khtml/dom/dom_node.h:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMStyleSheetList::getOwnPropertySlot):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::NodeConstructor::getValueProperty):
              (KJS::DOMExceptionConstructor::getValueProperty):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLElement::getOwnPropertySlot):
              (KJS::KJS::HTMLElementFunction::callAsFunction):
              (KJS::KJS::HTMLElement::put):
              * khtml/ecma/kjs_html.h:
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              (KJS::PluginBase::refresh):
              * khtml/ecma/kjs_proxy.cpp:
              (KJSProxyImpl::evaluate):
              (KJSProxyImpl::initScript):
              * khtml/ecma/kjs_window.cpp:
              (KJS::allowPopUp):
              (KJS::Window::getValueProperty):
              (KJS::Window::put):
              (KJS::Window::resumeTimeouts):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::WindowFunc::callAsFunction):
              (KJS::WindowQObject::hasTimeouts):
              (KJS::Location::put):
              (KJS::LocationFunc::callAsFunction):
              (KJS::BarInfo::getValueProperty):
              * khtml/ecma/kjs_window.h:
              * khtml/ecma/xmlhttprequest.cpp:
              (KJS::XMLHttpRequestQObject::slotData):
              (KJS::XMLHttpRequest::send):
              (KJS::XMLHttpRequest::processSyncLoadResults):
              (KJS::XMLHttpRequest::slotData):
              * khtml/ecma/xmlhttprequest.h:
              * khtml/editing/SelectionController.cpp:
              (khtml::SelectionController::debugPosition):
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/break_blockquote_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_from_text_node_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_into_text_node_command.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/jsediting.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/remove_css_property_command.cpp:
              * khtml/editing/remove_node_attribute_command.cpp:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/set_node_attribute_command.cpp:
              * khtml/editing/split_element_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/split_text_node_containing_element.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
              * khtml/html/html_documentimpl.cpp:
              (DOM::HTMLDocumentImpl::referrer):
              (DOM::HTMLDocumentImpl::cookie):
              (DOM::HTMLDocumentImpl::setCookie):
              * khtml/html/html_formimpl.cpp:
              (DOM::HTMLFormElementImpl::attach):
              (DOM::HTMLFormElementImpl::formData):
              (DOM::HTMLFormElementImpl::submit):
              (DOM::HTMLFormElementImpl::parseMappedAttribute):
              (DOM::HTMLGenericFormElementImpl::isMouseFocusable):
              (DOM::HTMLGenericFormElementImpl::defaultEventHandler):
              (DOM::HTMLInputElementImpl::setInputType):
              (DOM::HTMLInputElementImpl::type):
              (DOM::HTMLInputElementImpl::canHaveSelection):
              (DOM::HTMLInputElementImpl::selectionStart):
              (DOM::HTMLInputElementImpl::selectionEnd):
              (DOM::HTMLInputElementImpl::setSelectionStart):
              (DOM::HTMLInputElementImpl::setSelectionEnd):
              (DOM::HTMLInputElementImpl::select):
              (DOM::HTMLInputElementImpl::setSelectionRange):
              (DOM::HTMLInputElementImpl::click):
              (DOM::HTMLInputElementImpl::accessKeyAction):
              (DOM::HTMLInputElementImpl::rendererIsNeeded):
              (DOM::HTMLInputElementImpl::createRenderer):
              (DOM::HTMLInputElementImpl::attach):
              (DOM::HTMLInputElementImpl::altText):
              (DOM::HTMLInputElementImpl::appendFormData):
              (DOM::HTMLInputElementImpl::valueWithDefault):
              (DOM::HTMLInputElementImpl::storesValueSeparateFromAttribute):
              (DOM::HTMLInputElementImpl::defaultEventHandler):
              (DOM::HTMLSelectElementImpl::state):
              (DOM::HTMLSelectElementImpl::restoreState):
              (DOM::HTMLKeygenElementImpl::appendFormData):
              * khtml/html/html_formimpl.h:
              (DOM::HTMLInputElementImpl::):
              * khtml/html/html_imageimpl.cpp:
              (HTMLImageLoader::updateFromElement):
              (HTMLImageElementImpl::parseMappedAttribute):
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::isMouseFocusable):
              * khtml/html/html_objectimpl.cpp:
              (DOM::HTMLAppletElementImpl::getMember):
              (DOM::HTMLAppletElementImpl::callMember):
              (DOM::HTMLAppletElementImpl::allParamsAvailable):
              (DOM::HTMLEmbedElementImpl::getEmbedInstance):
              (DOM::HTMLObjectElementImpl::HTMLObjectElementImpl):
              (DOM::HTMLObjectElementImpl::getObjectInstance):
              (DOM::HTMLObjectElementImpl::rendererIsNeeded):
              * khtml/html/html_objectimpl.h:
              (DOM::HTMLObjectElementImpl::isDocNamedItem):
              * khtml/html/html_tableimpl.cpp:
              (DOM::HTMLTableElementImpl::HTMLTableElementImpl):
              (DOM::HTMLTableElementImpl::parseMappedAttribute):
              * khtml/html/htmlparser.cpp:
              (HTMLParser::handleIsindex):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::scriptExecution):
              * khtml/html/htmltokenizer.h:
              * khtml/khtml_part.cpp:
              (KHTMLPart::KHTMLPart):
              (KHTMLPart::init):
              (KHTMLPart::~KHTMLPart):
              (KHTMLPart::restoreURL):
              (KHTMLPart::didOpenURL):
              (KHTMLPart::stopLoading):
              (KHTMLPart::createJavaContext):
              (KHTMLPart::setAutoloadImages):
              (KHTMLPart::clear):
              (KHTMLPart::receivedFirstData):
              (KHTMLPart::slotFinished):
              (KHTMLPart::childBegin):
              (KHTMLPart::begin):
              (KHTMLPart::write):
              (KHTMLPart::gotoAnchor):
              (KHTMLPart::slotLoaderRequestStarted):
              (KHTMLPart::slotLoaderRequestDone):
              (KHTMLPart::checkCompleted):
              (KHTMLPart::completeURL):
              (KHTMLPart::scheduleHistoryNavigation):
              (KHTMLPart::urlCursor):
              (KHTMLPart::text):
              (KHTMLPart::selectedText):
              (KHTMLPart::hasSelection):
              (KHTMLPart::setSelection):
              (KHTMLPart::urlSelected):
              (KHTMLPart::requestFrameName):
              (KHTMLPart::requestObject):
              (KHTMLPart::processObjectRequest):
              (KHTMLPart::submitForm):
              (KHTMLPart::slotChildStarted):
              (KHTMLPart::slotChildCompleted):
              (KHTMLPart::childFrame):
              (KHTMLPart::findFrame):
              (KHTMLPart::frameExists):
              (KHTMLPart::parentPart):
              (KHTMLPart::emitSelectionChanged):
              (KHTMLPart::setZoomFactor):
              (KHTMLPart::reparseConfiguration):
              (KHTMLPart::khtmlMousePressEvent):
              (KHTMLPart::khtmlMouseMoveEvent):
              (KHTMLPart::startAutoScroll):
              (KHTMLPart::stopAutoScroll):
              (KHTMLPart::shouldChangeSelection):
              (KHTMLPart::appliedEditing):
              (KHTMLPart::unappliedEditing):
              (KHTMLPart::reappliedEditing):
              (KHTMLPart::copyToPasteboard):
              (KHTMLPart::cutToPasteboard):
              (KHTMLPart::pasteFromPasteboard):
              (KHTMLPart::pasteAndMatchStyle):
              (KHTMLPart::transpose):
              (KHTMLPart::redo):
              (KHTMLPart::undo):
              * khtml/khtml_part.h:
              (KHTMLPart::didFirstLayout):
              * khtml/khtmlpart_p.h:
              (KHTMLPartPrivate::KHTMLPartPrivate):
              (KHTMLPartPrivate::~KHTMLPartPrivate):
              * khtml/khtmlview.cpp:
              (KHTMLViewPrivate::KHTMLViewPrivate):
              (KHTMLViewPrivate::~KHTMLViewPrivate):
              (KHTMLViewPrivate::reset):
              (KHTMLView::KHTMLView):
              (KHTMLView::~KHTMLView):
              (KHTMLView::resetScrollBars):
              (KHTMLView::init):
              (KHTMLView::clear):
              (KHTMLView::resizeEvent):
              (KHTMLView::initScrollBars):
              (KHTMLView::layout):
              (KHTMLView::updateDashboardRegions):
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::viewportMouseDoubleClickEvent):
              (KHTMLView::viewportMouseMoveEvent):
              (KHTMLView::viewportMouseReleaseEvent):
              (KHTMLView::keyPressEvent):
              (KHTMLView::contentsContextMenuEvent):
              (KHTMLView::dispatchDragEvent):
              (KHTMLView::focusNextPrevNode):
              (KHTMLView::mediaType):
              (KHTMLView::setScrollBarsMode):
              (KHTMLView::restoreScrollBar):
              (KHTMLView::viewportWheelEvent):
              * khtml/khtmlview.h:
              * khtml/misc/decoder.cpp:
              (Decoder::setEncoding):
              (Decoder::decode):
              (Decoder::flush):
              * khtml/misc/decoder.h:
              * khtml/misc/helper.cpp:
              (khtml::findWordBoundary):
              (khtml::nextWordFromIndex):
              (khtml::findSentenceBoundary):
              (khtml::nextSentenceFromIndex):
              * khtml/misc/helper.h:
              * khtml/misc/loader.cpp:
              (CachedObject::~CachedObject):
              (CachedImageCallback::clear):
              (CachedImage::CachedImage):
              (CachedImage::tiled_pixmap):
              (CachedImage::pixmap):
              (CachedImage::setShowAnimations):
              (CachedImage::clear):
              (CachedImage::data):
              (CachedImage::error):
              (DocLoader::DocLoader):
              (DocLoader::requestImage):
              (DocLoader::requestStyleSheet):
              (DocLoader::requestScript):
              (DocLoader::requestXSLStyleSheet):
              (DocLoader::requestXBLDocument):
              (Loader::Loader):
              (Loader::~Loader):
              (Loader::servePendingRequests):
              (Loader::slotFinished):
              (Loader::slotData):
              (Loader::numRequests):
              (Loader::cancelRequests):
              (Loader::removeBackgroundDecodingRequest):
              (Cache::init):
              (Cache::requestImage):
              (Cache::requestStyleSheet):
              (Cache::requestScript):
              (Cache::requestXSLStyleSheet):
              (Cache::requestXBLDocument):
              * khtml/misc/loader.h:
              (khtml::CachedObject::CachedObject):
              * khtml/misc/stringit.h:
              (khtml::TokenizerSubstring::TokenizerSubstring):
              * khtml/rendering/render_applet.cpp:
              (RenderApplet::RenderApplet):
              (RenderApplet::layout):
              (RenderEmptyApplet::RenderEmptyApplet):
              (RenderEmptyApplet::layout):
              * khtml/rendering/render_applet.h:
              * khtml/rendering/render_canvas.cpp:
              (RenderCanvas::setBestTruncatedAt):
              * khtml/rendering/render_canvas.h:
              (khtml::RenderCanvas::printImages):
              * khtml/rendering/render_container.cpp:
              (RenderContainer::addChild):
              (RenderContainer::removeChildNode):
              (RenderContainer::appendChildNode):
              (RenderContainer::insertChildNode):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutVerticalBox):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::paintLines):
              (RenderFlow::paintFocusRing):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_form.cpp:
              (RenderFormElement::baselinePosition):
              (RenderFormElement::setStyle):
              (RenderFormElement::updateFromElement):
              (RenderFormElement::layout):
              (RenderLineEdit::RenderLineEdit):
              (RenderLineEdit::slotReturnPressed):
              (RenderLineEdit::addSearchResult):
              (RenderLineEdit::calcMinMaxWidth):
              (RenderLineEdit::setStyle):
              (RenderLineEdit::updateFromElement):
              (RenderFileButton::RenderFileButton):
              (RenderFileButton::calcMinMaxWidth):
              (RenderFileButton::slotClicked):
              (RenderFileButton::updateFromElement):
              (RenderFileButton::select):
              (ComboBoxWidget::event):
              (ComboBoxWidget::eventFilter):
              (RenderSelect::updateFromElement):
              (RenderSelect::layout):
              (RenderTextArea::RenderTextArea):
              (RenderTextArea::calcMinMaxWidth):
              (RenderTextArea::setStyle):
              (RenderTextArea::updateFromElement):
              (RenderTextArea::text):
              (RenderTextArea::selectionStart):
              (RenderTextArea::selectionEnd):
              (RenderTextArea::setSelectionStart):
              (RenderTextArea::setSelectionEnd):
              (RenderTextArea::setSelectionRange):
              * khtml/rendering/render_form.h:
              (khtml::RenderFormElement::intrinsicMargin):
              (khtml::RenderLineEdit::canHaveIntrinsicMargins):
              (khtml::RenderSelect::canHaveIntrinsicMargins):
              (khtml::RenderTextArea::canHaveIntrinsicMargins):
              * khtml/rendering/render_frames.cpp:
              (RenderFrameSet::userResize):
              (RenderFrame::slotViewCleared):
              (RenderPartObject::layout):
              (RenderPartObject::slotViewCleared):
              * khtml/rendering/render_image.cpp:
              (RenderImage::setPixmap):
              (RenderImage::resetAnimation):
              (RenderImage::paint):
              (RenderImage::layout):
              * khtml/rendering/render_image.h:
              * khtml/rendering/render_layer.cpp:
              (khtml::RenderLayer::scrollToOffset):
              (khtml::RenderLayer::updateScrollInfoAfterLayout):
              (khtml::RenderLayer::paintScrollbars):
              (khtml::setClip):
              (khtml::RenderLayer::paintLayer):
              (khtml::RenderLayer::hitTest):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_line.cpp:
              (khtml::InlineFlowBox::paintDecorations):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::paint):
              * khtml/rendering/render_list.h:
              (khtml::RenderListItem::markerStringValue):
              * khtml/rendering/render_object.cpp:
              (RenderObject::addFocusRingRects):
              (RenderObject::paintOutline):
              (RenderObject::setStyle):
              (RenderObject::removeFromObjectLists):
              (RenderObject::remove):
              (RenderObject::backslashAsCurrencySymbol):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::resizeWidget):
              (RenderWidget::sendConsumedMouseUp):
              (RenderWidget::setStyle):
              * khtml/rendering/render_replaced.h:
              * khtml/rendering/render_style.cpp:
              (StyleVisualData::StyleVisualData):
              (StyleCSS3NonInheritedData::operator==):
              (textSizeAdjust):
              (StyleCSS3InheritedData):
              (StyleCSS3InheritedData::operator==):
              (RenderStyle::diff):
              * khtml/rendering/render_style.h:
              (khtml::StyleVisualData::operator==):
              (khtml::RenderStyle::textSizeAdjust):
              (khtml::RenderStyle::setDashboardRegion):
              (khtml::RenderStyle::setTextSizeAdjust):
              * khtml/rendering/render_text.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::~DocumentImpl):
              (DocumentImpl::updateTitle):
              (DocumentImpl::recalcStyle):
              (DocumentImpl::updateRendering):
              (DocumentImpl::attach):
              (DocumentImpl::detach):
              (DocumentImpl::getAccObjectCache):
              (DocumentImpl::updateSelection):
              (DocumentImpl::implicitClose):
              (DocumentImpl::processHttpEquiv):
              (DocumentImpl::updateStyleSelector):
              (DocumentImpl::setFocusNode):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::recalcStyle):
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::NodeImpl::dispatchKeyEvent):
              (DOM::NodeImpl::createRendererIfNeeded):
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_textimpl.h:
              * khtml/xml/dom_xmlimpl.h:
              * khtml/xml/xml_tokenizer.cpp:
              (khtml::Tokenizer::Tokenizer):
              (khtml::Tokenizer::finishedParsing):
              (khtml::XMLTokenizer::error):
              * khtml/xml/xml_tokenizer.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7811b780
  13. 30 Aug, 2005 1 commit
    • darin's avatar
      Reviewed by Maciej. · d4d4de73
      darin authored
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4540
                event handlers for all custom events called when any custom event is set
      
              * layout-tests/dom/html/level2/events/dispatchEvent12-expected.txt: Updated results
              to expect success.
      
              * khtml/xml/EventNames.h: Added.
              * khtml/xml/EventNames.cpp: Added.
              * ForwardingHeaders/xml/EventNames.h: Added.
              * WebCore.xcodeproj/project.pbxproj: Added EventNames.h and EventNames.cpp.
      
              * khtml/xml/dom2_eventsimpl.h: Removed EventId type. Made a few more functions inline.
              * khtml/xml/dom2_eventsimpl.cpp:
              (DOM::EventImpl::EventImpl):
              (DOM::EventImpl::~EventImpl):
              (DOM::EventImpl::initEvent):
              (DOM::UIEventImpl::UIEventImpl):
              (DOM::UIEventImpl::initUIEvent):
              (DOM::MouseRelatedEventImpl::MouseRelatedEventImpl):
              (DOM::MouseEventImpl::MouseEventImpl):
              (DOM::MouseEventImpl::initMouseEvent):
              (DOM::MouseEventImpl::isDragEvent):
              (DOM::KeyboardEventImpl::KeyboardEventImpl):
              (DOM::KeyboardEventImpl::initKeyboardEvent):
              (DOM::KeyboardEventImpl::keyCode):
              (DOM::MutationEventImpl::MutationEventImpl):
              (DOM::MutationEventImpl::initMutationEvent):
              (DOM::ClipboardEventImpl::ClipboardEventImpl):
              (DOM::WheelEventImpl::WheelEventImpl):
              (DOM::RegisteredEventListener::RegisteredEventListener):
              (DOM::RegisteredEventListener::~RegisteredEventListener):
              Updated to use the new AtomicString type rather than a type string and separate ID.
      
              * khtml/xml/dom_atomicstring.h: Implemented the constructor that takes an NSString.
      
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMNode::setListener):
              (KJS::DOMNode::getListener):
              (KJS::DOMNodeProtoFunc::callAsFunction):
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::getNodeEventListener):
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMEventProtoFunc::callAsFunction):
              (KJS::DOMUIEventProtoFunc::callAsFunction):
              (KJS::DOMMouseEvent::getValueProperty):
              (KJS::DOMMouseEventProtoFunc::callAsFunction):
              (KJS::DOMKeyboardEventProtoFunc::callAsFunction):
              (KJS::DOMMutationEventProtoFunc::callAsFunction):
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::Window::put):
              (KJS::Window::setListener):
              (KJS::Window::getListener):
              (KJS::WindowFunc::callAsFunction):
              * khtml/ecma/kjs_window.h:
              * khtml/html/html_baseimpl.cpp:
              (HTMLBodyElementImpl::parseMappedAttribute):
              (HTMLFrameElementImpl::parseMappedAttribute):
              (HTMLFrameSetElementImpl::parseMappedAttribute):
              (HTMLFrameSetElementImpl::detach):
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::parseMappedAttribute):
              (HTMLElementImpl::click):
              (inlineTagList):
              (blockTagList):
              * khtml/html/html_formimpl.cpp:
              (DOM::HTMLFormElementImpl::prepareSubmit):
              (DOM::HTMLFormElementImpl::reset):
              (DOM::HTMLFormElementImpl::parseMappedAttribute):
              (DOM::HTMLGenericFormElementImpl::onSelect):
              (DOM::HTMLGenericFormElementImpl::onChange):
              (DOM::HTMLGenericFormElementImpl::defaultEventHandler):
              (DOM::HTMLButtonElementImpl::parseMappedAttribute):
              (DOM::HTMLButtonElementImpl::defaultEventHandler):
              (DOM::HTMLInputElementImpl::parseMappedAttribute):
              (DOM::HTMLInputElementImpl::setValueFromRenderer):
              (DOM::HTMLInputElementImpl::preDispatchEventHandler):
              (DOM::HTMLInputElementImpl::defaultEventHandler):
              (DOM::HTMLLabelElementImpl::parseMappedAttribute):
              (DOM::HTMLSelectElementImpl::parseMappedAttribute):
              (DOM::HTMLSelectElementImpl::defaultEventHandler):
              (DOM::HTMLTextAreaElementImpl::parseMappedAttribute):
              * khtml/html/html_imageimpl.cpp:
              (HTMLImageLoader::dispatchLoadEvent):
              (HTMLImageElementImpl::parseMappedAttribute):
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::defaultEventHandler):
              * khtml/html/html_objectimpl.cpp:
              (DOM::HTMLObjectElementImpl::parseMappedAttribute):
              (DOM::HTMLObjectElementImpl::attach):
              (DOM::HTMLObjectElementImpl::detach):
              (DOM::HTMLObjectElementImpl::recalcStyle):
              * khtml/khtml_part.cpp:
              (KHTMLPart::init):
              (KHTMLPart::stopLoading):
              * khtml/khtmlview.cpp:
              (KHTMLView::resizeEvent):
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::viewportMouseDoubleClickEvent):
              (KHTMLView::viewportMouseMoveEvent):
              (KHTMLView::viewportMouseReleaseEvent):
              (KHTMLView::dispatchDragEvent):
              (KHTMLView::updateDragAndDrop):
              (KHTMLView::cancelDragAndDrop):
              (KHTMLView::performDragAndDrop):
              (KHTMLView::dispatchMouseEvent):
              * khtml/khtmlview.h:
              * khtml/rendering/render_form.cpp:
              (RenderFormElement::slotClicked):
              (RenderLineEdit::slotPerformSearch):
              (RenderSlider::slotSliderValueChanged):
              * khtml/rendering/render_frames.cpp:
              (RenderFrameSet::userResize):
              * khtml/rendering/render_layer.cpp:
              (khtml::RenderLayer::scrollToOffset):
              * khtml/rendering/render_object.cpp:
              (RenderObject::shouldSelect):
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::sendConsumedMouseUp):
              (RenderWidget::eventFilter):
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::implicitClose):
              (DocumentImpl::setFocusNode):
              (DocumentImpl::defaultEventHandler):
              (DocumentImpl::setHTMLWindowEventListener):
              (DocumentImpl::getHTMLWindowEventListener):
              (DocumentImpl::removeHTMLWindowEventListener):
              (DocumentImpl::addWindowEventListener):
              (DocumentImpl::removeWindowEventListener):
              (DocumentImpl::hasWindowEventListener):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::dispatchAttrRemovalEvent):
              (ElementImpl::dispatchAttrAdditionEvent):
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::NodeImpl::addEventListener):
              (DOM::NodeImpl::removeEventListener):
              (DOM::NodeImpl::removeHTMLEventListener):
              (DOM::NodeImpl::setHTMLEventListener):
              (DOM::NodeImpl::getHTMLEventListener):
              (DOM::NodeImpl::dispatchHTMLEvent):
              (DOM::NodeImpl::dispatchWindowEvent):
              (DOM::NodeImpl::dispatchMouseEvent):
              (DOM::NodeImpl::dispatchUIEvent):
              (DOM::NodeImpl::dispatchSubtreeModifiedEvent):
              (DOM::NodeImpl::handleLocalEvents):
              (DOM::ContainerNodeImpl::removeChild):
              (DOM::ContainerNodeImpl::dispatchChildInsertedEvents):
              (DOM::ContainerNodeImpl::dispatchChildRemovalEvents):
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_textimpl.cpp:
              (CharacterDataImpl::dispatchModifiedEvent):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject mouseButtonListener]):
              * kwq/KWQKHTMLPart.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::canCachePage):
              (KWQKHTMLPart::sendScrollEvent):
              (KWQKHTMLPart::dispatchDragSrcEvent):
              (KWQKHTMLPart::khtmlMouseMoveEvent):
              (KWQKHTMLPart::dragSourceMovedTo):
              (KWQKHTMLPart::dragSourceEndedAt):
              (KWQKHTMLPart::dispatchCPPEvent):
              (KWQKHTMLPart::mayCut):
              (KWQKHTMLPart::mayCopy):
              (KWQKHTMLPart::mayPaste):
              (KWQKHTMLPart::tryCut):
              (KWQKHTMLPart::tryCopy):
              (KWQKHTMLPart::tryPaste):
              (KWQKHTMLPart::sendContextMenuEvent):
              (KWQKHTMLPart::setWindowHasFocus):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView dispatchHTMLEvent:]):
              (-[KWQTextAreaTextView cut:]):
              (-[KWQTextAreaTextView copy:]):
              (-[KWQTextAreaTextView paste:]):
              (-[KWQTextAreaTextView pasteAsPlainText:]):
              (-[KWQTextAreaTextView pasteAsRichText:]):
              Use the new namespace, types, and use AtomicString instead of event ID.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4d4de73
  14. 13 May, 2005 1 commit
    • darin's avatar
      Reviewed by Chris Blumenberg. · 1a76dc44
      darin authored
              - more "getting off the C++ DOM wrappers" changes
                This pass involves replacing uses of DOM::Range with use of DOM::RangeImpl
                plus some more use of DOM::DocumentImpl instead of DOM::Document.
      
              * khtml/dom/dom2_range.cpp:
              * khtml/dom/dom2_range.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::get):
              (KJS::WindowFunc::tryCall):
              (KJS::Window::updateLayout):
              (KJS::ScheduledAction::execute):
              (KJS::Selection::toString):
              * khtml/ecma/xmlhttprequest.cpp:
              (KJS::XMLHttpRequestProtoFunc::tryCall):
              * khtml/editing/htmlediting.cpp:
              (khtml::InsertLineBreakCommand::doApply):
              * khtml/editing/selection.cpp:
              (khtml::Selection::Selection):
              (khtml::Selection::moveTo):
              (khtml::Selection::toRange):
              * khtml/editing/selection.h:
              * khtml/editing/visible_position.cpp:
              (khtml::makeRange):
              (khtml::startVisiblePosition):
              (khtml::endVisiblePosition):
              (khtml::setStart):
              (khtml::setEnd):
              * khtml/editing/visible_position.h:
              * khtml/editing/visible_range.h:
              * khtml/editing/visible_text.cpp:
              (khtml::TextIterator::TextIterator):
              (khtml::TextIterator::range):
              (khtml::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
              (khtml::SimplifiedBackwardsTextIterator::range):
              (khtml::CharacterIterator::CharacterIterator):
              (khtml::CharacterIterator::range):
              (khtml::WordAwareIterator::WordAwareIterator):
              (khtml::WordAwareIterator::advance):
              (khtml::TextIterator::rangeLength):
              (khtml::TextIterator::rangeFromLocationAndLength):
              (khtml::plainText):
              (khtml::findPlainText):
              * khtml/editing/visible_text.h:
              (khtml::WordAwareIterator::range):
              * khtml/editing/visible_units.cpp:
              (khtml::previousBoundary):
              (khtml::nextBoundary):
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::innerText):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::scriptExecution):
              * khtml/khtml_part.cpp:
              (KHTMLPart::text):
              (KHTMLPart::selectedText):
              (KHTMLPart::shouldBeginEditing):
              (KHTMLPart::shouldEndEditing):
              (KHTMLPart::selectionComputedStyle):
              * khtml/khtml_part.h:
              * khtml/khtmlview.h:
              * khtml/rendering/render_text.cpp:
              (InlineTextBox::paint):
              * khtml/xml/dom2_rangeimpl.cpp:
              (DOM::operator==):
              (DOM::rangeOfContents):
              * khtml/xml/dom2_rangeimpl.h:
              (DOM::operator!=):
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::relinquishesEditingFocus):
              (DocumentImpl::acceptsEditingFocus):
              (DocumentImpl::addMarker):
              (DocumentImpl::removeMarker):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_position.cpp:
              (DOM::startPosition):
              * khtml/xml/dom_position.h:
              * kwq/DOMHTML.mm:
              (-[DOMHTMLLinkElement href]):
              (-[DOMHTMLBaseElement href]):
              (-[DOMHTMLInputElement src]):
              (-[DOMHTMLAnchorElement href]):
              (-[DOMHTMLImageElement src]):
              (-[DOMHTMLAreaElement href]):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject textUnderElement]):
              (-[KWQAccObject value]):
              (-[KWQAccObject doAXStringForTextMarkerRange:]):
              (-[KWQAccObject doAXAttributedStringForTextMarkerRange:]):
              * kwq/KWQKHTMLPart.h:
              (KWQKHTMLPart::markedTextRange):
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::findString):
              (KWQKHTMLPart::advanceToNextMisspelling):
              (KWQKHTMLPart::fontForSelection):
              (KWQKHTMLPart::markMisspellings):
              (KWQKHTMLPart::respondToChangedSelection):
              (KWQKHTMLPart::shouldBeginEditing):
              (KWQKHTMLPart::shouldEndEditing):
              (convertAttributesToUnderlines):
              (KWQKHTMLPart::setMarkedTextRange):
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge elementAtPoint:]):
              (-[WebCoreBridge rangeByExpandingSelectionWithGranularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:direction:granularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:verticalDistance:]):
              (-[WebCoreBridge selectedDOMRange]):
              (-[WebCoreBridge convertToNSRange:DOM::]):
              (-[WebCoreBridge convertToDOMRange:]):
              (-[WebCoreBridge convertToObjCDOMRange:]):
              (-[WebCoreBridge selectNSRange:]):
              (-[WebCoreBridge selectedNSRange]):
              (-[WebCoreBridge markDOMRange]):
              (-[WebCoreBridge markedTextDOMRange]):
              (-[WebCoreBridge markedTextNSRange]):
              (-[WebCoreBridge replaceMarkedTextWithText:]):
              (-[WebCoreBridge smartDeleteRangeForProposedRange:]):
              (-[WebCoreBridge dragCaretDOMRange]):
              (-[WebCoreBridge editableDOMRangeForPoint:]):
              (-[WebCoreBridge rangeOfCharactersAroundCaret]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a76dc44
  15. 15 Apr, 2005 1 commit
  16. 13 Dec, 2004 1 commit
    • darin's avatar
      Reviewed by Ken. · ee6da9d3
      darin authored
              - moved markup-related functions into new sources files in the editing directory
              - removed all of the uses of dynamic_cast, preparing to turn off RTTI to make our code smaller and slightly faster
      
              * ForwardingHeaders/editing/markup.h: Added.
              * khtml/editing/markup.h: Added.
              * khtml/editing/markup.cpp: Added.
      
              * WebCore.pbproj/project.pbxproj: Added markup.h/cpp.
      
              * khtml/dom/dom_node.cpp: (Node::toHTML): Call createMarkup since there's no toHTML in NodeImpl any more.
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::innerHTML): Changed to call createMarkup.
              (HTMLElementImpl::outerHTML): Ditto.
      
              * khtml/ecma/kjs_window.cpp:
              (Window::retrieveWindow): Comment out assert that uses dynamic_cast.
              (Window::retrieveActive): Ditto.
      
              * khtml/editing/htmlediting.h: Added forward class declaration needed now that I removed one elsewhere.
              * khtml/xml/dom_docimpl.h: Ditto.
      
              * khtml/khtml_part.cpp:
              (KHTMLPart::slotDebugDOMTree): Use createMarkup instead of toHTML.
              (KHTMLPart::processObjectRequest): Use inherits instead of dynamic_cast.
      
              * khtml/rendering/render_image.cpp: (RenderImage::paint): Add an explicit QChar conversion so this code
              still works even with the additional replace overloads added to QString.
              * kwq/KWQTextCodec.mm: (QTextCodec::fromUnicode): Ditto.
      
              * khtml/rendering/render_object.h: Removed the version of arenaDelete that does not take an object
              base pointer, because it used dynamic_cast in its implementation. Made the other version public.
              * khtml/rendering/render_object.cpp: Ditto.
              * khtml/rendering/render_replaced.cpp: (RenderWidget::deref): Pass object base pointer to arenaDelete.
      
              * khtml/xml/dom2_rangeimpl.h: Removed extra parameters from toHTML, and unneeded includes and declarations.
              * khtml/xml/dom2_rangeimpl.cpp: (DOM::RangeImpl::toHTML): Changed to call createMarkup, and moved all
              the support code into markup.cpp.
      
              * khtml/xml/dom_nodeimpl.h: Moved toHTML and related functions into markup.cpp.
              * khtml/xml/dom_nodeimpl.cpp: Ditto.
      
              * khtml/xml/dom_position.cpp:
              (DOM::startPosition): Implemented the version of this that takes a RangeImpl. Also added null checks
              so these return null positions rather than raising exceptions.
              (DOM::endPosition): Ditto.
      
              * khtml/khtmlview.h: Added an APPLE_CHANGES function so inherits can detect this class without dynamic_cast.
              * kwq/KWQFrame.h: Ditto.
              * kwq/KWQFrame.mm: (QFrame::isQFrame): Ditto.
              * kwq/KWQKPartsPart.h: Ditto.
              * kwq/KWQKPartsPart.mm: (KParts::ReadOnlyPart::isKPartsReadOnlyPart): Ditto.
              * kwq/KWQScrollView.h: Ditto.
              * kwq/KWQScrollView.mm: (QScrollView::isQScrollView): Ditto.
              * kwq/KWQKHTMLPart.h: Ditto.
              * kwq/KWQKHTMLPart.mm:
              (KHTMLView::isKHTMLView): Ditto.
              (KWQKHTMLPart::setTitle): Added an explicit QChar conversion so this code still works even with the additional
              replace overloads added to QString.
              (KWQKHTMLPart::setStatusBarText): Ditto.
              (KWQKHTMLPart::runJavaScriptAlert): Ditto.
              (KWQKHTMLPart::runJavaScriptConfirm): Ditto.
              (KWQKHTMLPart::runJavaScriptPrompt): Ditto.
              (KWQKHTMLPart::attributedString): Ditto.
              (KWQKHTMLPart::isCharacterSmartReplaceExempt): Ditto.
              (KWQKHTMLPart::isKHTMLPart): That dynamic_cast thing (see above).
      
              * kwq/KWQObject.h: Added virtual methods for the few cases where we need dynamic_cast-like behavior.
              * kwq/KWQObject.mm:
              (QObject::inherits): Changed to not use dynamic cast.
              (QObject::isKHTMLPart): Added. Returns false.
              (QObject::isKHTMLView): Ditto.
              (QObject::isKPartsReadOnlyPart): Ditto.
              (QObject::isQFrame): Ditto.
              (QObject::isQScrollView): Ditto.
      
              * kwq/KWQRenderTreeDebug.cpp:
              (write): Changed to use inherits rather than dynamic_cast.
              (writeSelection): Ditto.
      
              * kwq/KWQSlot.mm: (KWQSlot::call): Call through to the version with just a job pointer parameter rather
              than going straight on to the "no parameters at all" version.
      
              * kwq/KWQString.h:
              * kwq/KWQString.mm: (QString::replace): Added overloads.
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge markupStringFromNode:nodes:]): Changed to call functions in markup.h.
              (-[WebCoreBridge markupStringFromRange:nodes:]): Ditto.
              (-[WebCoreBridge selectedString]): Added an explicit QChar conversion so this code still works even with
              the additional replace overloads added to QString.
              (-[WebCoreBridge stringForRange:]): Ditto.
              (-[WebCoreBridge copyDOMNode:copier:]): Changed to call functions in markup.h.
              (-[WebCoreBridge elementAtPoint:]): QChar conversion.
              (-[WebCoreBridge documentFragmentWithMarkupString:baseURLString:]): Changed to call functions in markup.h.
              (-[WebCoreBridge documentFragmentWithText:]): Changed to call functions in markup.h.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@8198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee6da9d3
  17. 17 Nov, 2004 1 commit
    • hyatt's avatar
      Improve responsiveness by being willing to break out of the tokenizer. (This... · effa5726
      hyatt authored
      	Improve responsiveness by being willing to break out of the tokenizer.  (This patch was landed already
      	and subsequently backed out).
      
              Reviewed by kocienda
      
              * khtml/html/html_baseimpl.cpp:
              (HTMLBodyElementImpl::insertedIntoDocument):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::reset):
              (khtml::HTMLTokenizer::scriptHandler):
              (khtml::HTMLTokenizer::scriptExecution):
              (khtml::HTMLTokenizer::write):
              (khtml::HTMLTokenizer::continueProcessing):
              (khtml::HTMLTokenizer::timerEvent):
              (khtml::HTMLTokenizer::notifyFinished):
              * khtml/html/htmltokenizer.h:
              * khtml/khtmlview.cpp:
              (KHTMLViewPrivate::KHTMLViewPrivate):
              (KHTMLViewPrivate::reset):
              (KHTMLView::clear):
              (KHTMLView::layout):
              (KHTMLView::timerEvent):
              (KHTMLView::scheduleRelayout):
              (KHTMLView::layoutPending):
              (KHTMLView::haveDelayedLayoutScheduled):
              (KHTMLView::unscheduleRelayout):
              * khtml/khtmlview.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::close):
              (DocumentImpl::setParsing):
              (DocumentImpl::shouldScheduleLayout):
              (DocumentImpl::minimumLayoutDelay):
              (DocumentImpl::write):
              (DocumentImpl::finishParsing):
              (DocumentImpl::stylesheetLoaded):
              (DocumentImpl::updateStyleSelector):
              * khtml/xml/dom_docimpl.h:
              (DOM::DocumentImpl::parsing):
              * kwq/KWQDateTime.mm:
              (KWQUIEventTime::uiEventPending):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@8031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      effa5726
  18. 23 Sep, 2004 1 commit
    • rjw's avatar
      Fixed <rdar://problem/3813271> dashboard-region-circle and... · fad119dc
      rjw authored
      	Fixed <rdar://problem/3813271> dashboard-region-circle and dashboard-region-rectangle should be collapsed into dashboard-region
      	Fixed <rdar://problem/3813289> dashboard regions need to correctly account for overflow/scrolling
      
              Reviewed by Chris.
      
              * khtml/css/css_valueimpl.cpp:
              (CSSPrimitiveValueImpl::cssText):
              * khtml/css/css_valueimpl.h:
              * khtml/css/cssparser.cpp:
              (CSSParser::parseValue):
              (skipCommaInDashboardRegion):
              (CSSParser::parseDashboardRegions):
              * khtml/khtmlview.cpp:
              (KHTMLView::layout):
              (KHTMLView::updateDashboardRegions):
              * khtml/khtmlview.h:
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::scrollToOffset):
              * khtml/rendering/render_object.cpp:
              (RenderObject::addDashboardRegions):
              * khtml/rendering/render_object.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::dashboardRegionsChanged):
              * kwq/WebDashboardRegion.h:
              * kwq/WebDashboardRegion.m:
              (-[WebDashboardRegion initWithRect:clip:type:]):
              (-[WebDashboardRegion dashboardRegionClip]):
              (-[WebDashboardRegion description]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fad119dc
  19. 16 Aug, 2004 1 commit
    • hyatt's avatar
      Land initial support for XSLT using xml-stylesheet PIs. · 2d69434e
      hyatt authored
              * WebCore.pbproj/project.pbxproj:
              * khtml/khtml_part.cpp:
              (KHTMLPart::replaceDocImpl):
              * khtml/khtml_part.h:
              * khtml/khtmlview.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::~DocumentImpl):
              (DocumentImpl::recalcStyleSelector):
              (DocumentImpl::applyXSLTransform):
              (DocumentImpl::setTransformSourceDocument):
              * khtml/xml/dom_docimpl.h:
              (DOM::DocumentImpl::setTransformSource):
              (DOM::DocumentImpl::transformSource):
              (DOM::DocumentImpl::transformSourceDocument):
              * khtml/xml/dom_xmlimpl.cpp:
              (DOM::ProcessingInstructionImpl::checkStyleSheet):
              * khtml/xml/dom_xmlimpl.h:
              (DOM::ProcessingInstructionImpl::isXSL):
              * khtml/xml/xml_tokenizer.cpp:
              (khtml::matchFunc):
              (khtml::openFunc):
              (khtml::createQStringParser):
              (khtml::XMLTokenizer::processingInstruction):
              (khtml::XMLTokenizer::finish):
              (khtml::XMLTokenizer::setTransformSource):
              * khtml/xml/xml_tokenizer.h:
              (khtml::Tokenizer::setTransformSource):
              * khtml/xml/xsl_stylesheetimpl.cpp: Removed.
              * khtml/xml/xsl_stylesheetimpl.h: Removed.
              * khtml/xsl/xsl_stylesheetimpl.cpp: Added.
              (DOM::XSLStyleSheetImpl::XSLStyleSheetImpl):
              (DOM::XSLStyleSheetImpl::~XSLStyleSheetImpl):
              (DOM::XSLStyleSheetImpl::isLoading):
              (DOM::XSLStyleSheetImpl::checkLoaded):
              (DOM::XSLStyleSheetImpl::docLoader):
              (DOM::XSLStyleSheetImpl::parseString):
              * khtml/xsl/xsl_stylesheetimpl.h: Added.
              (DOM::XSLStyleSheetImpl::isXSLStyleSheet):
              (DOM::XSLStyleSheetImpl::type):
              (DOM::XSLStyleSheetImpl::ownerDocument):
              (DOM::XSLStyleSheetImpl::document):
              (DOM::XSLStyleSheetImpl::clearDocument):
              * khtml/xsl/xslt_processorimpl.cpp: Added.
              (DOM::m_sourceDocument):
              (DOM::XSLTProcessorImpl::~XSLTProcessorImpl):
              (DOM::XSLTProcessorImpl::transformDocument):
              (DOM::bufferWrite):
              (DOM::XSLTProcessorImpl::addToResult):
              (DOM::XSLTProcessorImpl::documentFromXMLDocPtr):
              * khtml/xsl/xslt_processorimpl.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@7266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d69434e
  20. 24 Jun, 2004 1 commit
    • trey's avatar
      3679986 - screenX and screenY are flipped and relative to the bottom left of... · 45ab4654
      trey authored
      	3679986 - screenX and screenY are flipped and relative to the bottom left of the WebView, rather than the screen
      	3699510 - synthesized click events have bogus screen coords
      
              Reviewed by Darin.
      
              * khtml/khtmlview.cpp:
              (KHTMLView::dispatchDragEvent):  Generate screen coords for drag events using new func.
              (KHTMLView::dispatchMouseEvent):   Ditto.
              * khtml/khtmlview.h:
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeImpl::dispatchMouseEvent):  Comment tricky semantics.
      	Calc screen coords in apple-specific way.
              * kwq/KWQKHTMLView.mm:
              (KHTMLView::viewportToGlobal):  Passthrough to window widget.
              * kwq/KWQScrollView.mm:
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::mapToGlobal):  Call former code factored to new method below.
              (KWQWindowWidget::viewportToGlobal):  New method to convert "viewport" (which for us
      	really means NSWindow coords) to screen coords.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45ab4654
  21. 27 May, 2004 1 commit
    • trey's avatar
      WebCore: · 1790581e
      trey authored
       	First cut at DHTML dragging, destination side.  Dragging text, files
              and URLs onto elements works.  Type conversion from NSPasteboard to
      	MIME types is hardwired.  No JS access yet to modifier keys, or
      	drag operations mask.
      
      	Per IE's dragging API, we have the new DOM events ondragenter,
      	ondragover, ondragleave and ondrop.
      	We also have an event.dataTransfer object providing access to the
      	NSPasteboard bearing the incoming data.
      
              Reviewed by rjw.
      
              * WebCore.pbproj/project.pbxproj:  add 2 new files.
              * khtml/ecma/kjs_dom.cpp:
              (DOMNode::getValueProperty):  JS access to ondragenter and pals
              (DOMNode::putValue):  Ditto
              * khtml/ecma/kjs_dom.h:
              (KJS::DOMNode::):  New attr enum values.
              * khtml/ecma/kjs_dom.lut.h:
              (KJS::):
              * khtml/ecma/kjs_events.cpp:
              (DOMMouseEvent::mark):  Pass along mark to dataTransfer we hold.
              (DOMMouseEvent::getValueProperty):  Create and return dataTransfer.
              (Clipboard::Clipboard):  New class exposed in JS.
              (Clipboard::~Clipboard):
              (Clipboard::tryGet):  Boilerplate.
              (Clipboard::getValueProperty):  Return the clipboard's props.
              (Clipboard::tryPut):  Boilerplate.
              (Clipboard::putValue):  Set the clipboard's props.
              (ClipboardProtoFunc::tryCall): Implement clipboard's funcs.
              * khtml/ecma/kjs_events.h:
              (KJS::DOMMouseEvent::DOMMouseEvent):  Init clipboard ptr.
              (KJS::DOMMouseEvent::):
              (KJS::Clipboard::toBoolean):
              (KJS::Clipboard::classInfo):
              (KJS::Clipboard::):
              * khtml/ecma/kjs_events.lut.h:
              (KJS::):
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::parseHTMLAttribute):  Enable setting ondragenter
      	and friends as html attributes.
              * khtml/khtmlview.cpp:
              (KHTMLView::dispatchDragEvent):  Send a drag related event to the DOM.
              (KHTMLView::updateDragAndDrop):  Handle a dragenter or dragupdate.
              (KHTMLView::cancelDragAndDrop):  Handle a dragexit.
              (KHTMLView::performDragAndDrop):  Handle an actual drop.
              * khtml/khtmlview.h:
              * khtml/misc/htmlattrs.c:  Generated code.
              * khtml/misc/htmlattrs.h:  Generated code.
              * khtml/misc/htmlattrs.in:  Add ondragenter, etc
              * khtml/xml/dom2_eventsimpl.cpp:
              (EventImpl::typeToId):  Handle new event types for dragging.
              (EventImpl::idToType):  Ditto.
              (MouseEventImpl::MouseEventImpl):  Init new clipboard ptr.
              (MouseEventImpl::~MouseEventImpl):  Deref clipboard.
              (ClipboardImpl::ClipboardImpl):
              (ClipboardImpl::~ClipboardImpl):
              * khtml/xml/dom2_eventsimpl.h:
              (DOM::EventImpl::):  New event enums.
              (DOM::MouseEventImpl::clipboard):
              * kwq/KWQClipboard.h: Added.
              * kwq/KWQClipboard.mm: Added.
              (KWQClipboard::KWQClipboard):
              (KWQClipboard::~KWQClipboard):
              (KWQClipboard::isForDragging): Trivial getter/setters.
              (KWQClipboard::dropEffect):
              (KWQClipboard::setDropEffect):
              (KWQClipboard::dropAllowed):
              (KWQClipboard::setDropAllowed):
              (cocoaTypeFromMIMEType):  Convert MIME pboard type to Cocoa type.
              (KWQClipboard::clearData):  OSX specific clipboard impl. of IE func
              (KWQClipboard::clearAllData):   Ditto
              (KWQClipboard::getData): Ditto
              (KWQClipboard::setData): Ditto
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge dragOperationForDraggingInfo:]):  Passthrough from WebKit to khtmlpart
              (-[WebCoreBridge dragExitedWithDraggingInfo:]):  Ditto
              (-[WebCoreBridge concludeDragForDraggingInfo:]): Ditto
      
      WebKit:
      
      	First cut at DHTML dragging, destination side.  Dragging text, files and URLs onto
      	elements works.  Type conversion from NSPasteboard to MIME types is hardwired.
      	No JS access yet to modifier keys, or operations mask.
      
              Reviewed by Chris.
      
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView draggingUpdatedWithDraggingInfo:]): Call DHTML dragging via bridge.
              (-[WebHTMLView draggingCancelledWithDraggingInfo:]): Ditto.
              (-[WebHTMLView concludeDragForDraggingInfo:]): Ditto.
              * WebView.subproj/WebHTMLViewPrivate.h:
              * WebView.subproj/WebView.m:
              (-[WebView _setWebKitDragRespondsToDragging:]):  New SPI for finer grained control than the
      	delegate currently has.
              (-[WebView _webKitDragRespondsToDragging]): Ditto.
              (-[WebView _commonInitializationWithFrameName:groupName:]):  Init new flag.
              (-[WebView _dragOperationForDraggingInfo:]):  Comment.
              * WebView.subproj/WebViewPrivate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1790581e
  22. 23 May, 2004 1 commit
    • darin's avatar
      Reviewed by Ken. · fb958e8b
      darin authored
              - went through things marked "unimplemented" or "not implemented" and removed
                or implemented as many as possible
      
              * kwq/DOM.mm: (-[DOMNode dispatchEvent:]): Implemented.
              Also moved DOMAbstractView and DOMDocumentView into DOMViews.mm.
              * kwq/DOM-CSS.mm: (-[DOMDocument getComputedStyle::]): Implemented.
      
              * kwq/DOMEventsInternal.h: Added.
              * kwq/DOMEvents.mm:
              (-[DOMEvent type]): Implemented.
              (-[DOMEvent target]): Implemented.
              (-[DOMEvent currentTarget]): Implemented.
              (-[DOMEvent eventPhase]): Implemented.
              (-[DOMEvent bubbles]): Implemented.
              (-[DOMEvent cancelable]): Implemented.
              (-[DOMEvent timeStamp]): Implemented.
              (-[DOMEvent stopPropagation]): Implemented.
              (-[DOMEvent preventDefault]): Implemented.
              (-[DOMEvent initEvent:::]): Implemented.
              (-[DOMEvent _eventImpl]): Added.
              (-[DOMEvent _initWithEventImpl:]): Added.
              (+[DOMEvent _eventWithImpl:]): Added.
              (-[DOMMouseEvent _mouseEventImpl]): Added.
              (-[DOMMouseEvent screenX]): Implemented.
              (-[DOMMouseEvent screenY]): Implemented.
              (-[DOMMouseEvent clientX]): Implemented.
              (-[DOMMouseEvent clientY]): Implemented.
              (-[DOMMouseEvent ctrlKey]): Implemented.
              (-[DOMMouseEvent shiftKey]): Implemented.
              (-[DOMMouseEvent altKey]): Implemented.
              (-[DOMMouseEvent metaKey]): Implemented.
              (-[DOMMouseEvent button]): Implemented.
              (-[DOMMouseEvent relatedTarget]): Implemented.
              (-[DOMMouseEvent initMouseEvent:::::::::::::::]): Implemented.
              (-[DOMMutationEvent _mutationEventImpl]): Added.
              (-[DOMMutationEvent relatedNode]): Implemented.
              (-[DOMMutationEvent prevValue]): Implemented.
              (-[DOMMutationEvent newValue]): Implemented.
              (-[DOMMutationEvent attrName]): Implemented.
              (-[DOMMutationEvent attrChange]): Implemented.
              (-[DOMMutationEvent initMutationEvent::::::::]):
              (-[DOMUIEvent _UIEventImpl]): Added.
              (-[DOMUIEvent view]): Implemented.
              (-[DOMUIEvent detail]): Implemented.
              (-[DOMUIEvent initUIEvent:::::]): Implemented.
              (-[DOMDocument createEvent:]): Implemented.
      
              * kwq/DOMHTMLInternal.h: Added.
              * kwq/DOMHTML.mm:
              (+[DOMHTMLOptionsCollection _optionsCollectionWithImpl:]): Added.
              (-[DOMHTMLOptionsCollection length]): Implemented.
              (-[DOMHTMLOptionsCollection setLength:]): Implemented.
              (-[DOMHTMLOptionsCollection item:]): Implemented.
              (-[DOMHTMLOptionsCollection namedItem:]): Implemented.
              (-[DOMHTMLSelectElement options]): Implemented.
      
              * kwq/DOMViews.h: Changed DOMDocumentView to be a category on DOMDocument
              rather than a separate class.
              * kwq/DOMViewsInternal.h: Added.
              * kwq/DOMViews.mm: Added.
              (-[DOMAbstractView document]): Implemnted.
              (-[DOMAbstractView _abstractViewImpl]): Added.
              (-[DOMAbstractView _initWithAbstractViewImpl:]): Added.
              (+[DOMAbstractView _abstractViewWithImpl:]): Added.
              (-[DOMDocument defaultView]): Implemented.
      
              * khtml/dom/dom2_views.h: Made AbstractView constructor public to allow creation in
              the bindings. Would not be necessary if the impl classes were used consistently.
      
              * khtml/html/html_formimpl.h: Added options() function to HTMLSelectElementImpl.
              Added HTMLOptionsCollectionImpl class.
              * khtml/html/html_formimpl.cpp:
              (HTMLSelectElementImpl::~HTMLSelectElementImpl): Added code to detach and deref the
              options collection.
              (HTMLSelectElementImpl::options): Create an options collection if needed.
              (HTMLOptionsCollectionImpl::length): Added. Not yet implemented.
              (HTMLOptionsCollectionImpl::setLength): Ditto.
              (HTMLOptionsCollectionImpl::item): Ditto.
              (HTMLOptionsCollectionImpl::namedItem): Ditto.
      
              * khtml/khtmlview.h: Move unused focusNextPrevChild virtual function inside !APPLE_CHANGES.
              * khtml/khtmlview.cpp: Put the tp, paintBuffer, and formCompletions fields entirely
              inside !APPLE_CHANGES. Also made QT_NO_TOOLTIP entirely disable the tooltip field.
              Also put focusNextPrevChild and formCompletionItems functions inside !APPLE_CHANGES.
      
              * khtml/rendering/render_text.h: Removed unused isFixedWidthFont member function.
              * khtml/rendering/render_text.cpp: Ditto.
      
              * kwq/KWQCursor.h: Removed unused pos member function.
              * kwq/KWQCursor.mm: Ditto.
      
              * kwq/KWQFontMetrics.h: Removed unused rightBearing and leftBearing member functions.
              * kwq/KWQFontMetrics.mm: Ditto.
      
              * kwq/KWQKComboBox.h: Removed KCompletionBase as a base class.
      
              * kwq/KWQKConfigBase.h: Removed unused readBoolEntry, writeEntry, and readListEntry
              member functions.
              * kwq/KWQKConfigBase.mm: Ditto.
              (KConfig::readEntry): Improved "not implemented" message to indicate which key is uinimplemented.
              (KConfig::readNumEntry): Ditto.
              (KConfig::readUnsignedNumEntry): Ditto.
      
              * kwq/KWQKLineEdit.h: Removed everything, since all the KLineEdit stuff was unused.
              Changed KLineEdit to just be a typedef for QLineEdit.
      
              * kwq/KWQSlot.mm: Removed slotAutoScroll.
              (KWQSlot::KWQSlot): And from here.
              (KWQSlot::call): And from here.
      
              * kwq/KWQTextStream.h: Removed unused QTextOStream and QTextIStream.
              * kwq/KWQTextStream.mm: Removed unused QTextIStream function. Also made buffer sizes larger
              so we don't have any problems on 64-bit systems. 10 bytes might not be long enough to sprintf an
              integer or a long or a pointer, but 100 bytes surely will.
      
              * kwq/KWQWidget.h: Removed unused focusNextPrevChild.
              * kwq/KWQWidget.mm: Ditto.
      
              * WebCore.pbproj/project.pbxproj: Removed some files, added others.
      
              * ForwardingHeaders/kcompletionbox.h: Emptied out, no KWQKCompletionBox.h any more.
              * ForwardingHeaders/kiconloader.h: Emptied out, no KWQKIconLoader.h any more.
              * ForwardingHeaders/kmimetype.h: Emptied out, no KWQKMimeType.h any more.
              * ForwardingHeaders/ksimpleconfig.h: Emptied out, no KWQKSimpleConfig.h any more.
              * ForwardingHeaders/qfontinfo.h: Emptied out, no KWQFontInfo.h any more.
              * ForwardingHeaders/qtooltip.h: Replaced with define of QT_NO_TOOLTIP, no
              KWQToolTip.h any more.
      
              * kwq/KWQCompletion.h: Removed.
              * kwq/KWQCompletion.mm: Removed.
              * kwq/KWQFontInfo.h: Removed.
              * kwq/KWQFontInfo.mm: Removed.
              * kwq/KWQKCompletionBox.h: Removed.
              * kwq/KWQKIconLoader.h: Removed.
              * kwq/KWQKIconLoader.mm: Removed.
              * kwq/KWQKMimeType.h: Removed.
              * kwq/KWQKMimeType.mm: Removed.
              * kwq/KWQKSimpleConfig.h: Removed.
              * kwq/KWQKSimpleConfig.mm: Removed.
              * kwq/KWQToolTip.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb958e8b
  23. 20 May, 2004 1 commit
    • darin's avatar
      WebCore: · 849ae734
      darin authored
              Reviewed by Chris.
      
              - fixed <rdar://problem/3662383>: (REGRESSION: drag slide-back sometimes causes link to load)
              - fixed <rdar://problem/3662556>: (REGRESSION: letting up mouse while dragging over link activates the link)
      
              * khtml/khtmlview.h: Added invalidateClick.
              * khtml/khtmlview.cpp: (KHTMLView::invalidateClick): Added. Sets clickCount to 0.
      
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::matchLabelsAgainstElement): Changed a string replace to a character replace for slightly
              faster code and smaller code size.
              (KWQKHTMLPart::khtmlMouseMoveEvent): Call invalidateClick at the appropriate times. To do this correctly,
              had to add a boolean result to handleMouseDragged: so I can tell if a drag started or not (due to hysteresis).
              (KWQKHTMLPart::attributedString): Changed a string append to a character append for slightly faster code
              and smaller code size.
      
              * kwq/WebCoreBridge.h: Added BOOL result to handleMouseDragged:.
      
              Reviewed by Dave.
      
              - handle rules with empty bodies properly
      
              * khtml/css/parser.y: Remove bogus check for empty body that prevents the rule
              from being created.
              * khtml/css/parser.cpp: Regenerated.
      
      WebKit:
      
              Reviewed by Chris.
      
              - fixed <rdar://problem/3662383>: (REGRESSION: drag slide-back sometimes causes link to load)
      
              * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge handleMouseDragged:]):
              Added BOOL result to handleMouseDragged:.
              * WebView.subproj/WebHTMLViewPrivate.h: Added BOOL result to _handleMouseDragged:.
      
              * WebView.subproj/WebHTMLView.m: (-[WebHTMLView _handleMouseDragged:]): Added BOOL result,
              returning YES when the drag started, and no when the hysteresis has not yet been overcome.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      849ae734
  24. 18 May, 2004 2 commits
    • hyatt's avatar
      Add two new attributes for accessibility that can be polled by the screen... · 5621ca53
      hyatt authored
      	Add two new attributes for accessibility that can be polled by the screen reader.  AXLayoutCount indicates
      	the number of layouts that have occurred, and AXLoaded indicates whether or not a page has finished loading.
      
              * khtml/khtmlview.cpp:
              (KHTMLViewPrivate::reset):
              (KHTMLView::layoutCount):
              (KHTMLView::layout):
              * khtml/khtmlview.h:
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject roleDescription]):
              (-[KWQAccObject accessibilityAttributeNames]):
              (-[KWQAccObject accessibilityAttributeValue:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5621ca53
    • hyatt's avatar
      WebCore: · b478f409
      hyatt authored
      	Improve layout scheduling and add instrumentation for debugging layout scheduling
      
              Reviewed by kocienda
      
              * khtml/khtml_part.cpp:
              (KHTMLPart::slotFinishedParsing):
              (KHTMLPart::checkCompleted):
              * khtml/khtmlview.cpp:
              (KHTMLViewPrivate::KHTMLViewPrivate):
              (KHTMLViewPrivate::reset):
              (KHTMLView::layout):
              (KHTMLView::scheduleRelayout):
              (KHTMLView::haveDelayedLayoutScheduled):
              (KHTMLView::unscheduleRelayout):
              * khtml/khtmlview.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::repaintAfterLayoutIfNeeded):
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::updateWidgetPositions):
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::close):
              (DocumentImpl::setParsing):
              (DocumentImpl::shouldScheduleLayout):
              (DocumentImpl::minimumLayoutDelay):
              (DocumentImpl::elapsedTime):
              (DocumentImpl::finishParsing):
              (DocumentImpl::updateStyleSelector):
              * khtml/xml/dom_docimpl.h:
              (DOM::DocumentImpl::allDataReceived):
              * kwq/KWQDateTime.h:
              * kwq/KWQDateTime.mm:
              (QTime::elapsed):
              * kwq/KWQWidget.mm:
              (QWidget::setFrameGeometry):
      
      WebKit:
      
      	Improve layout scheduling.
      
              Reviewed by kocienda
      
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _transitionToLayoutAcceptable]):
              (-[WebFrame _checkLoadCompleteForThisFrame]):
              * WebView.subproj/WebHTMLRepresentation.m:
              (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b478f409
  25. 09 Apr, 2004 1 commit
    • darin's avatar
      WebCore: · c607fd45
      darin authored
              Reviewed by Ken.
      
              - added "transparent mode"
      
              * khtml/khtmlview.h: Added isTransparent and setTransparent functions.
              * khtml/khtmlview.cpp:
              (KHTMLViewPrivate::KHTMLViewPrivate): Initialize isTransparent to false.
              (KHTMLView::isTransparent): Return isTransparent.
              (KHTMLView::setTransparent): Set isTransparent.
      
              * khtml/rendering/render_box.cpp:
              (RenderBox::paintRootBoxDecorations): Use slow repaints for the top frame when the view
              is transparent; also don't draw a background. This is the same thing we do for subframes.
              (RenderBox::paintBackgroundExtended): Don't do the extra draw so we can blend with the
              background color for the top frame when the view is transparent.
              * khtml/rendering/render_canvas.cpp: (RenderCanvas::paintBoxDecorations): More of the same.
      
              * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::paint): Make "fill with red" debug mode work only
              when the view is not transparent.
      
              * kwq/WebCoreBridge.h: Added setDrawsBackground: method.
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge setDrawsBackground:]): If told NO
              (don't draw background), then set isTransparent to true on the KHTMLView.
      
      WebKit:
      
              Reviewed by Ken.
      
              - added "transparent mode"
      
              * WebView.subproj/WebFrameInternal.h: Added. Contains _updateDrawsBackground.
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _makeDocumentView]): Call _updateDrawsBackground to tell the newly created
              KHTMLView whether to draw a background or not.
              (-[WebFrame _setState:]): Don't tell the scroll view to start drawing background if the
              WebView is not supposed to draw a background.
              (-[WebFrame _updateDrawsBackground]): Call setDrawsBackground: on the bridge, and do the
              same for all subframes.
      
              * WebView.subproj/WebFrameView.m: (-[WebFrameView setFrameSize:]): Only call setDrawsBackground:YES
              on the scroll view if the WebView has drawsBackground set to YES.
      
              * WebView.subproj/WebViewPrivate.h: Added new proposed API, setDrawsBackground and drawsBackground.
              Also added drawsBackground boolean to private structure.
              * WebView.subproj/WebView.m:
              (-[WebView _commonInitializationWithFrameName:groupName:]): Set drawsBackground to YES by default.
              (-[WebView setDrawsBackground:]): Added. Sets boolean and calls _updateDrawsBackground to update
              the flag for each frame.
              (-[WebView drawsBackground]): Added. Returns value of boolean.
              (-[WebView _bridgeForCurrentSelection]): Tweaked comment for no good reason.
      
              * WebView.subproj/WebViewInternal.h: Added, but empty for the moment.
              * WebView.subproj/WebFramePrivate.h: Tweaked a bit.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c607fd45
  26. 23 Feb, 2004 1 commit
    • hyatt's avatar
      Fix for 3558717, make sure that form elements that are removed from a... · 0c3a9867
      hyatt authored
      	Fix for 3558717, make sure that form elements that are removed from a document also remove themselves
      	from the form.
      
      	Reviewed by darin.
      
              * khtml/html/html_formimpl.cpp:
              (HTMLGenericFormElementImpl::removedFromDocument):
              * khtml/html/html_formimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_nodeimpl.h:
      
      	Implement smarter line layout for faster typing and repainting when individual lines change.
      
      	Reviewed by kocienda.
      
      	* khtml/khtmlview.cpp:
              (KHTMLViewPrivate::KHTMLViewPrivate):
              (KHTMLViewPrivate::~KHTMLViewPrivate):
              (KHTMLViewPrivate::reset):
              (KHTMLView::addRepaintInfo):
              (KHTMLView::layout):
              * khtml/khtmlview.h:
              * khtml/rendering/bidi.cpp:
              (khtml::Bidinext):
              (khtml::appendRun):
              (khtml::embed):
              (khtml::RenderBlock::constructLine):
              (khtml::RenderBlock::computeHorizontalPositionsForLine):
              (khtml::RenderBlock::computeVerticalPositionsForLine):
              (khtml::RenderBlock::bidiReorderLine):
              (khtml::buildCompactRuns):
              (khtml::RenderBlock::layoutInlineChildren):
              (khtml::RenderBlock::determineStartPosition):
              (khtml::RenderBlock::determineEndPosition):
              (khtml::RenderBlock::matchedEndLine):
              (khtml::RenderBlock::findNextLineBreak):
              * khtml/rendering/render_block.cpp:
              (khtml:::RenderFlow):
              (khtml::RenderBlock::layoutBlock):
              (khtml::RenderBlock::layoutBlockChildren):
              (khtml::RenderBlock::positionNewFloats):
              (khtml::RenderBlock::lowestPosition):
              (khtml::RenderBlock::rightmostPosition):
              (khtml::RenderBlock::leftmostPosition):
              * khtml/rendering/render_block.h:
              (khtml::RenderBlock::firstRootBox):
              (khtml::RenderBlock::lastRootBox):
              (khtml::RenderBlock::setLinesAppended):
              (khtml::RenderBlock::linesAppended):
              * khtml/rendering/render_box.cpp:
              (RenderBox::dirtyLineBoxes):
              (RenderBox::deleteLineBoxWrapper):
              (RenderBox::setInlineBoxWrapper):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_br.cpp:
              (RenderBR::createInlineBox):
              (RenderBR::position):
              * khtml/rendering/render_br.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::appendChildNode):
              (RenderContainer::insertChildNode):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::placeChild):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::extractLineBox):
              (RenderFlow::attachLineBox):
              (RenderFlow::removeLineBox):
              (RenderFlow::dirtyLinesFromChangedChild):
              (RenderFlow::dirtyLineBoxes):
              (RenderFlow::createInlineBox):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_line.cpp:
              (InlineBox::dirtyLineBoxes):
              (InlineBox::deleteLine):
              (InlineBox::extractLine):
              (InlineBox::attachLine):
              (InlineBox::adjustVerticalPosition):
              (InlineBox::root):
              (InlineBox::nextOnLineExists):
              (InlineBox::prevOnLineExists):
              (InlineFlowBox::removeChild):
              (InlineFlowBox::deleteLine):
              (InlineFlowBox::extractLine):
              (InlineFlowBox::attachLine):
              (InlineFlowBox::adjustVerticalPosition):
              (InlineFlowBox::verticallyAlignBoxes):
              (InlineFlowBox::adjustMaxAscentAndDescent):
              (RootInlineBox::adjustVerticalPosition):
              (RootInlineBox::childRemoved):
              * khtml/rendering/render_line.h:
              (khtml::InlineBox::m_extracted):
              (khtml::InlineBox::setExtracted):
              (khtml::InlineBox::object):
              (khtml::InlineBox::parent):
              (khtml::InlineBox::isDirty):
              (khtml::InlineBox::markDirty):
              (khtml::InlineFlowBox::prevFlowBox):
              (khtml::InlineFlowBox::nextFlowBox):
              (khtml::RootInlineBox::RootInlineBox):
              (khtml::RootInlineBox::nextRootBox):
              (khtml::RootInlineBox::prevRootBox):
              (khtml::RootInlineBox::setLineBreakInfo):
              (khtml::RootInlineBox::setLineBreakPos):
              (khtml::RootInlineBox::setBlockHeight):
              (khtml::RootInlineBox::setEndsWithBreak):
              (khtml::RootInlineBox::blockHeight):
              (khtml::RootInlineBox::endsWithBreak):
              (khtml::RootInlineBox::lineBreakObj):
              (khtml::RootInlineBox::lineBreakPos):
              * khtml/rendering/render_object.cpp:
              (RenderObject::repaintAfterLayoutIfNeeded):
              (RenderObject::repaintObjectsBeforeLayout):
              (RenderObject::dirtyLinesFromChangedChild):
              (RenderObject::createInlineBox):
              (RenderObject::dirtyLineBoxes):
              (RenderObject::setInlineBoxWrapper):
              (RenderObject::deleteLineBoxWrapper):
              * khtml/rendering/render_object.h:
              (khtml::RenderObject::RepaintInfo::m_repaintRect):
              * khtml/rendering/render_table.cpp:
              (RenderTableSection::layoutRows):
              * khtml/rendering/render_text.cpp:
              (InlineTextBox::deleteLine):
              (InlineTextBox::extractLine):
              (InlineTextBox::attachLine):
              (RenderText::RenderText):
              (RenderText::detach):
              (RenderText::extractTextBox):
              (RenderText::attachTextBox):
              (RenderText::removeTextBox):
              (RenderText::setTextWithOffset):
              (RenderText::setText):
              (RenderText::dirtyLineBoxes):
              (RenderText::createInlineBox):
              * khtml/rendering/render_text.h:
              (khtml::InlineTextBox::start):
              (khtml::InlineTextBox::end):
              (khtml::InlineTextBox::offsetRun):
              * khtml/xml/dom_textimpl.cpp:
              (CharacterDataImpl::setData):
              (CharacterDataImpl::appendData):
              (CharacterDataImpl::insertData):
              (CharacterDataImpl::deleteData):
              (CharacterDataImpl::replaceData):
              (TextImpl::splitText):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
      
      	RenderBlock contains two other fixes.  The first is a fix to rightmost/lowestPosition to properly add in
      	margins to floats.
      
      	Reviewed by mjs
      
      	The second fix is to repair a bug in block-level replaced elements with margins.  If the floats they moved to
      	dodge can fit in their margins, then they don't technically have to move at all.
      
      	Reviewed by john
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c3a9867
  27. 26 Jan, 2004 1 commit
    • hyatt's avatar
      Remove incremental repainting ifdef. · 83e9da81
      hyatt authored
              * khtml/khtmlview.h:
              * khtml/rendering/bidi.cpp:
              (khtml::RenderBlock::layoutInlineChildren):
              * khtml/rendering/render_block.cpp:
              (khtml::RenderBlock::layoutBlock):
              (khtml::RenderBlock::layoutBlockChildren):
              (khtml::RenderBlock::repaintObjectsBeforeLayout):
              (khtml::RenderBlock::positionNewFloats):
              * khtml/rendering/render_block.h:
              * khtml/rendering/render_box.cpp:
              (RenderBox::computeAbsoluteRepaintRect):
              (RenderBox::repaintDuringLayoutIfMoved):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::removeChildNode):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutBlock):
              (khtml::RenderFlexibleBox::placeChild):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::getAbsoluteRepaintRect):
              * khtml/rendering/render_image.cpp:
              (RenderImage::layout):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::RenderLayer):
              (RenderLayer::computeRepaintRects):
              (RenderLayer::updateLayerPositions):
              (RenderLayer::updateLayerPosition):
              (RenderLayer::paintLayer):
              * khtml/rendering/render_layer.h:
              (khtml::RenderLayer::relativePositionOffset):
              * khtml/rendering/render_object.cpp:
              (RenderObject::setNeedsLayout):
              (RenderObject::setChildNeedsLayout):
              (RenderObject::markContainingBlocksForLayout):
              (RenderObject::getAbsoluteRepaintRectIncludingFloats):
              (RenderObject::detach):
              (RenderObject::scheduleRelayout):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_table.cpp:
              (RenderTable::layout):
              (RenderTableSection::layoutRows):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83e9da81
  28. 23 Jan, 2004 1 commit
    • kocienda's avatar
      Reviewed by Hyatt · 5f8bdb0e
      kocienda authored
      	Merged HTML editing progress to TOT from the branch
      	I have been maintaining.
      
              * khtml/dom/dom_position.cpp: Added.
              * khtml/dom/dom_position.h: Added.
              * khtml/editing/htmlediting.cpp: Added.
              * khtml/editing/htmlediting.h: Added.
              * khtml/khtml_selection.cpp: Added.
              * khtml/khtml_selection.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5970 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f8bdb0e
  29. 11 Jan, 2004 1 commit
  30. 12 Nov, 2003 1 commit
  31. 06 Oct, 2003 1 commit
    • hyatt's avatar
      Several fixes preparing for the incremental repainting patch to be enabled. · f4fe67f5
      hyatt authored
      	(1) Make layers update their positions after layout instead of during layout or
      	during painting.
      
      	(2) Fix a regression from the overflow:hidden body quirk landing.  Make sure repaint()
      	understands that quirk exists and avoids clipping when it shouldn't.
      
      	(3) Fix a regression from the scrollbar improvements.  The vertical scrollbar repainted
      	on every layout.
      
      	(4) Make sure outside list bullets are repainted when a list item needs to repaint.
      
      	(5) A whole bunch of INCREMENTAL_REPAINTING code that isn't turned on yet.
      
              Reviewed by kocienda
      
              * khtml/khtmlview.cpp:
              (KHTMLViewPrivate::KHTMLViewPrivate):
              (KHTMLViewPrivate::reset):
              (KHTMLView::resetScrollBars):
              (KHTMLView::needsFullRepaint):
              * khtml/khtmlview.h:
              * khtml/rendering/bidi.cpp:
              (khtml::RenderBlock::layoutInlineChildren):
              * khtml/rendering/render_block.cpp:
              (khtml::RenderBlock::layoutBlock):
              (khtml::RenderBlock::layoutBlockChildren):
              (khtml::RenderBlock::getAbsoluteRepaintRectIncludingFloats):
              (khtml::RenderBlock::repaintFloatingDescendants):
              (khtml::RenderBlock::repaintObjectsBeforeLayout):
              * khtml/rendering/render_block.h:
              * khtml/rendering/render_box.cpp:
              (RenderBox::computeAbsoluteRepaintRect):
              (RenderBox::repaintDuringLayoutIfMoved):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_canvas.cpp:
              (RenderCanvas::layout):
              * khtml/rendering/render_canvas.h:
              (khtml::RenderCanvas::hasOverhangingFloats):
              * khtml/rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutBlock):
              (khtml::RenderFlexibleBox::layoutHorizontalBox):
              (khtml::RenderFlexibleBox::layoutVerticalBox):
              (khtml::RenderFlexibleBox::placeChild):
              * khtml/rendering/render_flexbox.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::getAbsoluteRepaintRect):
              * khtml/rendering/render_image.cpp:
              (RenderImage::setPixmap):
              (RenderImage::layout):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::RenderLayer):
              (RenderLayer::computeRepaintRects):
              (RenderLayer::updateLayerPositions):
              (RenderLayer::updateLayerPosition):
              (RenderLayer::checkScrollbarsAfterLayout):
              (RenderLayer::paintLayer):
              (RenderLayer::calculateClipRects):
              (RenderLayer::calculateRects):
              * khtml/rendering/render_layer.h:
              (khtml::RenderLayer::relativePositionOffset):
              * khtml/rendering/render_list.cpp:
              (RenderListItem::getAbsoluteRepaintRect):
              * khtml/rendering/render_list.h:
              (khtml::RenderListMarker::listImage):
              * khtml/rendering/render_object.cpp:
              (RenderObject::repaint):
              (RenderObject::repaintRectangle):
              (RenderObject::repaintAfterLayoutIfNeeded):
              (RenderObject::repaintDuringLayoutIfMoved):
              (RenderObject::repaintFloatingDescendants):
              (RenderObject::checkForRepaintDuringLayout):
              (RenderObject::repaintObjectsBeforeLayout):
              (RenderObject::getAbsoluteRepaintRectIncludingFloats):
              (RenderObject::container):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_table.cpp:
              (RenderTable::layout):
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5141 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4fe67f5
  32. 30 Sep, 2003 1 commit
    • hyatt's avatar
      Improvements to layout transitions and scrollbar appearance/disappearance. · 77570841
      hyatt authored
      	Also implementing a fix for 3264346, overflow applied to body should apply to
      	the document's scrollers.
      
              Reviewed by darin
      
              * khtml/html/html_baseimpl.cpp:
              (HTMLFrameElementImpl::parseAttribute):
              * khtml/khtmlview.cpp:
              (KHTMLView::KHTMLView):
              (KHTMLView::~KHTMLView):
              (KHTMLView::resetScrollBars):
              (KHTMLView::clear):
              (KHTMLView::initScrollBars):
              (KHTMLView::applyBodyScrollQuirk):
              (KHTMLView::inLayout):
              * khtml/khtmlview.h:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_block.h:
              * khtml/rendering/render_canvas.cpp:
              (RenderCanvas::layout):
              * khtml/rendering/render_form.cpp:
              (TextAreaWidget::TextAreaWidget):
              * khtml/rendering/render_frames.cpp:
              (RenderFrame::slotViewCleared):
              (RenderPartObject::slotViewCleared):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::calcMinMaxWidth):
              * khtml/rendering/render_object.cpp:
              (RenderObject::repaint):
              (RenderObject::repaintRectangle):
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::setInPageCache):
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::createPart):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              (externalRepresentation):
              * kwq/KWQScrollView.h:
              * kwq/KWQScrollView.mm:
              (QScrollView::setVScrollBarMode):
              (QScrollView::setHScrollBarMode):
              (QScrollView::setScrollBarsMode):
              (QScrollView::vScrollBarMode):
              (QScrollView::hScrollBarMode):
              (QScrollView::hasVerticalScrollBar):
              (QScrollView::hasHorizontalScrollBar):
              (QScrollView::suppressScrollBars):
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge installInFrame:]):
              * kwq/WebCoreFrameView.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77570841
  33. 25 Sep, 2003 1 commit
    • hyatt's avatar
      Landing the new repainting code. This code eliminates many redundant layouts, makes · 925e9aab
      hyatt authored
      	layout scheduling work properly when called from WebKit, cleans up relpositioned inlines
      	that act as containing blocks for absolute positioned children, and eliminates the
      	repaint timer.
      
              Reviewed by kocienda
      
              * ChangeLog:
              * khtml/html/html_documentimpl.cpp:
              (HTMLDocumentImpl::close):
              * khtml/khtmlview.cpp:
              (KHTMLView::KHTMLView):
              * khtml/khtmlview.h:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_block.h:
              * khtml/rendering/render_box.cpp:
              (RenderBox::setStyle):
              (RenderBox::setPixmap):
              (RenderBox::getAbsoluteRepaintRect):
              (RenderBox::computeAbsoluteRepaintRect):
              (RenderBox::repaintIfMoved):
              (RenderBox::calcAbsoluteHorizontal):
              (RenderBox::calcAbsoluteVertical):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_canvas.cpp:
              (RenderCanvas::layout):
              (RenderCanvas::repaintViewRectangle):
              (RenderCanvas::getAbsoluteRepaintRect):
              (RenderCanvas::computeAbsoluteRepaintRect):
              * khtml/rendering/render_canvas.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::addChild):
              (RenderContainer::removeChildNode):
              (RenderContainer::removeChild):
              (RenderContainer::appendChildNode):
              (RenderContainer::insertChildNode):
              * khtml/rendering/render_flexbox.cpp:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::getAbsoluteRepaintRect):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_image.cpp:
              (RenderImage::setPixmap):
              (RenderImage::layout):
              * khtml/rendering/render_inline.cpp:
              (RenderInline::addChildToFlow):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::convertToLayerCoords):
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::setPixmap):
              * khtml/rendering/render_object.cpp:
              (RenderObject::RenderObject):
              (RenderObject::setNeedsLayout):
              (RenderObject::setChildNeedsLayout):
              (RenderObject::markContainingBlocksForLayout):
              (RenderObject::containingBlock):
              (RenderObject::repaint):
              (RenderObject::repaintRectangle):
              (RenderObject::repaintAfterLayoutIfNeeded):
              (RenderObject::repaintIfMoved):
              (RenderObject::repaintPositionedAndFloatingDescendants):
              (RenderObject::getAbsoluteRepaintRect):
              (RenderObject::getAbsoluteRepaintRectIncludingDescendants):
              (RenderObject::computeAbsoluteRepaintRect):
              (RenderObject::setStyle):
              (RenderObject::container):
              (RenderObject::detach):
              (RenderObject::scheduleRelayout):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_style.cpp:
              (RenderStyle::diff):
              * khtml/rendering/render_table.cpp:
              (RenderTable::layout):
              (RenderTableRow::getAbsoluteRepaintRect):
              (RenderTableCell::computeAbsoluteRepaintRect):
              * khtml/rendering/render_table.h:
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeBaseImpl::insertBefore):
              (NodeBaseImpl::replaceChild):
              (NodeBaseImpl::appendChild):
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::clearTimers):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              (externalRepresentation):
              * kwq/KWQRenderTreeDebug.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      925e9aab
  34. 21 Aug, 2003 2 commits
    • darin's avatar
      * khtml/khtmlview.h: Formatting tweak. · e2252bb7
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2252bb7
    • rjw's avatar
      WebKit: · 4ecce996
      rjw authored
      	Fixed 3378810.  Avoid resizing frame from drawRect: when printing.  This will corrupt the graphics context.
      
              Reviewed by Hyatt.
      
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView layoutToPageWidth:]):
              (-[WebHTMLView drawRect:]):
              (-[WebHTMLView _setPrinting:pageWidth:adjustViewSize:]):
              (-[WebHTMLView beginDocument]):
              (-[WebHTMLView endDocument]):
      WebCore:
      	Fixed 3378810.  Avoid resizing frame from drawRect: when printing.  This will corrupt the graphics context.
      
              Reviewed by Hyatt.
      
              * khtml/khtmlview.cpp:
              (KHTMLView::adjustViewSize):
              * khtml/khtmlview.h:
              * khtml/rendering/render_canvas.cpp:
              (RenderCanvas::layout):
              * kwq/KWQScrollView.mm:
              (QScrollView::resizeContents):
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge adjustViewSize]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ecce996
  35. 11 Jul, 2003 1 commit
    • hyatt's avatar
      Fix pseudostyles to inherit from the element's style that they are · d41cb953
      hyatt authored
      	specified for.  This is incorrect both for ::first-line and
      	::first-letter, but it is at least right for ::before and ::after.
      
      	Fix iframes and objects and embeds so that they will render borders
      	when borders are specified (as well as background images).
      
      	Patch iframes so that they correctly let the parent document's
      	background show through when the Web page inside the iframe has
      	no specified background.  Also patched iframes to understand not
      	to blit in this case and to not blit when opacity has been specified
      	on the iframe.
      
              Reviewed by darin
      
              * khtml/css/cssstyleselector.cpp:
              * khtml/khtmlview.h:
              * khtml/rendering/render_box.cpp:
              (RenderBox::paintRootBoxDecorations):
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_form.cpp:
              (RenderFormElement::setStyle):
              * khtml/rendering/render_replaced.cpp:
              (RenderReplaced::calcMinMaxWidth):
              (RenderWidget::setStyle):
              (RenderWidget::paintObject):
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::paint):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d41cb953
  36. 16 May, 2003 1 commit
    • mjs's avatar
      Reviewed by Richard. · fb675789
      mjs authored
      	- fixed 3260940 - REGRESSION: reproducible crash freeing page cache item
      	- fixed 3241041 - REGRESSION: repro world leak of 1 JavaScript interpreter
      
      	The fix for these problems and probably other page cache wackiness
      	was to use a refcounting scheme for KHTMLView instead of counting
      	on the previous tricky ownership rules.
      
              * khtml/khtmlview.cpp:
              (KHTMLView::KHTMLView): Initialize _refCount to 1.
              (KHTMLView::~KHTMLView): Assert that _refCount is 0, to make sure no one is deleting
      	views explicitly.
              * khtml/khtmlview.h:
              * khtml/rendering/render_frames.cpp:
              (RenderPart::~RenderPart): If our view is a KHTMLView, deref it.
              (RenderPart::setWidget): If the view is a KHTMLView, tell the superclass not to
      	delete it and ref it.
              * khtml/rendering/render_frames.h:
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::RenderWidget): Initizlize m_deleteWidget to false.
              (RenderWidget::~RenderWidget): Only delete widget if we're supposed to.
              (RenderWidget::setQWidget): Add extra delegeWidget argument that says whether
      	to delete this widget when done - defaults to true.
              * khtml/rendering/render_replaced.h:
              * kwq/KWQKHTMLPart.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::KWQKHTMLPart): Removed _ownsView boolean -- we'll always hang on
      	to a ref to it now.
              (KWQKHTMLPart::~KWQKHTMLPart): Deref the view always instead of deleting it sometimes.
              (KWQKHTMLPart::setView): deref the old view if not null. ref the new view if not null.
      	Drop tricky ownership rules.
              (KWQKHTMLPart::openURLFromPageCache): Remove no longer applicable comment about the
      	importance of when setView is called.
              * kwq/KWQPageState.mm:
              (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:]): ref the
      	document's view.
              (-[KWQPageState invalidate]): deref the document's view.
              (-[KWQPageState dealloc]): deref the document's view instead of deleting it.
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]): No more need
      	to pass weOwnIt argument to setView. Also, deref the view after passing it to the
      	KWQKHTMLView -- we own the initial ref since we allocated it.
              (-[WebCoreBridge removeFromFrame]): No more need to pass weOwnIt argument to setView.
              (-[WebCoreBridge installInFrame:]): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb675789