1. 01 Mar, 2006 12 commits
    • eseidel's avatar
      2006-03-01 Eric Seidel <eseidel@apple.com> · 8b133a92
      eseidel authored
              Reviewed by mjs.
      
              Fix win32 build, add IntRectWin and GraphicsContextCairo stub.
      
              * Viewer/ImageDocument.cpp:
              * Viewer/ImageMainFrame.cpp:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * platform/IntRect.h:
              * platform/cairo/GraphicsContextCairo.cpp: Added.
              * platform/win/TemporaryLinkStubs.cpp:
              (GraphicsContext::drawLineForText):
              (WebCore::GraphicsContext::fillRect):
              (WebCore::TransferJob::TransferJob):
              (GraphicsContext::GraphicsContext):
              (WebCore::GraphicsContext::~GraphicsContext):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b133a92
    • harrison's avatar
      Updated test case after improving list deletion. · 1127a646
      harrison authored
               <rdar://problem/4359736> Support outlining ability with lists
             
              * unsupported-content/list-delete-002-expected.txt: Updated.
              * unsupported-content/list-delete-002.html: Updated.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1127a646
    • harrison's avatar
      Reviewed by Justin. · 99e6fb4d
      harrison authored
              <rdar://problem/4359736> Support outlining ability with lists
      
              Added Mail SPI for list level changes.  It is SPI because it is not complete support
              for outlining.  See <rdar://problem/4457070> "API for html lists as note outlines".
              Additional support is to end a list when return is typed on empty list item.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Added ModifySelectionListLevelCommand.cpp and ModifySelectionListLevelCommand.h
              
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
              (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
              (-[WebCoreFrameBridge increaseSelectionListLevel]):
              (-[WebCoreFrameBridge decreaseSelectionListLevel]):
              Supply list level calls in the bridge.
              
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::createListItemElement):
              New.  Creates an li.
              
              (WebCore::InsertParagraphSeparatorCommand::doApply):
              - slight logic cleanup
              - on empty list item, end the list
              
              * editing/ModifySelectionListLevelCommand.cpp: Added.
              (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
              (WebCore::ModifySelectionListLevelCommand::preservesTypingStyle):
              (WebCore::ModifySelectionListLevelCommand::doApply):
              (WebCore::ModifySelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::canDecreaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::increaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::decreaseSelectionListLevel):
              (WebCore::modifySelectionListLevel):
              (WebCore::getStartEndListChildren):
              (WebCore::canIncreaseListLevel):
              (WebCore::canDecreaseListLevel):
              (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
              (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeAfter):
              (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
              (WebCore::ModifySelectionListLevelCommand::increaseListLevel):
              (WebCore::ModifySelectionListLevelCommand::decreaseListLevel):
              * editing/ModifySelectionListLevelCommand.h: Added.
              New editing command for adjusting the list level.
              
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply):
              Slight logic cleanup
      
              * editing/htmlediting.cpp:
              (WebCore::isListElement):
              (WebCore::enclosingListChild):
              New helpers.
              
              (WebCore::isTableElement):
              Allow caller to pass 0... return false in that case.
              
              * editing/htmlediting.h:
              New helpers.
              
              * rendering/RenderContainer.cpp:
              (WebCore::updateListMarkerNumbers):
              Allow for list children that are not li nodes.  Ignore and continue rather than stopping.
              
              (WebCore::RenderContainer::addChild):
              Allow for nil beforeChild, meaning "add at end".
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99e6fb4d
    • eseidel's avatar
      2006-03-01 Eric Seidel <eseidel@apple.com> · 029ee4ca
      eseidel authored
              Reviewed by justing.
      
             Update ESelectionGranulartiy enum to use newer CamelCase styling.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
              * editing/Selection.cpp:
              (WebCore::Selection::Selection):
              (WebCore::Selection::validate):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::modifyExtendingRightForward):
              (WebCore::SelectionController::modifyMovingRightForward):
              (WebCore::SelectionController::modifyExtendingLeftBackward):
              (WebCore::SelectionController::modifyMovingLeftBackward):
              (WebCore::SelectionController::modify):
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::deleteKeyPressed):
              (WebCore::TypingCommand::forwardDeleteKeyPressed):
              * editing/jsediting.cpp:
              * editing/text_granularity.h:
              (WebCore::):
              * page/Frame.cpp:
              (WebCore::Frame::selectClosestWordFromMouseEvent):
              (WebCore::Frame::handleMousePressEventTripleClick):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::handleMouseMoveEventSelection):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      029ee4ca
    • lypanov's avatar
      2006-03-01 Alexander Kellett <lypanov@kde.org> · e862ac0f
      lypanov authored
              Reviewed by Maciej.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5966
      
              Fixes already existing test:
                svg/W3C-SVG-1.1/coords-viewattr-02-b.svg
      
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
              (WebCore::RenderSVGImage::paint):
              * kcanvas/RenderSVGImage.h:
      
      2006-03-01  Alexander Kellett  <lypanov@kde.org>
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=5966
                Update expected results
      
              * svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.checksum:
              * svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.png:
              * svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e862ac0f
    • thatcher's avatar
      Forgot to add the radar to my changelog entries. · 8255a134
      thatcher authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8255a134
    • ap's avatar
      Reviewed by Darin. · 2b43a901
      ap authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=3812
                XMLHttpRequest: PUT, DELETE, HEAD and all other methods but POST actually do a GET.
      
              HEAD is currently unimplemented because of what seems to be a bug in NSURLConnection,
              and does a GET instead.
      
      WebCore:
              * kwq/KWQKJobClasses.h: Add a method parameter to TransferJob.
              * kwq/KWQKJobClasses.mm:
              (WebCore::TransferJobPrivate::TransferJobPrivate):
              (WebCore::TransferJob::TransferJob):
              (WebCore::TransferJob::method):
              * bridge/mac/WebCoreFrameBridge.h: URL loading functions now take a method parameter.
              * dom/xml_tokenizer.cpp:
              (WebCore::openFunc):
              * khtml/xsl/xslt_processorimpl.cpp:
              (DOM::docLoaderFunc):
              * kwq/KWQLoader.mm:
              (KWQServeRequest):
              (KWQServeSynchronousRequest):
              * loader/loader.cpp:
              (WebCore::Loader::servePendingRequests):
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL):
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::send): Honor the method passed in open().
              * khtml/ecma/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Don't serialize null as "null".
      
      WebKit:
              All WebKit changes are to use the method parameter passed from WebCore.
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
              (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
              (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
              * WebCoreSupport/WebSubresourceLoader.h:
              * WebCoreSupport/WebSubresourceLoader.m:
              (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
              (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):
      
      LayoutTests:
              * http/tests/xmlhttprequest/methods-async-expected.txt: Added.
              * http/tests/xmlhttprequest/methods-async.html: Added.
              * http/tests/xmlhttprequest/methods-expected.txt: Added.
              * http/tests/xmlhttprequest/methods.cgi: Added.
              * http/tests/xmlhttprequest/methods.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b43a901
    • thatcher's avatar
      WebCore: · 3166fbf7
      thatcher authored
              Reviewed by Darin.
              
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7450
              elementAtPoint is expensive and should return a smart dictionary
      
              Support for WebKit. This removes the old elementAtPoint: on the bridge.
              WebKit now uses the bridge method getInnerNonSharedNode:innerNode:URLElement:atPoint:
      
              * WebCore.exp: removes the WebCore* dictionary keys
              * bindings/objc/DOM.mm:
              (-[DOMElement image]): new method to get an NSImage if the element has an image renderer
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLElement titleDisplayString]): new method that returns the title after doing the backslash as currency symbol conversion
              (-[DOMHTMLInputElement altDisplayString]): ditto for alt
              (-[DOMHTMLImageElement altDisplayString]): ditto
              (-[DOMHTMLAppletElement altDisplayString]): ditto
              (-[DOMHTMLAreaElement altDisplayString]): ditto
              (-[DOMHTMLAnchorElement absoluteLinkURL]): new method to get the absolute NSURL
              (-[DOMHTMLAreaElement absoluteLinkURL]): ditto
              (-[DOMHTMLLinkElement absoluteLinkURL]): ditto
              (-[DOMHTMLInputElement absoluteImageURL]): new method to get the absolute image location as an NSURL
              (-[DOMHTMLImageElement absoluteImageURL]): ditto
              (-[DOMHTMLObjectElement absoluteImageURL]): ditto
              * bindings/objc/DOMPrivate.h:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge getInnerNonSharedNode:innerNode:URLElement:atPoint:]):
              (-[WebCoreFrameBridge isPointInsideSelection:]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent):
              (WebCore::DocumentImpl::backslashAsCurrencySymbol):
              * dom/DocumentImpl.h:
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::hitTest):
              * rendering/render_object.h:
              (WebCore::RenderObject::NodeInfo::URLElement):
              (WebCore::RenderObject::NodeInfo::setURLElement):
      
      WebKit:
      
              Reviewed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7450
              elementAtPoint is expensive and should return a smart dictionary
              
              elementAtPoint for WebHTMLView now returns a WebElementDictionary,
              when objectForKey is called it will lookup in the DOM, cache and return the value
      
              * Misc/WebElementDictionary.h: Added.
              * Misc/WebElementDictionary.m: Added.
              (addLookupKey):
              (cacheValueForKey):
              (+[WebElementDictionary initializeLookupTable]):
              (-[WebElementDictionary initWithInnerNonSharedNode:innerNode:URLElement:andPoint:]):
              (-[WebElementDictionary dealloc]):
              (-[WebElementDictionary _fillCache]):
              (-[WebElementDictionary count]):
              (-[WebElementDictionary keyEnumerator]):
              (-[WebElementDictionary objectForKey:]):
              (-[WebElementDictionary _domNode]):
              (-[WebElementDictionary _webFrame]):
              (-[WebElementDictionary _targetWebFrame]):
              (-[WebElementDictionary _title]):
              (-[WebElementDictionary _imageRect]):
              (-[WebElementDictionary _isSelected]):
              * Misc/WebNSViewExtras.m:
              (-[NSView _web_dragImage:element:rect:event:pasteboard:source:offset:]):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebHTMLView.m:
              (-[WebHTMLView _updateMouseoverWithEvent:]):
              (-[WebHTMLView _startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
              (-[NSArray elementAtPoint:]):
              * WebView/WebView.m:
              * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3166fbf7
    • darin's avatar
      LayoutTests: · d0cf0353
      darin authored
              Reviewed by Hyatt.
      
              - Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7327
                REGRESSION (r12869): :hover subselector does not work in quirks mode
      
              * fast/css/hover-subselector-expected.checksum: Added.
              * fast/css/hover-subselector-expected.png: Added.
              * fast/css/hover-subselector-expected.txt: Added.
              * fast/css/hover-subselector.html: Added.
      
      WebCore:
      
              Test: fast/css/hover-subselector.html
      
              Reviewed by Hyatt.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7327
                REGRESSION (r12869): :hover subselector does not work in quirks mode
      
              * css/cssstyleselector.h:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::checkSelector): Pass flag to indicate sub-selector.
              (WebCore::CSSStyleSelector::checkOneSelector): Apply the *:hover and *:active quirks only
              when there are no sub-selectors.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0cf0353
    • mjs's avatar
      Rubber stamped by Hyatt. · e477fd62
      mjs authored
              - fix win32 build (and make dumprendertree run)
      
              * kwq/KWQComboBox.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (QTextEdit::selectionEnd):
              (Widget::~Widget):
              (GraphicsContext::beginTransparencyLayer):
              (QComboBox::populate):
              (GraphicsContext::drawConvexPolygon):
              (QFontMetrics::selectionRectForText):
              (GraphicsContext::setShadow):
              (GraphicsContext::clearFocusRing):
              (GraphicsContext::drawImageInRect):
              (KWQFileButton::setFilename):
              (KWQFileButton::focusPolicy):
              (KWQFileButton::frameGeometry):
              (QSlider::focusPolicy):
              (WebCore::GraphicsContext::font):
              (QTextEdit::setWritingDirection):
              (QFontMetrics::checkSelectionPoint):
              (QFontMetrics::isFixedPitch):
              (WebCore::TransferJob::addMetaData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e477fd62
    • darin's avatar
      Reviewed by Eric. · 9d0a628e
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7444
                move QPainter to platform directory and name it GraphicsContext
      
              * platform/GraphicsContext.h: Added.
              * platform/TextDirection.h: Added.
              * platform/cg/GraphicsContextCG.cpp: Added.
              * platform/mac/GraphicsContextMac.mm: Added.
      
              * kwq/KWQPainter.h: Removed.
              * kwq/KWQPainter.mm: Removed.
              * ForwardingHeaders/qpainter.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for moved files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for moved files.
              * platform/win/TemporaryLinkStubs.cpp: Updated.
      
              * bridge/mac/MacFrame.mm: (WebCore::MacFrame::setDisplaysWithFocusAttributes):
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              * editing/SelectionController.h:
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Context2D::putValueProperty):
              (KJS::drawPattern):
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::paint):
              (WebCore::Frame::adjustPageHeight):
              * page/FrameView.h:
              * platform/Font.h:
              * platform/Font.cpp:
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::drawText):
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm: (WebCore::Widget::paint):
              * rendering/InlineTextBox.h:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintSpellingMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::paintAllMarkersOfType):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              (WebCore::InlineTextBox::offsetForPosition):
              * rendering/RenderTableCell.cpp:
              (WebCore::outlineBox):
              (WebCore::RenderTableCell::paintCollapsedBorder):
              (WebCore::RenderTableCell::paintBoxDecorations):
              * rendering/RenderTableCell.h:
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgrounds):
              (WebCore::RenderBox::paintBackground):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_box.h:
              * rendering/render_button.cpp:
              (WebCore::RenderButton::RenderButton):
              (WebCore::RenderButton::paintObject):
              * rendering/render_button.h:
              (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
              * rendering/render_canvas.cpp:
              * rendering/render_canvasimage.cpp:
              (WebCore::RenderCanvasImage::paint):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::addFocusRingRects):
              (WebCore::RenderFlow::paintFocusRing):
              (WebCore::RenderFlow::paintOutlines):
              (WebCore::RenderFlow::paintOutlineForLine):
              * rendering/render_flow.h:
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::setStyle):
              (WebCore::RenderFieldset::paintBorderMinusLegend):
              (WebCore::RenderSelect::setWidgetWritingDirection):
              (WebCore::RenderTextArea::setStyle):
              * rendering/render_form.h:
              (WebCore::RenderFieldset::renderName):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::beginTransparencyLayers):
              (WebCore::RenderLayer::paintScrollbars):
              (WebCore::RenderLayer::paint):
              (WebCore::setClip):
              (WebCore::restoreClip):
              (WebCore::RenderLayer::paintLayer):
              (WebCore::Marquee::direction):
              * rendering/render_layer.h:
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackgrounds):
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              (WebCore::InlineFlowBox::paintDecorations):
              (WebCore::EllipsisBox::paint):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::addFocusRingRects):
              (WebCore::RenderObject::paintOutline):
              (WebCore::RenderObject::selectionColor):
              * rendering/render_object.h:
              (WebCore::RenderObject::element):
              (WebCore::RenderObject::document):
              (WebCore::RenderObject::setNode):
              (WebCore::RenderObject::node):
              (WebCore::RenderObject::PaintInfo::PaintInfo):
              (WebCore::RenderObject::paintBoxDecorations):
              (WebCore::RenderObject::paintBackgroundExtended):
              (WebCore::RenderObject::printBoxDecorations):
              * rendering/render_replaced.cpp: (WebCore::RenderReplaced::selectionColor):
              * rendering/render_replaced.h:
              Updated to use GraphicsContext instead of QPainter.
      
              * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm: (QComboBox::setWritingDirection):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm: (QLineEdit::setWritingDirection):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm: (QListBox::setWritingDirection):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm: (QTextEdit::setWritingDirection):
              * rendering/bidi.cpp:
              (khtml::bidiNext):
              (khtml::bidiFirst):
              Updated to use TextDirection instead of QPainter::TextDirection and EDirection.
      
              * kcanvas/device/KRenderingDevice.h: Added renderingDevice here to
              replace QPainter::renderingDevice for now.
      
              * khtml/ecma/kjs_html.h: Fixed comments to mention GraphicsContext.
      
              * khtml/html/html_imageimpl.h:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              Added include needed since I reduced includes elsewhere.
      
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm: (QFontMetrics::checkSelectionPoint):
              Changed QChar* to be const QChar*.
      
              * platform/FontDescription.h: Added include that was missing.
              * rendering/render_theme.cpp: Ditto.
      
              * platform/Image.h: Removed unnecessary forward declaration of QPainter.
      
              * rendering/RenderText.h: Clean up types, use const.
      
              * rendering/render_style.h: Removed EDirection and replaced it with TextDirection.
      
              * kcanvas/KCanvasCreator.cpp:
              (WebCore::KCanvasCreator::createRoundedRectangle):
              (WebCore::KCanvasCreator::createRectangle):
              (WebCore::KCanvasCreator::createEllipse):
              (WebCore::KCanvasCreator::createLine):
              * kcanvas/KCanvasPath.cpp: (WebCore::operator<<):
              * kcanvas/KCanvasTreeDebug.cpp: (WebCore::operator<<):
              * kcanvas/RenderForeignObject.cpp: (WebCore::RenderForeignObject::paint):
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::paint):
              (WebCore::RenderSVGImage::translateForAttributes):
              * kcanvas/RenderSVGText.cpp:
              (WebCore::RenderSVGText::paint):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (WebCore::KCanvasFilterQuartz::prepareFilter):
              (WebCore::KCanvasFilterQuartz::applyFilter):
              * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
              (WebCore::KCanvasMaskerQuartz::applyMask):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              (WebCore::KCanvasContainerQuartz::paint):
              (WebCore::KCanvasClipperQuartz::applyClip):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceQuartz::pushContext):
              (WebCore::KRenderingDeviceQuartz::popContext):
              (WebCore::renderingDevice):
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              (WebCore::KRenderingPaintServerGradientQuartz::setup):
              (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
              (WebCore::KRenderingPaintServerGradientQuartz::teardown):
              * ksvg2/misc/KCanvasRenderingStyle.cpp: (WebCore::sharedSolidPaintServer):
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::createRenderer):
              * ksvg2/svg/SVGClipPathElementImpl.cpp: (SVGClipPathElementImpl::canvasResource):
              * ksvg2/svg/SVGFEBlendElementImpl.cpp: (SVGFEBlendElementImpl::filterEffect):
              * ksvg2/svg/SVGFEColorMatrixElementImpl.cpp: (SVGFEColorMatrixElementImpl::filterEffect):
              * ksvg2/svg/SVGFEComponentTransferElementImpl.cpp: (SVGFEComponentTransferElementImpl::filterEffect):
              * ksvg2/svg/SVGFECompositeElementImpl.cpp: (SVGFECompositeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDiffuseLightingElementImpl.cpp: (WebCore::SVGFEDiffuseLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp: (SVGFEDisplacementMapElementImpl::filterEffect):
              * ksvg2/svg/SVGFEFloodElementImpl.cpp: (SVGFEFloodElementImpl::filterEffect):
              * ksvg2/svg/SVGFEGaussianBlurElementImpl.cpp: (SVGFEGaussianBlurElementImpl::filterEffect):
              * ksvg2/svg/SVGFEImageElementImpl.cpp: (SVGFEImageElementImpl::filterEffect):
              * ksvg2/svg/SVGFEMergeElementImpl.cpp: (SVGFEMergeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEOffsetElementImpl.cpp: (SVGFEOffsetElementImpl::filterEffect):
              * ksvg2/svg/SVGFESpecularLightingElementImpl.cpp: (SVGFESpecularLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFETileElementImpl.cpp: (SVGFETileElementImpl::filterEffect):
              * ksvg2/svg/SVGFETurbulenceElementImpl.cpp: (SVGFETurbulenceElementImpl::filterEffect):
              * ksvg2/svg/SVGFilterElementImpl.cpp: (SVGFilterElementImpl::canvasResource):
              * ksvg2/svg/SVGGElementImpl.cpp: (SVGGElementImpl::createRenderer):
              * ksvg2/svg/SVGGradientElementImpl.cpp: (SVGGradientElementImpl::canvasResource):
              * ksvg2/svg/SVGMarkerElementImpl.cpp:
              (WebCore::SVGMarkerElementImpl::canvasResource):
              (WebCore::SVGMarkerElementImpl::createRenderer):
              * ksvg2/svg/SVGMaskElementImpl.cpp:
              (WebCore::SVGMaskElementImpl::drawMaskerContent):
              (WebCore::SVGMaskElementImpl::createRenderer):
              (WebCore::SVGMaskElementImpl::canvasResource):
              * ksvg2/svg/SVGPathElementImpl.cpp: (WebCore::SVGPathElementImpl::toPathData):
              * ksvg2/svg/SVGPatternElementImpl.cpp:
              (WebCore::SVGPatternElementImpl::drawPatternContentIntoTile):
              (WebCore::SVGPatternElementImpl::createRenderer):
              (WebCore::SVGPatternElementImpl::canvasResource):
              * ksvg2/svg/SVGPolygonElementImpl.cpp: (SVGPolygonElementImpl::toPathData):
              * ksvg2/svg/SVGPolylineElementImpl.cpp: (SVGPolylineElementImpl::toPathData):
              * ksvg2/svg/SVGSVGElementImpl.cpp: (WebCore::SVGSVGElementImpl::createRenderer):
              * ksvg2/svg/SVGStyledElementImpl.cpp: (WebCore::SVGStyledElementImpl::createRenderer):
              * ksvg2/svg/SVGSwitchElementImpl.cpp: (SVGSwitchElementImpl::createRenderer):
              * ksvg2/svg/SVGUseElementImpl.cpp: (SVGUseElementImpl::createRenderer):
              Updated to use renderingDevice instead of QPainter::renderingDevice.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d0a628e
    • ggaren's avatar
      Reviewed by Darin. · 13a498db
      ggaren authored
              - Fixed <rdar://problem/4448098> Switch PropertyMap deleted entry 
              placeholder to -1 from UString::Rep::null
      
              This turned out to be only a small speedup (.12%). That's within the 
              margin of error for super accurate JS iBench, but Shark confirms the 
              same, so I think it's worth landing.
      
              FYI, I also confirmed that the single entry optimization in 
              PropertyMap is a 3.2% speedup.
      
              * kjs/property_map.cpp:
              (KJS::PropertyMap::~PropertyMap):
              (KJS::PropertyMap::clear):
              (KJS::PropertyMap::put):
              (KJS::PropertyMap::insert):
              (KJS::PropertyMap::rehash):
              (KJS::PropertyMap::remove):
              (KJS::PropertyMap::addSparseArrayPropertiesToReferenceList):
              (KJS::PropertyMap::checkConsistency):
              * kjs/property_map.h:
              (KJS::PropertyMap::deletedSentinel):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13a498db
  2. 28 Feb, 2006 17 commits
    • darin's avatar
      - fixed part of the reason the build is broken · 76c426d9
      darin authored
              * WebCore.xcodeproj/project.pbxproj: Updated project file.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76c426d9
    • darin's avatar
      Rubber-stamped by Hyatt. · edf69e16
      darin authored
              - moved the WebCoreXXX files from kwq to appropriate directories
      
              No changes to the contents of the files.
      
              * WebCore.xcodeproj/project.pbxproj: Updated project file.
              * bridge/mac/WebCoreCache.h: Added.
              * bridge/mac/WebCoreCache.mm: Added.
              * bridge/mac/WebCoreEncodings.h: Added.
              * bridge/mac/WebCoreEncodings.mm: Added.
              * bridge/mac/WebCoreFrameNamespaces.h: Added.
              * bridge/mac/WebCoreFrameNamespaces.m: Added.
              * bridge/mac/WebCoreFrameView.h: Added.
              * bridge/mac/WebCoreJavaScript.h: Added.
              * bridge/mac/WebCoreJavaScript.mm: Added.
              * bridge/mac/WebCoreKeyboardAccess.h: Added.
              * bridge/mac/WebCoreResourceLoader.h: Added.
              * bridge/mac/WebCoreScriptDebugger.h: Added.
              * bridge/mac/WebCoreScriptDebugger.mm: Added.
              * bridge/mac/WebCoreSettings.h: Added.
              * bridge/mac/WebCoreSettings.mm: Added.
              * bridge/mac/WebCoreTextDecoder.h: Added.
              * bridge/mac/WebCoreTextDecoder.mm: Added.
              * bridge/mac/WebCoreViewFactory.h: Added.
              * bridge/mac/WebCoreViewFactory.m: Added.
              * bridge/mac/WebDashboardRegion.h: Added.
              * bridge/mac/WebDashboardRegion.m: Added.
              * kwq/WebCoreCache.h: Removed.
              * kwq/WebCoreCache.mm: Removed.
              * kwq/WebCoreCookieAdapter.h: Removed.
              * kwq/WebCoreCookieAdapter.m: Removed.
              * kwq/WebCoreEncodings.h: Removed.
              * kwq/WebCoreEncodings.mm: Removed.
              * kwq/WebCoreFrameNamespaces.h: Removed.
              * kwq/WebCoreFrameNamespaces.m: Removed.
              * kwq/WebCoreFrameView.h: Removed.
              * kwq/WebCoreGraphicsBridge.h: Removed.
              * kwq/WebCoreGraphicsBridge.m: Removed.
              * kwq/WebCoreHistory.h: Removed.
              * kwq/WebCoreHistory.m: Removed.
              * kwq/WebCoreImageRenderer.h: Removed.
              * kwq/WebCoreImageRendererFactory.h: Removed.
              * kwq/WebCoreImageRendererFactory.m: Removed.
              * kwq/WebCoreJavaScript.h: Removed.
              * kwq/WebCoreJavaScript.mm: Removed.
              * kwq/WebCoreKeyGenerator.h: Removed.
              * kwq/WebCoreKeyGenerator.m: Removed.
              * kwq/WebCoreKeyboardAccess.h: Removed.
              * kwq/WebCoreResourceLoader.h: Removed.
              * kwq/WebCoreScriptDebugger.h: Removed.
              * kwq/WebCoreScriptDebugger.mm: Removed.
              * kwq/WebCoreSettings.h: Removed.
              * kwq/WebCoreSettings.mm: Removed.
              * kwq/WebCoreTextDecoder.h: Removed.
              * kwq/WebCoreTextDecoder.mm: Removed.
              * kwq/WebCoreTextRenderer.h: Removed.
              * kwq/WebCoreTextRendererFactory.h: Removed.
              * kwq/WebCoreTextRendererFactory.mm: Removed.
              * kwq/WebCoreView.h: Removed.
              * kwq/WebCoreView.m: Removed.
              * kwq/WebCoreViewFactory.h: Removed.
              * kwq/WebCoreViewFactory.m: Removed.
              * kwq/WebDashboardRegion.h: Removed.
              * kwq/WebDashboardRegion.m: Removed.
              * platform/mac/WebCoreCookieAdapter.h: Added.
              * platform/mac/WebCoreCookieAdapter.m: Added.
              * platform/mac/WebCoreGraphicsBridge.h: Added.
              * platform/mac/WebCoreGraphicsBridge.m: Added.
              * platform/mac/WebCoreHistory.h: Added.
              * platform/mac/WebCoreHistory.m: Added.
              * platform/mac/WebCoreImageRenderer.h: Added.
              * platform/mac/WebCoreImageRendererFactory.h: Added.
              * platform/mac/WebCoreImageRendererFactory.m: Added.
              * platform/mac/WebCoreKeyGenerator.h: Added.
              * platform/mac/WebCoreKeyGenerator.m: Added.
              * platform/mac/WebCoreTextRenderer.h: Added.
              * platform/mac/WebCoreTextRendererFactory.h: Added.
              * platform/mac/WebCoreTextRendererFactory.mm: Added.
              * platform/mac/WebCoreView.h: Added.
              * platform/mac/WebCoreView.m: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      edf69e16
    • hyatt's avatar
      Fold QFont into Font and eliminate QFont completely. · ecad67c5
      hyatt authored
              Reviewed by eric
      
              * ForwardingHeaders/qfont.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (-[DOMElement _font]):
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::attributedString):
              (WebCore::MacFrame::fontForSelection):
              (WebCore::MacFrame::fontAttributesForSelectionStart):
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/css_computedstyle.cpp:
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::recalcStyle):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValue):
              * kwq/KWQAccObject.mm:
              (AXAttributeStringSetStyle):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm:
              (QComboBox::setFont):
              * kwq/KWQFont.h: Removed.
              * kwq/KWQFont.mm: Removed.
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm:
              (QFontMetricsPrivate::QFontMetricsPrivate):
              (QFontMetricsPrivate::~QFontMetricsPrivate):
              (QFontMetricsPrivate::getRenderer):
              (QFontMetricsPrivate::fontDescription):
              (QFontMetricsPrivate::setFontDescription):
              (QFontMetricsPrivate::getWebCoreFont):
              (QFontMetricsPrivate::isFixedPitch):
              (QFontMetricsPrivate::determinePitch):
              (QFontMetrics::QFontMetrics):
              (QFontMetrics::setFontDescription):
              (QFontMetrics::width):
              (QFontMetrics::floatWidth):
              (QFontMetrics::selectionRectForText):
              (QFontMetrics::checkSelectionPoint):
              (QFontMetrics::getWebCoreFont):
              (QFontMetrics::isFixedPitch):
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (-[NSSearchField _addStringToRecentSearches:]):
              (QLineEdit::setFont):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm:
              (QListBox::sizeForNumberOfLines):
              (QListBox::setFont):
              (-[KWQTableView drawRow:clipRect:]):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (WebCore::QPainter::font):
              (WebCore::QPainter::setFont):
              (WebCore::QPainter::fontMetrics):
              (WebCore::QPainter::_updateRenderer):
              (WebCore::QPainter::drawText):
              (WebCore::QPainter::drawHighlightForText):
              * kwq/KWQSlider.h:
              * kwq/KWQSlider.mm:
              (QSlider::setFont):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::setFont):
              * platform/Font.cpp:
              (khtml::Font::update):
              * platform/Font.h:
              (WebCore::):
              (WebCore::Font::m_wordSpacing):
              (WebCore::Font::Font):
              (WebCore::Font::operator==):
              (WebCore::Font::operator!=):
              (WebCore::Font::fontMetrics):
              (WebCore::Font::pixelSize):
              (WebCore::Font::size):
              (WebCore::Font::letterSpacing):
              (WebCore::Font::setWordSpacing):
              (WebCore::Font::setLetterSpacing):
              (WebCore::Font::isFixedPitch):
              (WebCore::Font::isPrinterFont):
              (WebCore::Font::firstFamily):
              (WebCore::Font::family):
              (WebCore::Font::italic):
              (WebCore::Font::weight):
              (WebCore::Font::getNSFamily):
              (WebCore::Font::getNSFont):
              (WebCore::Font::getWebCoreFont):
              * platform/FontDescription.h:
              (WebCore::FontDescription::FontDescription):
              * platform/FontFamily.h:
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::font):
              (WebCore::Widget::setFont):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderBlock.cpp:
              (WebCore::stripTrailingSpace):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::cacheWidths):
              (WebCore::RenderText::trimmedMinMaxWidth):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::font):
              (WebCore::RenderText::width):
              * rendering/RenderText.h:
              * rendering/bidi.cpp:
              (khtml::RenderBlock::computeHorizontalPositionsForLine):
              (khtml::RenderBlock::findNextLineBreak):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::lineHeight):
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::setStyle):
              (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally):
              (WebCore::InlineFlowBox::paintDecorations):
              (WebCore::EllipsisBox::paint):
              * rendering/render_list.cpp:
              (RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::getVerticalPosition):
              (WebCore::RenderObject::lineHeight):
              * rendering/render_object.h:
              (WebCore::RenderObject::font):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::setStyle):
              * rendering/render_style.h:
              (khtml::RenderStyle::fontSize):
              (khtml::RenderStyle::fontMetrics):
              (khtml::RenderStyle::wordSpacing):
              (khtml::RenderStyle::letterSpacing):
              (khtml::RenderStyle::setFontDescription):
              (khtml::RenderStyle::setWordSpacing):
              (khtml::RenderStyle::setLetterSpacing):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ecad67c5
    • darin's avatar
      WebCore: · 1431b3a8
      darin authored
              Reviewed by Adele.
      
              - remove obsolete WebCoreScrollView class
      
              * WebCore.exp: Remove WebCoreScrollView class name.
      
              * kwq/WebCoreScrollView.h: Removed.
              * kwq/WebCoreScrollView.m: Removed.
              * WebCore.xcodeproj/project.pbxproj: Remove WebCoreScrollView source files.
      
              * kwq/KWQListBox.mm: (-[KWQListBoxScrollView autoforwardsScrollWheelEvents]): Added.
              * kwq/KWQTextArea.h: Change base class to NSScrollView instead of WebCoreScrollView.
              * kwq/KWQTextArea.mm: (-[KWQTextAreaTextView autoforwardsScrollWheelEvents]): Ditto.
      
      WebKit:
      
              Reviewed by Adele.
      
              - remove obsolete WebCoreScrollView class
      
              * WebView/WebDynamicScrollBarsView.h: Change base class to NSScrollView instead of WebCoreScrollView.
              * WebView/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView autoforwardsScrollWheelEvents]): Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1431b3a8
    • justing's avatar
      Forgot to check in my changes to editing.js · d7ecdb85
      justing authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7ecdb85
    • eseidel's avatar
      2006-02-28 Eric Seidel <eseidel@apple.com> · c35389ff
      eseidel authored
              Reviewed by mjs.
      
              * DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/DumpRenderTree.cpp:
              (main): add ability to dump render tree and read from a local file.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c35389ff
    • eseidel's avatar
      2006-02-28 Eric Seidel <eseidel@apple.com> · 69e537ce
      eseidel authored
              Reviewed by mjs.
      
              Fix spacing/style on several of the stubs.
              Reorganize stubs, separating empty stubs.
              Remove the abort from certain stubs blocking DRT.
              Add a virtual setView call to Frame baseclass.
      
              * bridge/mac/MacFrame.h: mark setView virtual
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::attach): remove no-renderer hack
              * page/Frame.cpp:
              (WebCore::Frame::view): fix spacing
              (WebCore::Frame::setView): added.
              * page/Frame.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (notImplemented): make break directly into debugger.
              Moved, modified several other stubs not mentioned here.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69e537ce
    • justing's avatar
      LayoutTests: · 4d89331e
      justing authored
              Reviewed by mjs
              
              Tests for:
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6647>
              TinyMCE: document.execCommand("insertHTML", ...) unimplemented
      
              * editing/editing.js:
              * editing/execCommand/insertHTML-expected.checksum: Added.
              * editing/execCommand/insertHTML-expected.png: Added.
              * editing/execCommand/insertHTML-expected.txt: Added.
              * editing/execCommand/insertHTML.html: Added.
      
      WebCore:
      
              Reviewed by mjs
              
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6647>
              TinyMCE: document.execCommand("insertHTML", ...) unimplemented
      
              * editing/jsediting.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d89331e
    • mjs's avatar
      Reviewed by Darin. · d5ce6095
      mjs authored
              - make win32 DumpRenderTree run without crashing
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7511
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/win/BrowserExtensionWin.h: Added.
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::FrameWin): Initialize browser
              extension and settings.
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::attach): Don't create renderers 
              for now.
              * dom/EventNames.cpp:
              (WebCore::EventNames::init): use placement new even when
              not avoiding static constructors.
              * khtml/html/htmlnames.cpp:
              (WebCore::HTMLNames::init): ditto
              * dom/QualifiedName.cpp:
              (WebCore::QualifiedName::init): ditto
              * dom/QualifiedName.h:
              (WebCore::QualifiedName::QualifiedName): Added default
              constructor but only in ifdef.
              * page/Frame.h:
              * platform/AtomicString.cpp:
              (WebCore::AtomicString::init): use placement new even when
              not avoiding static constructors
              * platform/StaticConstructors.h: don't initialize when
              not avoiding static constructors, just default construct
              and let initialization happen normally
              * platform/win/TemporaryLinkStubs.cpp: Stub out some more things
              (Cursor::~Cursor):
              (QFont::~QFont):
              (QFontMetrics::~QFontMetrics):
              (WebCore::FrameWin::restoreDocumentState):
              (WebCore::FrameWin::partClearedInBegin):
              (WebCore::FrameWin::createEmptyDocument):
              (WebCore::BrowserExtensionWin::getHistoryLength):
              (WebCore::BrowserExtensionWin::canRunModal):
              (WebCore::BrowserExtensionWin::openURLNotify):
              (WebCore::BrowserExtensionWin::canRunModalNow):
              (WebCore::BrowserExtensionWin::runModal):
              (WebCore::BrowserExtensionWin::goBackOrForward):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5ce6095
    • sullivan's avatar
      * WebKitSystemInterface.h: Removed WKMouseIsDown() · eaa4b2b4
      sullivan authored
              * libWebKitSystemInterface.a: ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eaa4b2b4
    • sullivan's avatar
      Reviewed by Eric Seidel · d4e1011d
      sullivan authored
              
              Wean WebKit from one more SPI call. We learned about this new-to-Tiger
              API from filing Radar 4433222.
      
              * WebView/WebHTMLView.m:
              (-[WebHTMLView _autoscroll]):
              use public CGEventSourceButtonState() instead of WKMouseIsDown() (which was using SPI internally)
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4e1011d
    • eseidel's avatar
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 628e4cff
      eseidel authored
              Reviewed by mjs.
      
              Remove abort() from constructors to allow DRT to run.
      
              * platform/win/TemporaryLinkStubs.cpp:
              (QFont::QFont):
              (QFontMetrics::QFontMetrics):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      628e4cff
    • eseidel's avatar
      Add svn:ignore property to ignore zip files · 03356db7
      eseidel authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03356db7
    • justing's avatar
      LayoutTests: · e9c46e1b
      justing authored
              Reviewed by darin
              
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6893> 
              REGRESSION: Major bug with TinyMCE, no value submitted from textarea
              <rdar://problem/3465857> value from textarea form field inside of hidden div isn't submitted
              <rdar://problem/3968059> Textarea with hard-wrap: pre-filled text doesn't get hard-wrapped
      
              * fast/forms/textarea-hard-linewrap-expected.txt: Added.
              * fast/forms/textarea-hard-linewrap.html: Added.
              * fast/forms/textarea-setvalue-submit-expected.txt: Added.
              * fast/forms/textarea-setvalue-submit.html: Added.
      
      WebCore:
      
              Reviewed by darin
              
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6893> 
              REGRESSION: Major bug with TinyMCE, no value submitted from textarea
              <rdar://problem/3465857> value from textarea form field inside of hidden div isn't submitted
              <rdar://problem/3968059> Textarea with hard-wrap: pre-filled text doesn't get hard-wrapped
              
              Canonicalize line endings in textareas to avoid the workarounds that were a source of bugs,
              Also call textWithHardLineWraps inside appendFormData (and nowhere else) if wrap="hard".
      
              * khtml/html/HTMLTextAreaElementImpl.cpp:
              (WebCore::HTMLTextAreaElementImpl::HTMLTextAreaElementImpl):
              (WebCore::HTMLTextAreaElementImpl::select):
              (WebCore::HTMLTextAreaElementImpl::appendFormData):
              (WebCore::HTMLTextAreaElementImpl::rendererWillBeDestroyed):
              (WebCore::HTMLTextAreaElementImpl::updateValue):
              (WebCore::HTMLTextAreaElementImpl::value):
              (WebCore::HTMLTextAreaElementImpl::setValue):
              (WebCore::HTMLTextAreaElementImpl::defaultValue):
              * khtml/html/HTMLTextAreaElementImpl.h:
              (DOM::HTMLTextAreaElementImpl::invalidateValue):
              * kwq/KWQTextArea.h:
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView text]):
              (-[KWQTextAreaTextView textWithHardLineBreaks]):
              (-[KWQTextAreaTextView setSelectedRange:]):
              (-[KWQTextAreaTextView selectedRange]):
              (-[KWQTextAreaTextView getCursorPositionAsIndex:inParagraph:]):
              (RangeOfParagraph):
              (-[KWQTextAreaTextView textView:shouldChangeTextInRange:replacementString:]):
              * rendering/render_form.cpp:
              (WebCore::RenderTextArea::destroy):
              (WebCore::RenderTextArea::updateFromElement):
              (WebCore::RenderTextArea::text):
              (WebCore::RenderTextArea::textWithHardLineBreaks):
              * rendering/render_form.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9c46e1b
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 4efd4763
      eseidel authored
              Reviewed by darin.
      
              * Scripts/install-win-extras: fix dll permissions & download zlib too.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4efd4763
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 9677783c
      eseidel authored
              Reviewed by darin.
      
              Copy missing dlls to build directory.
      
              * Viewer.cpp: fix line endings
              * Viewer/ImageView.cpp: fix line endings
              * Viewer/stdafx.cpp: fix line endings
              * WebCore.vcproj/WebCore/build-generated-files.sh:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9677783c
  3. 27 Feb, 2006 11 commits
    • darin's avatar
      LayoutTests: · f353d761
      darin authored
              Reviewed by Darin.
      
              - added test case for http://bugzilla.opendarwin.org/show_bug.cgi?id=7338
                Incorrect selectorText for multiple subselectors
      
              * fast/dom/css-selectorText-expected.checksum: Updated.
              * fast/dom/css-selectorText-expected.png: Updated.
              * fast/dom/css-selectorText-expected.txt: Updated.
              * fast/dom/css-selectorText.html: Added a case with multiple subselectors.
      
      WebCore:
      
              Test: added to fast/dom/css-selectorText.html
      
              Reviewed by Darin.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7338
                Incorrect selectorText for multiple subselectors.
      
              * css/css_base.cpp:
              (CSSSelector::selectorText): Iterate over subselectors
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f353d761
    • darin's avatar
      Oops, this was in change log, but not committed. · 1fb5641e
      darin authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fb5641e
    • mjs's avatar
      Reviewed by Darin. · b114cebb
      mjs authored
              - write a portable ICU version of TextEncoding::fromUnicode for use on win32
      
              * platform/StreamingTextDecoder.h:
              * platform/TextEncoding.cpp:
              (WebCore::TextEncoding::fromUnicode): added
              (WebCore::getConverter): helper
              (WebCore::cacheConverter): ditto
              (WebCore::effectiveEncoding): ditto
              * platform/mac/TextEncodingMac.cpp: Add comment
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::TextEncoding::fromUnicode): remove
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b114cebb
    • darin's avatar
      LayoutTests: · d4028cf1
      darin authored
              Reviewed by Darin.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7433
                REGRESSION (r12789): Second RTL text run on a line cannot be selected
      
              * fast/text/in-rendered-text-rtl-expected.checksum: Added.
              * fast/text/in-rendered-text-rtl-expected.png: Added.
              * fast/text/in-rendered-text-rtl-expected.txt: Added.
              * fast/text/in-rendered-text-rtl.html: Added.
      
      WebCore:
      
              Test: fast/text/in-rendered-text-rtl.html
      
              Reviewed by Darin.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7433
                REGRESSION (r12789): Second RTL text run on a line cannot be selected
      
              * dom/dom_position.cpp:
              (WebCore::Position::inRenderedText): If the RenderText contains
              reversed text, the text boxes are not necessarily ordered by start
              position, so iterate through all of them.
              (WebCore::Position::isRenderedCharacter): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4028cf1
    • darin's avatar
      LayoutTests: · f5bb3016
      darin authored
              Reviewed by Darin.
      
              - Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=7321
              REGRESSION: style tag in body causes two head elements to appear in the DOM
      
              The head-check.html document uses an iframe as a laboratory for loading each
              head-check-N.html file and checking its DOM, with inspiration from Ian Hixie's
              Live DOM Viewer: http://software.hixie.ch/utilities/js/live-dom-viewer/
      
              Each of the four head-check-N.html files tests a different code path for
              creating a document's head element in WebCore/khtml/html/htmlparser.cpp.
      
              * editing/inserting/editing-empty-divs-expected.txt: Corrected <html> child
              index for <body> since the document previously had two <head> nodes.
              * fast/dom/HTMLHeadElement: Added.
              * fast/dom/HTMLHeadElement/head-check-expected.txt: Added.
              * fast/dom/HTMLHeadElement/head-check.html: Added.
              * fast/dom/HTMLHeadElement/resources: Added.
              * fast/dom/HTMLHeadElement/resources/head-check-1.html: Added.
              * fast/dom/HTMLHeadElement/resources/head-check-2.html: Added.
              * fast/dom/HTMLHeadElement/resources/head-check-3.html: Added.
              * fast/dom/HTMLHeadElement/resources/head-check-4.html: Added.
              * fast/dom/HTMLHeadElement/resources/head-check.js: Added.
      
      WebCore:
      
              Reviewed by Darin.
      
              - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7321
              REGRESSION: style tag in body causes two head elements to appear in the DOM
      
              * khtml/html/htmlparser.cpp: Handle the head node like form and map nodes.
              (WebCore::HTMLParser::parseToken):
              (WebCore::HTMLParser::headCreateErrorCheck):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5bb3016
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 81bb3dc6
      eseidel authored
              Reviewed by darin.
      
              Add stub to make DRT link.
              Make WebCore copy libxml.dll into build directory when building.
      
              * WebCore.vcproj/WebCore/build-generated-files.sh:
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::TextEncoding::fromUnicode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81bb3dc6
    • darin's avatar
      Reviewed by Eric. · 0956a81b
      darin authored
              - fix regression in layout tests
      
              * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
              Fix some code that was not properly truncating. I broke it in my
              string change this morning. 
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0956a81b
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · b6a2ed70
      eseidel authored
              Rubber-stamped by darin.
      
              Remove fpconst.cpp, unused on win32 and the cause of linker warnings.
      
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6a2ed70
    • mjs's avatar
      Rubber stamped by Eric. · 453ea90e
      mjs authored
              - add stubs for FrameWin overrides of pure virtual Frame methods
      
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::FrameWin::respondToChangedContents):
              (WebCore::FrameWin::unfocusWindow):
              (WebCore::FrameWin::locationbarVisible):
              (WebCore::FrameWin::respondToChangedSelection):
              (WebCore::FrameWin::clearUndoRedoOperations):
              (WebCore::FrameWin::issueRedoCommand):
              (WebCore::FrameWin::canRedo):
              (WebCore::FrameWin::restoreDocumentState):
              (WebCore::FrameWin::canUndo):
              (WebCore::FrameWin::overrideMediaType):
              (WebCore::FrameWin::saveDocumentState):
              (WebCore::FrameWin::print):
              (WebCore::FrameWin::issueCutCommand):
              (WebCore::FrameWin::issueCopyCommand):
              (WebCore::FrameWin::partClearedInBegin):
              (WebCore::FrameWin::issueUndoCommand):
              (WebCore::FrameWin::clearRecordedFormValues):
              (WebCore::FrameWin::issuePasteCommand):
              (WebCore::FrameWin::markedTextRange):
              (WebCore::FrameWin::shouldChangeSelection):
              (WebCore::FrameWin::scheduleClose):
              (WebCore::FrameWin::menubarVisible):
              (WebCore::FrameWin::personalbarVisible):
              (WebCore::FrameWin::createEmptyDocument):
              (WebCore::FrameWin::lastEventIsMouseUp):
              (WebCore::FrameWin::statusbarVisible):
              (WebCore::FrameWin::toolbarVisible):
              (WebCore::FrameWin::issueTransposeCommand):
              (WebCore::FrameWin::userAgent):
              (WebCore::FrameWin::canPaste):
              (WebCore::FrameWin::incomingReferrer):
              (WebCore::FrameWin::canGoBackOrForward):
              (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
              (WebCore::FrameWin::handledOnloadEvents):
              (WebCore::FrameWin::generateFrameName):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      453ea90e
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 3d043b8d
      eseidel authored
              Reviewed by mjs.
      
              Add constructor and destructor. 
      
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::FrameWin):
              (WebCore::FrameWin::~FrameWin):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d043b8d
    • mjs's avatar
      Rubber stamped by Eric (sorta). · a8c585c2
      mjs authored
              - add return values where needed
      
              * platform/win/TemporaryLinkStubs.cpp:
              (KWQServeRequest):
              (KWQServeSynchronousRequest):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8c585c2