1. 01 Oct, 2006 1 commit
  2. 11 Sep, 2006 1 commit
    • hyatt's avatar
      Rework the printer font stuff a little bit so that the Font API doesn't · 58ac3806
      hyatt authored
              have to be changed.
      
              Reviewed by eseidel
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/WebCoreStringTruncator.mm:
              (truncateString):
              (+[WebCoreStringTruncator widthOfString:font:]):
              * platform/Font.cpp:
              (WebCore::Font::drawSimpleText):
              * platform/Font.h:
              * platform/TextStyle.h:
              (WebCore::TextStyle::TextStyle):
              (WebCore::TextStyle::attemptFontSubstitution):
              (WebCore::TextStyle::setRTL):
              * platform/mac/FontMac.mm:
              (WebCore::m_wordSpacing):
              (WebCore::Font::drawGlyphs):
              * platform/mac/ListBoxMac.mm:
              (itemTextRenderer):
              (groupLabelTextRenderer):
              (-[WebCoreTableView drawRow:clipRect:]):
              * platform/mac/PopUpButtonMac.mm:
              (PopUpButton::sizeHint):
              * platform/mac/TextFieldMac.mm:
              (-[NSSearchFieldCell _addStringToRecentSearches:]):
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreDrawTextAtPoint):
              (WebCoreTextFloatWidth):
              * rendering/EllipsisBox.cpp:
              (WebCore::EllipsisBox::paint):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58ac3806
  3. 10 Sep, 2006 1 commit
    • eseidel's avatar
      2006-09-10 Eric Seidel <eric@eseidel.com> · c64d603f
      eseidel authored
              Reviewed by darin.
              
              Remove a bunch more NSGraphicsContext related code.
              Add a LocalCurrentGraphicsContext to simplify methods which need to call up into AppKit controls (and thus depend on the [NSGraphicsContext currentContext] being set correctly)
              Add an "isPrinting" flag to many of the text drawing functions in order to avoid the need for a GraphicsContext::isPrinting() function.
      
              No tests were harmed in the making of this patch.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge drawRect:]):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
              (WebCore::KRenderingDeviceContextQuartz::cgContext):
              (WebCore::KRenderingDeviceQuartz::isBuffered):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceContextQuartz::KRenderingDeviceContextQuartz):
              (WebCore::KRenderingDeviceContextQuartz::~KRenderingDeviceContextQuartz):
              * kcanvas/device/quartz/QuartzSupport.mm:
              * platform/Font.cpp:
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              * platform/Font.h:
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText):
              * platform/GraphicsContext.h:
              * platform/mac/FileButtonMac.mm:
              (-[WebFileChooserButton drawRect:]):
              * platform/mac/FontMac.mm:
              (WebCore::ATSULayoutParameters::ATSULayoutParameters):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawGlyphs):
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::drawLineForMisspelling):
              * platform/mac/ListBoxMac.mm:
              (-[WebCoreTableView drawRow:clipRect:]):
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreDrawTextAtPoint):
              * rendering/EllipsisBox.cpp:
              (WebCore::EllipsisBox::paint):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/RenderThemeMac.mm:
              (WebCore::WebCoreNSGraphicsContextBridge::WebCoreNSGraphicsContextBridge):
              (WebCore::WebCoreNSGraphicsContextBridge::~WebCoreNSGraphicsContextBridge):
              (WebCore::RenderThemeMac::paintButton):
              (WebCore::RenderThemeMac::paintTextField):
              (WebCore::RenderThemeMac::paintTextArea):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c64d603f
  4. 13 Jul, 2006 1 commit
  5. 10 Jul, 2006 2 commits
    • harrison's avatar
      Reviewed by Dave Hyatt. · 8049a9c7
      harrison authored
              <rdar://problem/4602408> -webkit-highlight needs to support images and elements other than text
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintCustomHighlight):
              * rendering/RenderBox.h:
              Utility for subclasses.
              
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              Custom highlight in front of images.
              
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              Custom highlight in front of list markers.
      
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::paint):
              Custom highlight in front of objects.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8049a9c7
    • bdakin's avatar
      Reviewed by Maciej. · eb2c2042
      bdakin authored
              Fix for <rdar://problem/4610314> Support the CSS3 content property 
              for images
      
              This patch provides initial support for the CSS3 content property. 
              It lacks support for any content other than images, and only allows 
              content for elements that seemed safe for now.
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty): Remove restrictions for 
              just :before and :after
              * html/HTMLBRElement.cpp:
              (WebCore::HTMLBRElement::createRenderer):
              * html/HTMLFrameSetElement.cpp:
              (WebCore::HTMLFrameSetElement::createRenderer):
              * html/HTMLImageElement.cpp:
              (WebCore::HTMLImageElement::createRenderer):
              * html/HTMLLegendElement.cpp:
              (WebCore::HTMLLegendElement::createRenderer):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::setCachedImage): Don't allow the image to be 
              set this way if it was already set with the content property.
              * rendering/RenderImage.h:
              (WebCore::RenderImage::setIsAnonymousImage): Anonymous images are 
              those set through the content property.
              (WebCore::RenderImage::isAnonymousImage):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::createObject): If there is content 
              specified, create a RenderImage with the content and initialize the 
              cached image to whatever was specified in the CSS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb2c2042
  6. 09 Jul, 2006 2 commits
    • darin's avatar
      - another round of renaming; and KWQ is dead · e775cf78
      darin authored
              * WebCore.vcproj/WebCore/WebCore.vcproj: Remove paths for kwq and khtml directories.
              Move files to their new locations. Did rename.
              * WebCore.xcodeproj/project.pbxproj: Move files to their new locations. Did rename.
              * WebCoreSources.bkl: Did rename.
              * webcore-base.bkl: Removed kwq.
      
              * kwq/AccessibilityObjectCache.h: Removed.
              * kwq/AccessibilityObjectCache.mm: Removed.
              * kwq/FormDataMac.h: Removed.
              * kwq/FormDataMac.mm: Removed.
              * kwq/WebCoreAXObject.h: Removed.
              * kwq/WebCoreAXObject.mm: Removed.
              * kwq/WebCoreEditCommand.h: Removed.
              * kwq/WebCoreEditCommand.mm: Removed.
              * kwq/WebCorePageState.h: Removed.
              * kwq/WebCorePageState.mm: Removed.
              * kwq/WebCoreResourceLoaderImp.h: Removed.
              * kwq/WebCoreResourceLoaderImp.mm: Removed.
      
              * bridge/AXObjectCache.h: Added.
              * bridge/mac/AXObjectCacheMac.mm: Added.
              * bridge/mac/WebCoreAXObject.h: Added.
              * bridge/mac/WebCoreAXObject.mm: Added.
      
              * loader/CachedObject.cpp: Removed.
              * loader/CachedObject.h: Removed.
              * loader/CachedObjectClient.h: Removed.
              * loader/CachedObjectClientWalker.cpp: Removed.
              * loader/CachedObjectClientWalker.h: Removed.
      
              * loader/CachedResource.cpp: Added.
              * loader/CachedResource.h: Added.
              * loader/CachedResourceClient.h: Added.
              * loader/CachedResourceClientWalker.cpp: Added.
              * loader/CachedResourceClientWalker.h: Added.
      
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/CSSImageValue.h:
              * css/CSSImportRule.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Notation.h:
              * dom/ProcessingInstruction.h:
              * dom/XMLTokenizer.cpp:
              * html/CanvasPattern.h:
              * html/HTMLDocument.h:
              * html/HTMLImageLoader.cpp:
              * html/HTMLImageLoader.h:
              * html/HTMLLinkElement.h:
              * html/HTMLScriptElement.cpp:
              * html/HTMLScriptElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * kcanvas/KCanvasFilters.h:
              * ksvg2/svg/SVGCursorElement.cpp:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGFEImageElement.cpp:
              * ksvg2/svg/SVGFEImageElement.h:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.cpp:
              * loader/CachedImage.h:
              * loader/CachedScript.cpp:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/Request.cpp:
              * loader/Request.h:
              * loader/loader.cpp:
              * loader/loader.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * xml/XSLImportRule.h:
              Did renaming.
      
              * platform/mac/can-convert.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e775cf78
    • darin's avatar
      Rubber stamped by Maciej (kinda). · b53ebdcb
      darin authored
              - did the next pass of renaming (used do-webcore-rename script)
                this takes care of most of the remaining KWQ names (almost all)
      
              * WebCore+SVG/DOMList.h:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_window.cpp:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreSettings.h:
              * bridge/mac/WebCoreSettings.mm:
              * bridge/win/FrameWin.cpp:
              * css/CSSPrimitiveValue.cpp:
              * css/CSSValueKeywords.in:
              * css/MediaQueryEvaluator.cpp:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/CharacterData.cpp:
              * dom/CharacterData.h:
              * dom/Document.cpp:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.cpp:
              * dom/ProcessingInstruction.cpp:
              * dom/QualifiedName.cpp:
              * dom/QualifiedName.h:
              * dom/XMLTokenizer.cpp: Added.
              * dom/xml_tokenizer.cpp: Removed.
              * dom/xml_tokenizer.h: Removed.
              * editing/EditAction.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/Selection.h:
              * editing/SelectionController.h:
              * editing/TextAffinity.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/VisiblePosition.h:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/markup.h:
              * editing/visible_units.cpp:
              * editing/visible_units.h:
              * html/HTMLDocument.cpp:
              * html/HTMLFontElement.cpp:
              * html/HTMLInputElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTextAreaElement.cpp:
              * html/HTMLTextFieldInnerElement.cpp:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * kcanvas/KCanvasContainer.cpp: Removed.
              * kcanvas/KCanvasContainer.h: Removed.
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasMatrix.cpp:
              * kcanvas/KCanvasMatrix.h:
              * kcanvas/KCanvasPath.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderForeignObject.cpp:
              * kcanvas/RenderForeignObject.h:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/RenderSVGContainer.cpp: Added.
              * kcanvas/RenderSVGContainer.h: Added.
              * kcanvas/RenderSVGImage.cpp:
              * kcanvas/RenderSVGImage.h:
              * kcanvas/RenderSVGText.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasItemQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
              * ksvg2/css/CSSValueKeywords.in:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGHelper.cpp:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMatrix.cpp:
              * ksvg2/svg/SVGMatrix.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * kwq/AffineTransform.cpp: Added.
              * kwq/AffineTransform.h: Added.
              * kwq/DeprecatedCString.cpp: Added.
              * kwq/DeprecatedCString.h: Added.
              * kwq/DeprecatedPtrQueue.h: Added.
              * kwq/FileButton.h: Added.
              * kwq/FileButton.mm: Added.
              * kwq/FormDataMac.mm: Added.
              * kwq/KWQCString.cpp: Removed.
              * kwq/KWQCString.h: Removed.
              * kwq/KWQComboBox.h: Removed.
              * kwq/KWQComboBox.mm: Removed.
              * kwq/KWQEditCommand.h: Removed.
              * kwq/KWQEditCommand.mm: Removed.
              * kwq/KWQFileButton.h: Removed.
              * kwq/KWQFileButton.mm: Removed.
              * kwq/KWQFormData.h: Removed.
              * kwq/KWQFormData.mm: Removed.
              * kwq/KWQKHTMLSettings.h: Removed.
              * kwq/KWQKIOGlobal.h: Removed.
              * kwq/KWQKSSLKeyGen.h: Removed.
              * kwq/KWQKSSLKeyGen.mm: Removed.
              * kwq/KWQLineEdit.h: Removed.
              * kwq/KWQLineEdit.mm: Removed.
              * kwq/KWQListBox.h: Removed.
              * kwq/KWQListBox.mm: Removed.
              * kwq/KWQLoader.h: Removed.
              * kwq/KWQLoader.mm: Removed.
              * kwq/KWQPageState.h: Removed.
              * kwq/KWQPageState.mm: Removed.
              * kwq/KWQPtrQueue.h: Removed.
              * kwq/KWQResourceLoader.h: Removed.
              * kwq/KWQResourceLoader.mm: Removed.
              * kwq/KWQScrollBar.h: Removed.
              * kwq/KWQScrollBar.mm: Removed.
              * kwq/KWQSlider.h: Removed.
              * kwq/KWQSlider.mm: Removed.
              * kwq/KWQTextEdit.h: Removed.
              * kwq/KWQTextEdit.mm: Removed.
              * kwq/KWQTextStream.cpp: Removed.
              * kwq/KWQTextStream.h: Removed.
              * kwq/KWQWMatrix.cpp: Removed.
              * kwq/KWQWMatrix.h: Removed.
              * kwq/ListBox.h: Added.
              * kwq/ListBox.mm: Added.
              * kwq/LoaderFunctions.h: Added.
              * kwq/LoaderFunctions.mm: Added.
              * kwq/PopUpButton.h: Added.
              * kwq/PopUpButton.mm: Added.
              * kwq/SSLKeyGenerator.h: Added.
              * kwq/SSLKeyGenerator.mm: Added.
              * kwq/Settings.h: Added.
              * kwq/TextBox.h: Added.
              * kwq/TextBox.mm: Added.
              * kwq/TextField.h: Added.
              * kwq/TextField.mm: Added.
              * kwq/TextStream.cpp: Added.
              * kwq/TextStream.h: Added.
              * kwq/WebCoreEditCommand.h: Added.
              * kwq/WebCoreEditCommand.mm: Added.
              * kwq/WebCorePageState.h: Added.
              * kwq/WebCorePageState.mm: Added.
              * kwq/WebCoreResourceLoaderImp.h: Added.
              * kwq/WebCoreResourceLoaderImp.mm: Added.
              * kwq/WebCoreScrollBar.h: Added.
              * kwq/WebCoreScrollBar.mm: Added.
              * kwq/WebCoreSlider.h: Added.
              * kwq/WebCoreSlider.mm: Added.
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedImage.cpp:
              * loader/CachedObject.h:
              * loader/CachedObjectClientWalker.h:
              * loader/CachedResource.h:
              * loader/CachedResourceClientWalker.h:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.h:
              * loader/Decoder.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * loader/FormData.h:
              * loader/ImageDocument.cpp:
              * loader/PluginDocument.cpp:
              * loader/TextDocument.cpp:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/Page.cpp:
              * page/Page.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FloatSize.h:
              * platform/Font.cpp:
              * platform/KURL.cpp:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SegmentedString.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/String.cpp:
              * platform/StringImpl.cpp:
              * platform/TextEncoding.cpp:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/gdk/FrameGdk.cpp:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/CursorMac.mm:
              * platform/mac/DeprecatedStringMac.mm: Added.
              * platform/mac/FontCacheMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/FoundationExtras.h:
              * platform/mac/ImageMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/MouseEventMac.mm: Removed.
              * platform/mac/QStringListMac.mm: Removed.
              * platform/mac/QStringMac.mm: Removed.
              * platform/mac/TransferJobMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * platform/mac/WidgetMac.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/DataRef.h:
              * rendering/DeprecatedRenderSelect.cpp:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/DeprecatedSlider.cpp:
              * rendering/InlineFlowBox.cpp:
              * rendering/RenderApplet.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFileButton.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFormElement.cpp:
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderInline.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderListItem.cpp:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderReplaced.cpp:
              * rendering/RenderStyle.cpp: Added.
              * rendering/RenderStyle.h: Added.
              * rendering/RenderTable.cpp:
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextArea.cpp:
              * rendering/RenderTextControl.cpp: Added.
              * rendering/RenderTextControl.h: Added.
              * rendering/RenderTextField.cpp: Removed.
              * rendering/RenderTextField.h: Removed.
              * rendering/RenderTheme.cpp:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.cpp:
              * rendering/RenderWidget.cpp:
              * rendering/bidi.cpp:
              * rendering/render_style.cpp: Removed.
              * rendering/render_style.h: Removed.
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
              * xml/xmlhttprequest.cpp:
              * xpath/impl/XPathParser.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b53ebdcb
  7. 12 Jun, 2006 1 commit
  8. 09 Jun, 2006 1 commit
    • hyatt's avatar
      WebCore: · 76a0c024
      hyatt authored
              Rework selection coloring.  Rename displaysWithFocusAttributes
              to isActive.  Move the white-blending code onto the Color API to make
              it more convenient to mutate colors for selection blending.  Eliminate all
              the selection state from the GraphicsContext and move it to the RenderTheme.
              Implement both Win32 and Mac theme selection colors.
      
              Reviewed by sfalken
      
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::setIsActive):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge drawRect:]):
              (-[WebCoreFrameBridge setIsActive:]):
              (-[WebCoreFrameBridge selectionColor]):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::checkOneSelector):
              * page/Frame.cpp:
              (WebCore::Frame::isActive):
              (WebCore::Frame::setIsActive):
              * page/Frame.h:
              * platform/Color.cpp:
              (WebCore::blend):
              (WebCore::Color::blendWithWhite):
              * platform/Color.h:
              (WebCore::Color::hasAlpha):
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
              * platform/GraphicsContext.h:
              * platform/mac/GraphicsContextMac.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              (GraphicsContext::endTransparencyLayer):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintSelection):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::fillHorizontalSelectionGap):
              (WebCore::RenderBlock::fillVerticalSelectionGap):
              (WebCore::RenderBlock::fillLeftSelectionGap):
              (WebCore::RenderBlock::fillRightSelectionGap):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/RenderListMarker.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::selectionColor):
              * rendering/RenderObject.h:
              * rendering/RenderReplaced.cpp:
              * rendering/RenderReplaced.h:
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::activeSelectionColor):
              (WebCore::RenderTheme::inactiveSelectionColor):
              (WebCore::RenderTheme::platformActiveSelectionColor):
              (WebCore::RenderTheme::platformInactiveSelectionColor):
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.h:
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::platformActiveSelectionColor):
              (WebCore::RenderThemeMac::platformInactiveSelectionColor):
              * rendering/RenderThemeWin.cpp:
              (WebCore::RenderThemeWin::platformActiveSelectionColor):
              (WebCore::RenderThemeWin::platformInactiveSelectionColor):
              * rendering/RenderThemeWin.h:
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::paint):
      
      WebKit:
      
              Rename displaysWithFocusAttributes to isActive.
      
              Reviewed by sfalken
      
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebHTMLView.m:
              (-[WebHTMLView _updateFocusState]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76a0c024
  9. 31 May, 2006 1 commit
    • adele's avatar
      Reviewed by Hyatt. · c1116cae
      adele authored
              patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8899>
              Bug 8899: Removes some unneeded code from RenderBox
              
              Removes the use of WidthType where not needed to simplify
              the code a little.
              
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::sizesToIntrinsicWidth):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedWidthUsing):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcReplacedHeightUsing):
              * rendering/RenderBox.h:
              (WebCore::):
              (WebCore::RenderBox::renderName):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1116cae
  10. 30 May, 2006 1 commit
    • hyatt's avatar
      Rename RenderCanvas to RenderView. Rename canvas(), isCanvas() · d804834e
      hyatt authored
              to view(), isView().  Rename the frame view accessor on the old canvas
              from view() to frameView() (to avoid view()->view(), since that just looks
              stupid). :)
      
              Reviewed by andersca
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_window.cpp:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge _setupRootForPrinting:]):
              (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              (-[WebCoreFrameBridge selectionColor]):
              (-[WebCoreFrameBridge accessibilityTree]):
              * dom/Document.cpp:
              (WebCore::Document::attach):
              (WebCore::Document::updateSelection):
              (WebCore::Document::prepareMouseEvent):
              * editing/SelectionController.cpp:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::canvasResource):
              * ksvg2/svg/SVGFEFloodElement.cpp:
              (SVGFEFloodElement::filterEffect):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::rebuildStops):
              * ksvg2/svg/SVGHelper.cpp:
              (SVGHelper::PercentageOfViewport):
              * ksvg2/svg/SVGPathElement.cpp:
              (WebCore::SVGPathElement::getPointAtLength):
              * ksvg2/svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::currentTranslate):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::view):
              (WebCore::SVGStyledElement::pushAttributeContext):
              * ksvg2/svg/SVGStyledElement.h:
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
              (-[WebCoreAXObject role]):
              (-[WebCoreAXObject value]):
              (-[WebCoreAXObject position]):
              (-[WebCoreAXObject accessibilityIsIgnored]):
              (-[WebCoreAXObject accessibilityAttributeNames]):
              (-[WebCoreAXObject topView]):
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              * page/Frame.cpp:
              (WebCore::Frame::selectionRect):
              (WebCore::Frame::paint):
              (WebCore::Frame::adjustPageHeight):
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              * page/FrameView.cpp:
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::layout):
              * page/FrameView.h:
              * rendering/AutoTableLayout.cpp:
              (WebCore::shouldScaleColumns):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::paintChildren):
              (WebCore::RenderBlock::setSelectionState):
              (WebCore::RenderBlock::isSelectionRoot):
              (WebCore::RenderBlock::fillInlineSelectionGaps):
              (WebCore::RenderBlock::lowestPosition):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::leftmostPosition):
              (WebCore::RenderBlock::clearFloats):
              (WebCore::RenderBlock::nodeAtPoint):
              (WebCore::RenderBlock::calcBlocminMaxWidth):
              (WebCore::RenderBlock::inRootBlockContext):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::paintRootBoxDecorations):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::availableHeightUsing):
              * rendering/RenderCanvas.cpp: Removed.
              * rendering/RenderCanvas.h: Removed.
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::removeChildNode):
              * rendering/RenderFileButton.cpp:
              (WebCore::RenderFileButton::RenderFileButton):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::destroy):
              (WebCore::RenderFlow::paintLines):
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::layout):
              (WebCore::RenderFrameSet::userResize):
              (WebCore::RenderFrameSet::setResizing):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::updateLayerPositions):
              (WebCore::RenderLayer::updateLayerPosition):
              (WebCore::RenderLayer::stackingContext):
              (WebCore::RenderLayer::enclosingPositionedAncestor):
              (WebCore::RenderLayer::convertToLayerCoords):
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::isSubframeCanvas):
              (WebCore::RenderLayer::intersectsDamageRect):
              * rendering/RenderLayer.h:
              (WebCore::RenderLayer::isStackingContext):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::scroll):
              (WebCore::RenderObject::containingBlock):
              (WebCore::RenderObject::repaint):
              (WebCore::RenderObject::repaintRectangle):
              (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
              (WebCore::RenderObject::draggableNode):
              (WebCore::RenderObject::selectionStartEnd):
              (WebCore::RenderObject::setStyle):
              (WebCore::RenderObject::viewRect):
              (WebCore::RenderObject::view):
              (WebCore::RenderObject::container):
              (WebCore::RenderObject::removeFromObjectLists):
              (WebCore::RenderObject::scheduleRelayout):
              (WebCore::RenderObject::imageChanged):
              (WebCore::RenderObject::maximalOutlineSize):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isRenderView):
              * rendering/RenderTextArea.cpp:
              (WebCore::RenderTextArea::RenderTextArea):
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintCheckbox):
              (WebCore::RenderThemeMac::paintRadio):
              (WebCore::RenderThemeMac::paintButton):
              * rendering/RenderTreeAsText.cpp:
              (externalRepresentation):
              * rendering/RenderView.cpp: Added.
              (WebCore::RenderView::RenderView):
              (WebCore::RenderView::~RenderView):
              (WebCore::RenderView::calcHeight):
              (WebCore::RenderView::calcWidth):
              (WebCore::RenderView::calcMinMaxWidth):
              (WebCore::RenderView::layout):
              (WebCore::RenderView::absolutePosition):
              (WebCore::RenderView::paint):
              (WebCore::RenderView::paintBoxDecorations):
              (WebCore::RenderView::repaintViewRectangle):
              (WebCore::RenderView::getAbsoluteRepaintRect):
              (WebCore::RenderView::computeAbsoluteRepaintRect):
              (WebCore::RenderView::absoluteRects):
              (WebCore::RenderView::selectionRect):
              (WebCore::RenderView::setSelection):
              (WebCore::RenderView::clearSelection):
              (WebCore::RenderView::selectionStartEnd):
              (WebCore::RenderView::updateWidgetPositions):
              (WebCore::RenderView::addWidget):
              (WebCore::RenderView::removeWidget):
              (WebCore::RenderView::viewRect):
              (WebCore::RenderView::docHeight):
              (WebCore::RenderView::docWidth):
              (WebCore::RenderView::setBestTruncatedAt):
              * rendering/RenderView.h: Added.
              (WebCore::RenderView::renderName):
              (WebCore::RenderView::isRenderView):
              (WebCore::RenderView::frameView):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::destroy):
              (WebCore::RenderWidget::updateWidgetPosition):
              * rendering/RenderWidget.h:
              (WebCore::RenderWidget::widget):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::layoutInlineChildren):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d804834e
  11. 15 May, 2006 1 commit
    • eseidel's avatar
      2006-05-15 Eric Seidel <eseidel@apple.com> · 8494362c
      eseidel authored
              Reviewed by Tim Hatcher.
      
              Split html_imageimpl.* into separate files (one per class).
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8929
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_html.cpp:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * dom/Document.cpp:
              * editing/JSEditor.cpp:
              * html/CanvasRenderingContext2D.cpp:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLAreaElement.cpp: Added.
              (WebCore::HTMLAreaElement::HTMLAreaElement):
              (WebCore::HTMLAreaElement::mapMouseEvent):
              (WebCore::HTMLAreaElement::getRect):
              (WebCore::HTMLAreaElement::getRegion):
              * html/HTMLAreaElement.h: Added.
              * html/HTMLCanvasElement.h:
              * html/HTMLDocument.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLImageElement.cpp: Added.
              (WebCore::HTMLImageElement::HTMLImageElement):
              * html/HTMLImageElement.h: Added.
              * html/HTMLImageLoader.cpp: Added.
              (WebCore::HTMLImageLoader::HTMLImageLoader):
              * html/HTMLImageLoader.h: Added.
              * html/HTMLInputElement.cpp:
              * html/HTMLMapElement.cpp: Added.
              (WebCore::HTMLMapElement::mapMouseEvent):
              (WebCore::HTMLMapElement::parseMappedAttribute):
              * html/HTMLMapElement.h: Added.
              * html/HTMLObjectElement.cpp:
              * html/HTMLParser.cpp:
              * html/html_imageimpl.cpp: Removed.
              * html/html_imageimpl.h: Removed.
              * ksvg2/misc/SVGImageLoader.h:
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject addChildrenToArray:]):
              * page/Frame.cpp:
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::nodeAtPoint):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8494362c
  12. 11 May, 2006 1 commit
    • hyatt's avatar
      Bug 8845. Define a TextRun (similar to the old WebCoreTextRun) and · 43d6c79b
      hyatt authored
              make it the new API for Font and GraphicsContext when drawing/measuring
              text.
      
              Reviewed by andersca
      
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advance):
              (WebCore::WidthIterator::normalizeVoicingMarks):
              (WebCore::Font::width):
              (WebCore::Font::canUseGlyphCache):
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::floatWidthForSimpleText):
              * platform/Font.h:
              (WebCore::TextRun::m_to):
              (WebCore::TextRun::operator[]):
              (WebCore::TextRun::data):
              (WebCore::TextRun::adjustFrom):
              (WebCore::TextRun::adjustTo):
              (WebCore::TextRun::characters):
              (WebCore::TextRun::length):
              (WebCore::TextRun::from):
              (WebCore::TextRun::to):
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText):
              (WebCore::GraphicsContext::drawHighlightForText):
              * platform/GraphicsContext.h:
              * platform/mac/FontMac.mm:
              (WebCore::addDirectionalOverride):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::floatWidthForComplexText):
              (WebCore::Font::checkSelectionPoint):
              * platform/win/FontWin.cpp:
              (WebCore::hackishExtentForString):
              (WebCore::Font::floatWidth):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::checkSelectionPoint):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderBlock.cpp:
              (WebCore::stripTrailingSpace):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::paint):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::cacheWidths):
              (WebCore::RenderText::widthFromCache):
              (WebCore::RenderText::trimmedMinMaxWidth):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::width):
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::calcMinMaxWidth):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::tabWidth):
              (WebCore::RenderBlock::checkLinesForTextOverflow):
              * rendering/render_line.cpp:
              (WebCore::EllipsisBox::paint):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              (WebCore::RenderListMarker::calcMinMaxWidth):
              (WebCore::RenderListMarker::getRelativeMarkerRect):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43d6c79b
  13. 09 May, 2006 1 commit
    • darin's avatar
      LayoutTests: · 7ab3109f
      darin authored
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6310
                text-transform: uppercase/lowercase don't handle cases one character becomes two
      
              * fast/css/case-transform.html: Added.
              * fast/css/case-transform-expected.txt: Added.
      
      WebCore:
      
              Rubber stamped by Hyatt.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8782
                use ICU and UChar more, QChar less
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6310
                text-transform: uppercase/lowercase don't handle cases one character becomes two
      
              Test: fast/css/case-transform.html
      
              By using ICU more, this fixes some bugs in a few places.
      
              * bindings/js/JSXMLSerializer.cpp:
              * css/css_valueimpl.h:
              * kwq/KWQTextStream.cpp:
              * loader/CachedObject.h:
              * platform/Color.cpp:
              Add includes of DeprecatedString.h as needed, now that StringImpl.h no longer
              includes it.
      
              * bindings/js/kjs_css.cpp: (KJS::cssPropertyName):
              Eliminate use of QChar::latin1() in a case where it's not helpful.
      
              * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::evaluate):
              Use characters() function instead of the old unicode() function.
      
              * bindings/js/kjs_window.cpp: (KJS::isSeparator):
              Use UChar instead of QChar.
      
              * bindings/objc/DOMInternal.mm:
              (StringImpl::operator NSString*): Remove typecast that's no longer needed.
              (String::String): Ditto. Also use Vector for local buffer to make code read simpler.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::selectorForKeyEvent): Remove call to unicode() function, no longer needed.
              (WebCore::FrameMac::setTitle): Remove QChar cast, no longer needed.
              (WebCore::FrameMac::setStatusBarText): Ditto.
              (WebCore::FrameMac::advanceToNextMisspelling): Use UChar instead of QChar.
              (WebCore::FrameMac::runJavaScriptAlert): Remove QChar cast, no longer needed.
              (WebCore::FrameMac::runJavaScriptConfirm): Ditto.
              (WebCore::FrameMac::runJavaScriptPrompt): Ditto.
              (WebCore::FrameMac::attributedString): Replaces calls of QChar::direction() with
              calls to u_charDirection and use ICU constants instead of QChar ones.
              (WebCore::FrameMac::markMisspellings): Remove QChar cast, no longer needed. Added a
              QChar cast so we can call isSpace -- slated to be removed later.
              (WebCore::FrameMac::shouldClose): Remove QChar cast, no longer needed.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge selectedString]): Remove QChar cast, no longer needed.
              (-[WebCoreFrameBridge stringForRange:]): Ditto.
      
              * css/CSSGrammar.y: Update for field name change from string to characters.
              Use UChar instead of unsigned short. 
      
              * css/css_valueimpl.cpp:
              (WebCore::propertyID): Use UChar instead of unsigned short and get rid of call to
              unicode() function, no longer needed.
              (WebCore::quoteStringIfNeeded): Use strings when building up a resulting string,
              instead of depending on the feature where you can append characters to a string.
      
              * css/csshelper.cpp: (WebCore::parseURL): Remove calls to unicode() function and
              rewrite to obviate the need to call lower() just to check for a few constant
              character values. Also remove a now-unneeded type cast.
      
              * css/cssparser.h: Changed ParseString field to use UChar and to be named characters
              instead of string. Changed many other fields to be UChar instead of unsigned short.
              (WebCore::domString): Update for that.
              (WebCore::atomicString): Ditto.
              * css/cssparser.cpp:
              (WebCore::ParseString::lower): Use u_tolower instead of QChar::lower(). Also change
              name to characters from string.
              (WebCore::CSSParser::setupParser): Use UChar instead of unsigned short.
              (WebCore::CSSParser::lex): Ditto. Also update for characters name change.
              (WebCore::CSSParser::text): Use UChar instead of unsigned short. Also tweak some
              of the code a little bit to handle a couple of overflow cases better and reduce
              type casting.
              (WebCore::deprecatedString): Moved here so we don't have to include DeprecatedString.h
              in the header file.
      
              * css/cssstyleselector.cpp: (WebCore::checkPseudoState): Added a type cast since this
              code now bridges the world between modern code and QChar/DeprecatedString.
      
              * dom/CharacterData.cpp: (WebCore::CharacterData::CharacterData): Changed QChar to UChar.
      
              * dom/Document.h:
              * dom/Document.cpp:
              (WebCore::Document::isValidName): Updated for name change from unicode to characters.
              (WebCore::Document::parseQualifiedName): Ditto.
              (WebCore::Document::backslashAsCurrencySymbol): Changed return type to UChar.
      
              * dom/NamedMappedAttrMap.cpp:
              (WebCore::isClassWhitespace): Changed parameter to UChar from QChar.
              (WebCore::NamedMappedAttrMap::parseClassAttribute): Changed from UChar to QChar and
              from unicode to characters.
      
              * dom/Position.cpp:
              (WebCore::Position::leadingWhitespacePosition): Changed from QChar to UChar.
              (WebCore::Position::trailingWhitespacePosition): Ditto.
      
              * dom/StyledElement.cpp:
              (WebCore::isClassWhitespace): Changed from QChar to UChar.
              (WebCore::StyledElement::addCSSLength): Changed from QChar to UChar, and remove one
              case where latin1() was used and was not helpful.
              (WebCore::StyledElement::addCSSColor): Removed unicode() function call, no longer needed.
      
              * dom/dom2_eventsimpl.cpp: (WebCore::KeyboardEvent::charCode):
              * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::constrainValue):
              Removed unicode() function call, no longer needed.
      
              * dom/xml_tokenizer.h: Removed default parameter for xmlDocPtrForString so we don't have
              to include the DeprecatedString.h header in this file (and since no one uses it).
      
              * editing/HTMLInterchange.cpp: (convertHTMLTextToInterchangeFormat): Added a couple calls
              to the unicode() function to bridge the gap from QChar/DeprecatedString back to modern
              code.
      
              * editing/InsertTextCommand.cpp: Removed unused function.
      
              * editing/TextIterator.h: Changed from QChar to UChar.
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::TextIterator): Initialize m_lastCharacter since it's now a UChar
              (which is just a typedef) rather than a QChar (which was a class with a default value of 0).
              (WebCore::TextIterator::handleTextNode): Updated to use characters() instead of unicode().
              (WebCore::TextIterator::handleTextBox): Removed unicode() call since it's now a UChar instead
              of a QChar.
              (WebCore::TextIterator::emitCharacter): More of the same.
              (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Ditto.
              (WebCore::SimplifiedBackwardsTextIterator::emitCharacter): Ditto.
              (WebCore::CharacterIterator::string): Ditto.
              (WebCore::WordAwareIterator::advance): Ditto.
              (WebCore::WordAwareIterator::length): Ditto.
              (WebCore::WordAwareIterator::characters): Ditto.
              (WebCore::CircularSearchBuffer::CircularSearchBuffer): Changed to use UChar
              instead of QChar, but also to use foldCase() instead of lower(), because
              we want case folding here, not lowercasing.
              (WebCore::CircularSearchBuffer::append): Ditto, with u_foldCase.
              (WebCore::CircularSearchBuffer::isMatch): Ditto.
              (WebCore::plainText): Added type cast since this bridges the gap from the modern stuff
              to QChar/DeprecatedString.
      
              * editing/VisiblePosition.h: Changed from QChar to UChar.
              * editing/VisiblePosition.cpp: (WebCore::VisiblePosition::characterAfter): Ditto.
      
              * editing/markup.cpp: (WebCore::escapeTextForMarkup): Changed code that used latin1()
              for no good reason to use unicode() instead.
       
              * html/HTMLTokenizer.h: Changed from QChar to UChar.
              * html/HTMLTokenizer.cpp: Changed from QChar to UChar, including removing the
              KHTML_ALLOC_QCHAR_VEC and KHTML_DELETE_QCHAR_VEC macros, which weren't being
              used consistently anyway.
              (WebCore::fixUpChar): More of the same.
              (WebCore::tagMatch): Ditto.
              (WebCore::HTMLTokenizer::reset): Ditto.
              (WebCore::HTMLTokenizer::begin): Ditto. Also corrected anomaly where buffer
              size was not the same as the size value -- this was only true in the initial
              allocation, so I believe there was no value in it.
              (WebCore::HTMLTokenizer::parseSpecial): Ditto. Also removed a use of latin1()
              that was unnnecessary extra work.
              (WebCore::HTMLTokenizer::scriptHandler): More of the same.
              (WebCore::HTMLTokenizer::parseComment): Ditto.
              (WebCore::HTMLTokenizer::parseServer): Ditto.
              (WebCore::HTMLTokenizer::parseProcessingInstruction): Ditto. Another unnecessary
              use of latin1() removed.
              (WebCore::HTMLTokenizer::parseText): Ditto.
              (WebCore::HTMLTokenizer::parseEntity): Ditto. Changed hex-parsing code to handle
              uppercase hex a more-efficient way than calling QChar::lower() on each character.
              Also changed surrogate code logic to fix a couple things -- reject character codes
              > 0x10FFFF as it should and use U16_LEAD and U16_TRAIL instead of writing our
              own versions of these.
              (WebCore::HTMLTokenizer::parseTag): Ditto.
              (WebCore::HTMLTokenizer::write): Ditto.
              (WebCore::HTMLTokenizer::end): Ditto.
              (WebCore::HTMLTokenizer::finish): Ditto.
              (WebCore::HTMLTokenizer::enlargeBuffer): Ditto.
              (WebCore::HTMLTokenizer::enlargeScriptBuffer): Ditto.
              (WebCore::HTMLTokenizer::notifyFinished):
              (WebCore::decodeNamedEntity): Ditto.
      
              * html/html_inlineimpl.cpp: (WebCore::parseFontSizeNumber): Changed from QChar
              to UChar, including using u_isdigit and u_charDigitValue instead of QChar::isNumber
              and QChar::digitValue. Also removed unneeded range checking that's already done
              by WebCore::String.
      
              * kwq/KWQLoader.mm: (KWQIsResponseURLEqualToURL): Rewrote to use Vector and UChar,
              removing all the type casts and making the whole function much shorter.
      
              * kwq/WebCoreAXObject.mm:
              (AXAttributedStringAppendText): Use UChar instead of QChar.
              (-[WebCoreAXObject doAXAttributedStringForTextMarkerRange:]): More of the same.
      
              * loader/Cache.h: Remove unnecessary default parameters, preventing the need to
              include the DeprecatedString.h header in this header. Cleaned up the header
              structure a bit, removing some obsolete and redundant comments and fixing typos.
              * loader/Cache.cpp: Removed unused preload functions.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Added explicit arguments.
              This was the only caller anywhere that took advantage of the default parameter
              values in one of the Cache class request functions.
              (WebCore::Frame::backslashAsCurrencySymbol): Changed QChar to UChar.
      
              * platform/AtomicString.h: Changed QChar to UChar. Removed constructor that makes
              an AtomicString from a single character. Renamed unicode() function to characters().
              Renamed KHTML_ATOMICSTRING_HIDE_GLOBALS to ATOMICSTRING_HIDE_GLOBALS.
              * platform/AtomicString.cpp:
              (WebCore::CStringTranslator::equal): Changed QChar to UChar.
              (WebCore::operator==): Changed unicode() to characters().
              (WebCore::UCharBufferTranslator::hash): More of the same.
              (WebCore::UCharBufferTranslator::equal): Ditto.
              (WebCore::UCharBufferTranslator::translate): Ditto.
              (WebCore::AtomicString::add): Ditto.
              (WebCore::AtomicString::operator Identifier): Ditto.
              (WebCore::AtomicString::operator UString): Ditto.
              (WebCore::AtomicString::AtomicString): Moved here so we don't need DeprecatedString.h
              in the header.
              (WebCore::AtomicString::deprecatedString): Ditto.
      
              * platform/DeprecatedString.h: Removed QChar::Direction enum and all the DirXXX values,
              isDigit, isLetter, isNumber, isLetterOrNumber, isPunct, digitValue, and direction functions.
              (QChar::isSpace): Changed to use u_charDirection instead of QChar::direction.
      
              * platform/Font.h: (WebCore::Font::width): Changed QChar to UChar.
              * platform/Font.cpp: (WebCore::Font::width): Ditto.
      
              * platform/GraphicsContext.h:
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText): Changed QChar to UChar. Removed horizontalAlignment
              parameter from simplified string drawing entry point, since it's not used.
              (WebCore::GraphicsContext::drawHighlightForText): Changed QChar to UChar.
      
              * platform/PlatformString.h: Changed QChar to UChar. Removed constructor that makes
              a String from a single character. Renamed unicode() function to characters(). Added
              an append function and changed += operator to just call that. Added a foldCase() function.
              Removed the concatenation operators that add individual strings before or after.
              * platform/String.cpp:
              (WebCore::String::String): Changed QChar to UChar.
              (WebCore::String::append): Renamed from operator+= and removed the return value.
              (WebCore::String::operator[]): Changed QChar to UChar.
              (WebCore::String::foldCase): Added.
              (WebCore::String::percentage): More of the same.
              (WebCore::String::characters): Renamed from unicode().
              (WebCore::String::deprecatedString): More of the same.
              (WebCore::String::sprintf): Fixed mistakes in the comments.
              (WebCore::String::isEmpty): Tweaked a bit.
              (WebCore::operator==): More of the same.
              (WebCore::String::operator Identifier): Ditto.
              (WebCore::String::operator UString): Ditto.
      
              * platform/SegmentedString.h: Changed from QChar to UChar. Had to initialize
              data members that are now UChar.
              * platform/SegmentedString.cpp:
              (WebCore::SegmentedString::length): Updated for change from QChar to UChar.
              (WebCore::SegmentedString::append): Ditto.
              (WebCore::SegmentedString::prepend): Ditto.
              (WebCore::SegmentedString::toString): Ditto.
      
              * platform/StringHash.h: Updated to use UChar instead of QChar and for name changes.
              Also changed to use case folding intead of lowercasing for case insensitive hashing.
      
              * platform/StringImpl.h:
              * platform/StringImpl.cpp:
              (WebCore::newUCharVector): Changed to UChar from QChar.
              (WebCore::deleteUCharVector): Ditto.
              (WebCore::StringImpl::StringImpl): Ditto.
              (WebCore::StringImpl::init): Ditto. Also renamed from initWithChar and initWithQChar.
              (WebCore::StringImpl::~StringImpl): Ditto.
              (WebCore::StringImpl::append): Ditto.
              (WebCore::StringImpl::insert): Ditto.
              (WebCore::StringImpl::truncate): Ditto.
              (WebCore::StringImpl::remove): Ditto.
              (WebCore::StringImpl::split): Ditto.
              (WebCore::StringImpl::containsOnlyWhitespace): Ditto. Also added comment because this
              function seems a little broken.
              (WebCore::parseLength): More of the same.
              (WebCore::StringImpl::toCoordsArray): Ditto.
              (WebCore::StringImpl::toLengthArray): Ditto.
              (WebCore::StringImpl::isLower): Ditto.
              (WebCore::StringImpl::lower): Rewrote to use u_strToLower.
              (WebCore::StringImpl::upper): Rewrote to use u_strToUpper.
              (WebCore::StringImpl::foldCase): Added. Uses u_strFoldCase.
              (WebCore::getWordBreakIterator): Changed to use U_FAILURE instead of accepting only
              U_ZERO_ERROR as a success code.
              (WebCore::StringImpl::capitalize): More QChar to UChar changes.
              (WebCore::StringImpl::toInt): Ditto.
              (WebCore::equal): Changed from QChar to UChar and was careful to preserve the old
              semantics where "high ASCII" is treated as U+0080-U+00FF even though I don't know
              if this feature is important.
              (WebCore::equalIgnoringCase): Ditto, but used case folding instead of lowercasing
              by using the u_foldCase and u_memcasecmp functions. Also renamed from
              equalCaseInsensitive for more-consistent naming.
              (WebCore::StringImpl::find): Ditto. Use case folding for the case insensitive branch.
              (WebCore::StringImpl::replace): More of the same.
              (WebCore::StringImpl::computeHash): Ditto.
              (WebCore::StringImpl::ascii): Ditto.
      
              * platform/TextBoundaries.h: Changed from QChar to UChar.
              * platform/mac/TextBoundaries.mm:
              (WebCore::findWordBoundary): Made the change to UChar and removed some type casts.
              (WebCore::findNextWordFromIndex): Ditto.
              (WebCore::findSentenceBoundary): Ditto.
              (WebCore::findNextSentenceFromIndex): Ditto.
      
              * platform/TextEncoding.h:
              * platform/TextEncoding.cpp:
              (WebCore::TextEncoding::backslashAsCurrencySymbol): Changed from QChar to UChar.
              (WebCore::TextEncoding::fromUnicode): More of the same.
              * platform/mac/TextEncodingMac.cpp: (WebCore::TextEncoding::fromUnicode): More
              of the same.
      
              * platform/mac/FontFamilyMac.mm: (WebCore::FontFamily::getNSFamily): Removed a
              now-unneeded type cast.
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::checkSelectionPoint):
              Changed QChar to UChar and removed some now-unneeded type casts.
      
              * editing/RebalanceWhitespaceCommand.cpp: (WebCore::isWhitespace):
              * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
              * editing/visible_units.cpp:
              (WebCore::previousBoundary):
              (WebCore::nextBoundary):
              (WebCore::startWordBoundary):
              (WebCore::endWordBoundary):
              (WebCore::previousWordPositionBoundary):
              (WebCore::nextWordPositionBoundary):
              (WebCore::startSentenceBoundary):
              (WebCore::endSentenceBoundary):
              (WebCore::previousSentencePositionBoundary):
              (WebCore::nextSentencePositionBoundary):
              (WebCore::startOfParagraph):
              (WebCore::endOfParagraph):
              * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderBlock.cpp:
              (WebCore::stripTrailingSpace):
              (WebCore::RenderBlock::updateFirstLetter):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              * rendering/RenderObject.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * rendering/RenderTreeAsText.cpp: (quoteAndEscapeNonPrintables):
              * rendering/break_lines.cpp: (WebCore::nextBreakablePosition):
              * rendering/break_lines.h: (WebCore::isBreakable):
              * rendering/render_style.h: (WebCore::RenderStyle::isCollapsibleWhiteSpace):
              * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::parseString):
              * xml/xmlhttprequest.cpp:
              (WebCore::getMIMEType):
              (WebCore::getCharset):
              Changed QChar to UChar.
      
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged): Changed QChar to UChar.
              (WebCore::RenderImage::paint): Changed callers of drawText to no-longer pass 0
              for the horizontal alignment, since I removed that parameters.
      
              * rendering/RenderText.h: Changed QChar to UChar.
              * rendering/RenderText.cpp:
              (WebCore::characterBreakIterator): Update for name change.
              (WebCore::RenderText::RenderText): Ditto.
              (WebCore::RenderText::allAscii): Remove uneeded unicode() and allow the value
              U+007F to count as ASCII.
              (WebCore::RenderText::cacheWidths): Changed QChar to UChar.
              (WebCore::RenderText::widthFromCache): Changed code that deals with direction to
              use the ICU direction calls.
              (WebCore::RenderText::trimmedMinMaxWidth): Changed QChar to UChar.
              (WebCore::RenderText::calcMinMaxWidth): Ditto.
              (WebCore::RenderText::containsOnlyWhitespace): Ditto.
              (WebCore::RenderText::setText): Ditto.
              (WebCore::RenderText::width): Ditto.
      
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::updateFromElement): Removed unneeded QChar cast.
              (WebCore::RenderTextField::calcMinMaxWidth): Changed from QChar to UChar.
      
              * rendering/bidi.h:
              * rendering/bidi.cpp:
              (WebCore::BidiIterator::BidiIterator):
              (WebCore::BidiState::BidiState):
              (WebCore::BidiContext::BidiContext):
              (WebCore::bidiNext):
              (WebCore::bidiFirst):
              (WebCore::BidiIterator::current):
              (WebCore::BidiIterator::direction):
              (WebCore::addRun):
              (WebCore::checkMidpoints):
              (WebCore::appendRun):
              (WebCore::embed):
              (WebCore::RenderBlock::tabWidth):
              (WebCore::RenderBlock::computeHorizontalPositionsForLine):
              (WebCore::RenderBlock::bidiReorderLine):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::skipNonBreakingSpace):
              (WebCore::RenderBlock::skipWhitespace):
              (WebCore::RenderBlock::findNextLineBreak):
              (WebCore::RenderBlock::checkLinesForTextOverflow):
              Changed from QChar to UChar and all direction from QChar constants to the
              ones from ICU.
      
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::updateFromElement):
              (WebCore::RenderSelect::updateFromElement):
              (WebCore::RenderTextArea::updateFromElement):
              (WebCore::RenderTextArea::text):
              (WebCore::RenderTextArea::textWithHardLineBreaks):
              Got rid of now-unneeded QChar type casts.
      
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally): Updated for change from QChar
              to UChar.
              (WebCore::EllipsisBox::paint): Updated for unicode() -> characters() name change.
      
              * rendering/render_list.cpp:
              (WebCore::toRoman): Updated from QChar to UChar.
              (WebCore::toLetterString): Ditto.
              (WebCore::toHebrew): More of the same, also cleaned up the logic a bit.
              (WebCore::RenderListMarker::paint): Removed the alignment parameters from the
              various functions. Also removed all reliance on the width-measuring functions
              that take a string.
              (WebCore::RenderListMarker::calcMinMaxWidth): More of the same.
              (WebCore::RenderListMarker::getRelativeMarkerRect): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ab3109f
  14. 28 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Eric. · 77e2136b
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8608
                make GraphicsContext more suitable for cross-platform use, step 2
      
              - Changed GraphicsContext to use NSGraphicsContext as little as possible.
              - Removed the printing flag from GraphicsContext.
              - Changed GraphicsContext to assume the NSGraphicsContext is always flipped,
                and got rid of parameters to pass the flipped boolean around.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Add GraphicsTypes.h/cpp and remove
              CompositeOperator.h/cpp.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::setDisplaysWithFocusAttributes):
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              * html/CanvasPattern.cpp: (WebCore::patternCallback):
              * html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::createDrawingContext):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceContextQuartz::createGraphicsContext):
              * platform/mac/WidgetMac.mm: (WebCore::Widget::lockDrawingFocus):
              Update for changes to GraphicsContext constructor (no flipped or printing boolean).
      
              * html/CanvasRenderingContext2D.h: Added a Path to the context state. Changed the
              LineCap and LineJoin types to use the new ones in GraphicsTypes.h instead of defining
              types here in this class. Changed m_platformContextStrokeStyleIsPattern and
              m_platformContextFillStyleIsPattern to be named m_appliedStrokePattern and
              m_appliedFillPattern and moved them outside the __APPLE__ ifdefs. Removed the
              platformContext() function. Moved applyStrokePattern and applyFillPattern out of
              the __APPLE__ ifdef.
      
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::State::State): Moved the stroke pattern
              booleans out of Mac-specific ifdef.
              (WebCore::CanvasRenderingContext2D::save): Changed to use GraphicsContext instead
              of using CGContext directly.
              (WebCore::CanvasRenderingContext2D::restore): Ditto.
              (WebCore::CanvasRenderingContext2D::setStrokeStyle): Ditto.
              (WebCore::CanvasRenderingContext2D::setFillStyle): Ditto.
              (WebCore::CanvasRenderingContext2D::setLineWidth): Ditto.
              (WebCore::CanvasRenderingContext2D::lineCap): Ditto.
              (WebCore::CanvasRenderingContext2D::setLineCap): Ditto.
              (WebCore::CanvasRenderingContext2D::lineJoin): Ditto.
              (WebCore::CanvasRenderingContext2D::setLineJoin): Ditto.
              (WebCore::CanvasRenderingContext2D::setMiterLimit): Ditto.
              (WebCore::CanvasRenderingContext2D::shadowColor): Ditto.
              (WebCore::CanvasRenderingContext2D::setGlobalAlpha): Ditto.
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation): Ditto.
              (WebCore::CanvasRenderingContext2D::scale): Update since platformContext() function
              no longer exists.
              (WebCore::CanvasRenderingContext2D::rotate): Ditto.
              (WebCore::CanvasRenderingContext2D::translate): Ditto.
              (WebCore::CanvasRenderingContext2D::beginPath): Changed to use GraphicsContext instead
              of using CGContext directly.
              (WebCore::CanvasRenderingContext2D::closePath): Ditto.
              (WebCore::CanvasRenderingContext2D::moveTo): Ditto.
              (WebCore::CanvasRenderingContext2D::lineTo): Ditto.
              (WebCore::CanvasRenderingContext2D::quadraticCurveTo): Ditto.
              (WebCore::CanvasRenderingContext2D::bezierCurveTo): Ditto.
              (WebCore::CanvasRenderingContext2D::arcTo): Ditto.
              (WebCore::CanvasRenderingContext2D::arc): Ditto.
              (WebCore::CanvasRenderingContext2D::rect): Ditto.
              (WebCore::CanvasRenderingContext2D::fill): Changed to use the current path from this class
              instead of relying on the CGContext's current path.
              (WebCore::CanvasRenderingContext2D::stroke): Ditto.
              (WebCore::CanvasRenderingContext2D::clip): Changed to use the current path and use the
              GraphicsContext instead of using CGContext directly.
              (WebCore::CanvasRenderingContext2D::clearRect): Changed to use GraphicsContext instead
              of using CGContext directly.
              (WebCore::CanvasRenderingContext2D::fillRect): Update since platformContext() function
              no longer exists.
              (WebCore::CanvasRenderingContext2D::strokeRect): Ditto.
              (WebCore::CanvasRenderingContext2D::setShadow): Ditto.
              (WebCore::CanvasRenderingContext2D::applyShadow): Ditto.
              (WebCore::CanvasRenderingContext2D::drawImage): Ditto.
              (WebCore::CanvasRenderingContext2D::drawImageFromRect): Ditto.
              (WebCore::CanvasRenderingContext2D::createPattern): Ditto.
              (WebCore::CanvasRenderingContext2D::applyStrokePattern): Made a tiny bit of this function
              cross-platform. The bulk is still Mac-specific.
              (WebCore::CanvasRenderingContext2D::applyFillPattern): Ditto.
      
              * html/CanvasStyle.h: Changed to use GraphicsContext instead of CGContext. Now the
              platform-specific stuff is in the implementation, not the header.
              * html/CanvasStyle.cpp:
              (WebCore::CanvasStyle::applyStrokeColor): Moved the ifdefs inside the function, getting
              us one step closer to platform independence.
              (WebCore::CanvasStyle::applyFillColor): Ditto.
      
              * html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElement::getRect): Update for changes to the Path class.
              (WebCore::HTMLAreaElement::getRegion): Ditto.
      
              * page/Frame.cpp:
              (WebCore::Frame::paint): Change to check printing flag on the document, rather than on
              the GraphicsContext, since there is no printing flag for GraphicsContext any more.
              (WebCore::Frame::adjustPageHeight): Update for change to GraphicsContext constructor.
      
              * platform/GraphicsContext.h: Define a type called PlatformGraphicsContext so the
              platform-specific getter and constructor don't have to be ifdef'd. Added clearRect,
              strokeRect, setLineWidth, setLineCap, setLineJoin, setMiterLimit, setAlpha, setCompositeOperation,
              and clip functions. Removed the isForPrinting parameter from createGraphicsContextPrivate.
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextPrivate::GraphicsContextPrivate): Removed isForPrinting.
              (WebCore::GraphicsContext::createGraphicsContextPrivate): Ditto.
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              Removed NSGraphicsContext.
              (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
              Ditto.
              (WebCore::GraphicsContext::GraphicsContext): Removed constructor that
              takes an NSGraphicsContext. Removed the flipText and forPrinting parameters
              to the other constructor.
              (WebCore::GraphicsContext::savePlatformState): Removed NSGraphicsContext code.
              (WebCore::GraphicsContext::restorePlatformState): Ditto.
              (WebCore::GraphicsContext::drawRect): Updated assertion to more-precisely
              reflect the limitation of the current version of this function.
              (WebCore::GraphicsContext::setColorFromFillColor): Ditto.
              (WebCore::GraphicsContext::setColorFromPen): Ditto.
              (WebCore::GraphicsContext::drawLine): Updated assertion to more-precisely
              reflect the limitation of the current version of this function.
              (WebCore::setCompositeOperation):
              (WebCore::GraphicsContext::fillRect): Ditto.
              (WebCore::GraphicsContext::setLineWidth): Added.
              (WebCore::GraphicsContext::setMiterLimit): Added.
              (WebCore::GraphicsContext::setAlpha): Added.
              (WebCore::GraphicsContext::setCompositeOperation): Added.
              (WebCore::GraphicsContext::clearRect): Added.
              (WebCore::GraphicsContext::strokeRect): Added.
              (WebCore::GraphicsContext::setLineCap): Added.
              (WebCore::GraphicsContext::setLineJoin): Added.
              (WebCore::GraphicsContext::clip): Added.
      
              * platform/CompositeOperator.cpp: Removed.
              * platform/CompositeOperator.h: Removed.
              * platform/GraphicsTypes.cpp: Added. Includes CompositeOperator, LineCap, and LineJoin.
              * platform/GraphicsTypes.h: Added.
      
              * platform/Image.h: Changed include to GraphicsTypes.h from CompositeOperator.h.
      
              * platform/Path.h: Removed constructors that take a Rect and an array of points. Made
              the Path mutable. Changed the types for contains and boundingRect to be float-based
              instead of int-based. Changed translate to take a FloatSize instead of two integers.
              Added clear, moveTo, addLineTo, addQuadCurveTo, addBezierCurveTo, addArcTo, closeSubpath,
              addArc, addRect, addEllipse, and platformPath functions. Defined a PlatformPath type
              so we don't have to ifdef the header so much.
              * platform/cg/PathCG.cpp:
              (WebCore::Path::Path): Changed class to always have a mutable path.
              (WebCore::Path::operator=): Changed to make a mutable copy.
              (WebCore::Path::contains): Changed to take a FloatPoint instead of IntPoint.
              (WebCore::Path::translate): Changed to use a FloatSize instead of two ints.
              (WebCore::Path::boundingRect): Changed to return a FloatRect.
              (WebCore::Path::moveTo): Added.
              (WebCore::Path::addLineTo): Added.
              (WebCore::Path::addQuadCurveTo): Added.
              (WebCore::Path::addBezierCurveTo): Added.
              (WebCore::Path::addArcTo): Added.
              (WebCore::Path::closeSubpath): Added.
              (WebCore::Path::addArc): Added.
              (WebCore::Path::addRect): Added.
              (WebCore::Path::addEllipse): Added.
              (WebCore::Path::clear): Added.
      
              * platform/mac/ImageMac.mm:
              (WebCore::fillSolidColorInRect): Changed to take a GraphicsContext instead of
              a CGContext.
              (WebCore::Image::checkForSolidColor): Changed to use the new setCompositeOperation
              in GraphicsContex.
              (WebCore::Image::draw): Changed to use the new PDF image and fillSolidColorInRect
              function that take GraphicsContext instead of CGContext.
              (WebCore::Image::drawTiled): Ditto.
      
              * platform/mac/PDFDocumentImage.h: Made most functions private. Changed to
              use GraphicsContext and FloatRect instead of CGContext and NSRect. Also
              removed the unused alpha and flipped booleans.
              * platform/mac/PDFDocumentImage.mm:
              (WebCore::PDFDocumentImage::bounds): Update for change in types.
              (WebCore::PDFDocumentImage::adjustCTM): Ditto.
              (WebCore::PDFDocumentImage::setCurrentPage): Ditto.
              (WebCore::PDFDocumentImage::draw): Ditto.
      
              * platform/win/TemporaryLinkStubs.cpp: Added lots of new stubs.
      
              * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::paint): Changed to get
              printing boolean from document instead graphics context.
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintChildren): Ditto.
              (WebCore::RenderBlock::paintObject): Ditto.
              * rendering/RenderFlow.cpp: (WebCore::RenderFlow::paintLines): Ditto.
              * rendering/RenderHTMLCanvas.cpp: (WebCore::RenderHTMLCanvas::paint): Ditto.
              * rendering/RenderImage.cpp: (WebCore::RenderImage::paint): Ditto.
              * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintButton): Ditto.
              * rendering/render_list.cpp: (WebCore::RenderListMarker::paint): Ditto.
              * rendering/render_replaced.cpp: (WebCore::RenderWidget::paint): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77e2136b
  15. 21 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 33137f7d
      darin authored
              - make <canvas> element and related API behave more like the draft of
                the WhatWG Web Application specification, checking parameter validity
                and raising exceptions
              - changed HTMLCanvasElement bindings to be auto-generated, fixing all
                issues so we can generate bindings for classes drived from HTMLElement
              - change GraphicsContext API to use IntRect/Point/Size in more cases
              - change GraphicsContext so it is closer to truly wrapping a graphics
                context rather than representing the current NSGraphicsContext; there
                are still some things like text and rectangle fills that are tied to
                NSGraphicsContext, but we're most of the way there
              - removed Brush class since it just amounted to a color, using an RGBA32
                instead where we used to use a Brush
      
              * DerivedSources.make: Added JSHTMLCanvasElement.h.
              * WebCore.xcodeproj/project.pbxproj: Added new files.
      
              * bindings/js/JSCanvasRenderingContext2DBase.h: Added toJS.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
              Added exception code handling for strokeRect, drawImage, and createPattern.
              Added version of createPattern that takes a canvas. Use TYPE_MISMATCH_ERR
              instead of JavaScript TypeError when parameter is neither an image or canvas
              element. Adapt for new HTMLCanvasElement binding.
              (WebCore::toJS): Added. Converts context object to JS wrapper.
      
              * bindings/js/JSHTMLElementWrapperFactory.h: Added.
              * bindings/js/JSHTMLElementWrapperFactory.cpp: Added. Creates a JavaScript
              wrapper for an arbitrary HTML element. Better than putting this all in the
              DOM node class toJS function.
      
              * bindings/js/JSXMLSerializer.cpp: Tweaked to make it build.
              * bindings/js/kjs_dom.cpp: (KJS::toJS): Changed to call the
              JSHTMLElementWrapperFactory function createJSWrapper, instead
              of always creating a JSHTMLElement.
      
              * bindings/js/kjs_html.h: Removed canvas-related stuff. Added HTMLElement
              prototype.
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLElement::classInfo): Removed canvas element.
              (KJS::JSHTMLElement::accessors): Ditto.
              (KJS::JSHTMLElementProtoFunc::callAsFunction): Added, to help the auto-binding
              machiner cope with HTMLElement.
              (KJS::HTMLElementFunction::callAsFunction): Removed canvas element.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added types needed for HTMLCanvasElement.
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::setDisplaysWithFocusAttributes):
              Changed to create a GraphicsContext with the new constructor that takes
              a CGContextRef.
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              Changed to create a GraphicsContext with the new constructor that takes
              a NSGraphicsContext.
              * page/Frame.cpp: (WebCore::Frame::adjustPageHeight): Changed to create a
              GraphicsContext with the new constructor that takes a CGContextRef.
      
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              Eliminated a use of obsolete class Brush.
      
              * html/CanvasPattern.h:
              * html/CanvasPattern.cpp:
              (WebCore::CanvasPattern::parseRepetitionType): Added. Parses a repetition
              type. Different from the old logic in that it is case-sensitive and rejects
              anything other than null, empty string, or the four repeat types.
              (WebCore::CanvasPattern::CanvasPattern): Added constructor that takes
              a CGImageRef. Changed constructor to take two booleans instead of the repetition
              type string. It's the caller's responsibility to parse the string.
              (WebCore::CanvasPattern::~CanvasPattern): Release the CGImage.
              (WebCore::patternCallback): Handle the CGImage case. Also changed the code
              to create a GraphicsContext as needed and call the image drawing code with that.
              (WebCore::CanvasPattern::createPattern): Handle both the image element case and
              the canvas element case.
              
              * html/CanvasRenderingContext2D.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::State::State): Change line cap, line join,
              and global composite to store enum values instead of strings.
              (WebCore::CanvasRenderingContext2D::setLineWidth): Do nothing if width is NaN
              or <= 0.
              (WebCore::CanvasRenderingContext2D::lineCap): Return a string based on a
              stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setLineCap): Do nothing if the string is
              not one of the standard line cap types. Also case sensitive and stores enum
              rather than the string.
              (WebCore::CanvasRenderingContext2D::lineJoin): Return a string based on a
              stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setLineJoin): Do nothing if the string is
              not one of the standard line join types. Also case sensitive and stores enum
              rather than the string.
              (WebCore::CanvasRenderingContext2D::setMiterLimit): Do nothing if limit is NaN
              or <= 0.
              (WebCore::CanvasRenderingContext2D::setGlobalAlpha): Do nothing if alpha is NaN
              or < 0 or > 1.
              (WebCore::CanvasRenderingContext2D::globalCompositeOperation): Return a string
              based on a stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation): Do nothing if
              the string is not one of the standard compositing modes. Also case sensitive and
              stores enum rather than the string.
              (WebCore::CanvasRenderingContext2D::arcTo): Generate INDEX_SIZE_ERR exception
              if radius is NaN or <= 0.
              (WebCore::CanvasRenderingContext2D::arc): Ditto.
              (WebCore::CanvasRenderingContext2D::rect): Generate INDEX_SIZE_ERR exception
              if width or height is NaN or <= 0.
              (WebCore::CanvasRenderingContext2D::clearRect): Ditto.
              (WebCore::CanvasRenderingContext2D::fillRect): Ditto.
              (WebCore::CanvasRenderingContext2D::strokeRect): Ditto, same for line width.
              Changed the case where the line width is not specified to share code with the
              case where it is.
              (WebCore::size): Renamed from imageSize, since C++ overloads based on parameter
              types anyway.
              (WebCore::CanvasRenderingContext2D::drawImage): Generate INDEX_SIZE_ERR exception
              if the source rect is not entirely inside the image rect, or if the width or height
              of either the source or destination rect is NaN or <= 0. Changed image drawing
              code to be platform-independent for the image element case, but not yet for the
              canvas case.
              (WebCore::CanvasRenderingContext2D::drawImageFromRect): Change code to parse the
              composite operation to use the new code shared with Image.
              (WebCore::CanvasRenderingContext2D::createPattern): Added code to parse the
              repetition type separately before creating the pattern. Added an overload for
              canvas elements.
              (WebCore::CanvasRenderingContext2D::drawingContext): Changed to return a
              GraphicsContext*.
              (WebCore::CanvasRenderingContext2D::platformContext): Added. Now does what
              drawingContext used to do.
      
              * html/CanvasRenderingContext2D.idl: Added exception declarations as needed
              for changes above.
      
              * html/HTMLCanvasElement.h:
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::HTMLCanvasElement): Changed m_drawingContext
              to be a GraphicsContext instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::~HTMLCanvasElement): Ditto.
              (WebCore::HTMLCanvasElement::getContext): Removed special cases for null
              and empty string. Only give a 2D graphics context if the string is "2d".
              (WebCore::HTMLCanvasElement::reset): Updated for change to GraphicsContext
              from CGContextRef.
              (WebCore::HTMLCanvasElement::paint): Ditto.
              (WebCore::HTMLCanvasElement::createDrawingContext): Changed to create a
              GraphicsContext* instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::drawingContext): Changed to return a
              GraphicsContext* instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::createPlatformImage): Updated for changes above.
      
              * html/HTMLCanvasElement.idl: Added.
      
              * html/HTMLParser.h:
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::canvasCreateErrorCheck): Added. An attempt to implement the
              fallback behavior for canvas elements when JavaScript is off.
              (WebCore::HTMLParser::getNode): Sorted list of functions. Added case for canvas.
      
              * html/html_imageimpl.h:
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageElement::HTMLImageElement): Changed m_compositeOperator to be
              an enum instead of a string.
              (WebCore::HTMLImageElement::parseMappedAttribute): Parse the enum here.
      
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw): Changed to take a
              GraphicsContext parameter.
      
              * kcanvas/RenderPath.h: Added GraphicsContext parameter to drawMarkersIfNeeded.
      
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
              * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::paint):
              * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::paint):
              Changed to generate and use an appropriate GraphicsContext.
      
              * kcanvas/device/quartz/KCanvasItemQuartz.h: Added GraphicsContext parameter to
              drawMarkersIfNeeded.
              * kcanvas/device/quartz/KCanvasItemQuartz.mm:
              (WebCore::DrawMarkersData::DrawMarkersData): Added GraphicsContext*.
              (WebCore::drawMarkerWithData): Pass along a GraphicsContext*.
              (WebCore::drawStartAndMidMarkers): Ditto.
              (WebCore::KCanvasItemQuartz::drawMarkersIfNeeded): Pass a long a GraphicsContext*.
      
              * kcanvas/device/KRenderingDevice.h: Added a pure virtual createGraphicsContext
              to bridge back to a GraphicsContext. Long term that class will replace this one.
              * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceContextQuartz::createGraphicsContext): Added.
      
              * ksvg2/svg/SVGMaskElement.cpp: (WebCore::SVGMaskElement::drawMaskerContent):
              Create and pass a GraphicsContext -- old code used the default constructor for
              GraphicsContext which meant "current context", and that no longer exists.
              * ksvg2/svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::drawPatternContentIntoTile): Ditto.
      
              * platform/Brush.h: Removed.
              * platform/CompositeOperator.h: Added.
              * platform/CompositeOperator.cpp: Added.
      
              * platform/Font.h: Changed calls to use IntPoint instead of pairs of ints.
              Also removed the const from all the uses of GraphicsContext*.
      
              * platform/GraphicsContext.h: Eliminated default constructor and constructor
              that takes only a boolean. Replaced with constructors that take platform
              graphics contexts only. Replaced brush-related calls with fill color calls.
              Replaced use of Brush with use of Color. Changed Image::CompositeOperator to
              just plain CompositeOperator. Changed tuples of ints into IntRect and IntPoint.
              Moved setFocusRingClip and clearFocusRingClip out of ifdefs. Removed unused
              getCompositeOperation and string-based setCompositeOperation. Moved
              currentCGContext and the other setCompositeOperation out of the GraphicsContext
              class and made them global functions. Fixed platformContext so it won't always
              return the CGContextRef of the current NSGraphicsContext. Instead, it will
              return the appropriate CGContextRef for the GraphicsContext. This eliminates
              the need to use void* for the image-drawing functions.
      
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState): Replaced Brush with
              an RGBA fill color.
              (WebCore::GraphicsContext::setFillColor): Renamed from setBrush.
              (WebCore::GraphicsContext::fillColor): Renamed from brush.
              (WebCore::GraphicsContext::drawImage): Changed to use IntRect.
              (WebCore::GraphicsContext::drawTiledImage): Moved here from GraphicsContextMac.mm.
              (WebCore::GraphicsContext::drawText): Changed to use IntPoint.
              (WebCore::GraphicsContext::drawHighlightForText): Ditto.
              (WebCore::GraphicsContext::drawLineForText): Ditto.
              (WebCore::GraphicsContext::drawLineForMisspelling): Ditto.
      
              * platform/Image.h: Removed CompositeOperator and related functions.
              Removed void* context parameters from draw functions.
      
              * platform/Image.cpp: Removed compositeOperatorFromString.
      
              * platform/Widget.h: Added a GraphicsContext* return value from lockDrawingFocus
              that you pass back to unlockDrawingFocus (for deletion).
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForText): Changed parameter to point and removed
              const on GraphicsContext* parameter.
              (WebCore::Font::drawText): Ditto.
              (WebCore::Font::drawHighlightForText): Ditto.
              (WebCore::Font::drawLineForText): Ditto.
              (WebCore::Font::drawLineForMisspelling): Ditto.
              (WebCore::Font::misspellingLineThickness): Removed const.
      
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              Added fields to store a CGContextRef and an NSGraphicsContext.
              (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
              Release both the CGContextRef and the NSGraphicsContext.
              (WebCore::GraphicsContext::GraphicsContext): Implement to set up both the
              CGContextRef and the NSGraphicsContext in one case, and only the CGContextRef
              in the other.
              (WebCore::GraphicsContext::savePlatformState): Implement for the CGContext-only
              case.
              (WebCore::GraphicsContext::restorePlatformState): Ditto.
              (WebCore::GraphicsContext::drawRect): Assert that the NS context is present
              and 
              (WebCore::GraphicsContext::setColorFromFillColor): Renamed from
              setColorFromBrush.
              (WebCore::GraphicsContext::setColorFromPen): Added assertion.
              (WebCore::GraphicsContext::drawLine): Added assertion.
              (WebCore::GraphicsContext::drawEllipse): Get CGContext from the platformContext
              function instead of currentCGContext, and changed to use fillColor.
              (WebCore::GraphicsContext::drawArc): Ditto.
              (WebCore::GraphicsContext::drawConvexPolygon): Ditto.
              (WebCore::setCompositeOperation): Changed to global function and also changed
              to do the work here -- no need to use WebCoreImageRendererFactory.
              (WebCore::GraphicsContext::drawImage): Move most of this into GraphicsContext.cpp.
              Remove the void* context parameter. Changed to take rects instead of separate coordinates.
              (WebCore::GraphicsContext::fillRect): Changed to take color instead of Brush.
              (WebCore::GraphicsContext::addClip): Added assertion.
              (WebCore::GraphicsContext::addRoundedRectClip): Get CGContextRef from the platformContext
              function instead of currentCGContext.
              (WebCore::GraphicsContext::createRenderingDeviceContext): Ditto.
              (WebCore::GraphicsContext::beginTransparencyLayer): Ditto.
              (WebCore::GraphicsContext::endTransparencyLayer): Ditto.
              (WebCore::GraphicsContext::setShadow): Change to take size instead of x,y. Also get
              CGCOntextRef from the platformContext function instead of currentCGContext.
              (WebCore::GraphicsContext::clearShadow): Get CGContextRef from the platformContext
              function instead of currentCGContext.
              (WebCore::GraphicsContext::platformContext): Added. Returns m_data->m_cgContext.
      
              * platform/mac/ImageMac.mm:
              (WebCore::fillSolidColorInRect): Updated for change in CompositeOperator type.
              (WebCore::Image::checkForSolidColor): Ditto.
              (WebCore::Image::draw): Removed void* context parameter and replaced it with
              a GraphicsContext* parameter. Renamed from drawInRect.
              (WebCore::Image::drawTiled): Ditto. Renamed from tileInRect and scaleAndTileInRect.
      
              * platform/mac/PDFDocumentImage.h: Updated for change in CompositeOperator type.
              * platform/mac/PDFDocumentImage.mm: (WebCore::PDFDocumentImage::draw): Ditto.
      
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::lockDrawingFocus): Changed to return a GraphicsContext*.
              (WebCore::Widget::unlockDrawingFocus): Changed to take a GraphicsContext*.
      
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect): Changed to pass IntPoint.
              (WebCore::InlineTextBox::paint): Changed to pass IntSize.
              (WebCore::InlineTextBox::paintSelection): More of the same.
              (WebCore::InlineTextBox::paintMarkedTextBackground): Ditto.
              (WebCore::InlineTextBox::paintDecoration): Ditto.
              (WebCore::InlineTextBox::paintSpellingMarker): Ditto.
              (WebCore::InlineTextBox::paintTextMatchMarker): Ditto.
              (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
              (WebCore::InlineTextBox::positionForOffset): Ditto.
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::fillHorizontalSelectionGap): Ditto.
              (WebCore::RenderBlock::fillVerticalSelectionGap): Ditto.
              (WebCore::RenderBlock::fillLeftSelectionGap): Ditto.
              (WebCore::RenderBlock::fillRightSelectionGap): Ditto.
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended): Ditto.
              (WebCore::RenderBox::outlineBox): Ditto.
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint): Ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::setClip): Take out ifdefs. We'll do that inside GraphicsContext instead.
              (WebCore::restoreClip): Ditto.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorder): More of the same.
              (WebCore::RenderObject::paintBorderImage): Ditto.
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintDecorations): Ditto.
              (WebCore::EllipsisBox::paint): Ditto.
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint): Ditto.
      
              * rendering/render_frames.cpp: (WebCore::RenderFrameSet::userResize): Set up a graphics
              context by calling lockDrawingFocus. Also changed a color here to be a constant.
      
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawImage): Update for parameter type changes.
              (WebCore::GraphicsContext::drawScaledAndTiledImage):
              (WebCore::GraphicsContext::setFocusRingClip):
              (WebCore::GraphicsContext::clearFocusRingClip):
              * platform/cairo/ImageCairo.cpp:
              (WebCore::setCompositingOperation):
              (WebCore::Image::tileInRect):
              (WebCore::Image::scaleAndTileInRect):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33137f7d
  16. 13 Apr, 2006 1 commit
    • darin's avatar
      Rubber-stamped by Anders. · 7bd70956
      darin authored
              - fix Windows build
      
              * WebCore.vcproj/Image\ Viewer/Image\ Viewer.vcproj: Add loader directory.
      
              - use std::min/max exclusively intead of kMin/Max
              - eliminate KWQDef.h since all it had left in it was kMin/Max
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Remove KWQDef.h.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * kwq/KWQDef.h: Removed.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              (WebCore::CSSStyleSelector::fontSizeForKeyword):
              * dom/Document.cpp:
              (WebCore::Document::minimumLayoutDelay):
              (WebCore::Document::addMarker):
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::addCSSColor):
              * dom/xml_tokenizer.cpp:
              (WebCore::OffsetBuffer::readOutBytes):
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::deleteInsignificantText):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::handleTextNode):
              (WebCore::TextIterator::handleTextBox):
              (WebCore::CharacterIterator::string):
              (WebCore::findPlainText):
              * editing/htmlediting.cpp:
              (WebCore::rangeCompliantEquivalent):
              * editing/markup.cpp:
              (WebCore::renderedText):
              * editing/visible_units.cpp:
              (WebCore::startOfParagraph):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::parseMappedAttribute):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::parseComment):
              (WebCore::HTMLTokenizer::parseEntity):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::enlargeBuffer):
              (WebCore::HTMLTokenizer::enlargeScriptBuffer):
              * html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElement::getRegion):
              * html/html_tableimpl.cpp:
              (WebCore::HTMLTableElement::parseMappedAttribute):
              * ksvg2/css/SVGCSSParser.cpp:
              (WebCore::CSSParser::parseSVGPaint):
              (WebCore::CSSParser::parseSVGColor):
              * kwq/KWQComboBox.mm:
              (QComboBox::sizeHint):
              * kwq/KWQListBox.mm:
              (QListBox::sizeForNumberOfLines):
              * kwq/KWQSlider.mm:
              (QSlider::setValue):
              * loader/Cache.cpp:
              (WebCore::Cache::setSize):
              * page/Frame.cpp:
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedString.cpp:
              (ucstrcmp):
              * platform/DeprecatedString.h:
              * platform/DeprecatedValueListImpl.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::addRoundedRectClip):
              * platform/mac/WebCoreTextArea.mm:
              (-[WebCoreTextView _trackResizeFromMouseDown:]):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::isSelected):
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::placeEllipsisBox):
              (WebCore::InlineTextBox::selectionStartEnd):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintSpellingMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::overflowRect):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::collapseMargins):
              (WebCore::RenderBlock::clearFloatsIfNeeded):
              (WebCore::RenderBlock::estimateVerticalPosition):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::setCollapsedBottomMargin):
              (WebCore::RenderBlock::handleBottomOfBlock):
              (WebCore::RenderBlock::layoutBlockChildren):
              (WebCore::RenderBlock::fillVerticalSelectionGap):
              (WebCore::RenderBlock::fillLeftSelectionGap):
              (WebCore::RenderBlock::fillRightSelectionGap):
              (WebCore::RenderBlock::positionNewFloats):
              (WebCore::RenderBlock::nearestFloatBottom):
              (WebCore::RenderBlock::lowestPosition):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::leftmostPosition):
              (WebCore::RenderBlock::getClearDelta):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlocminMaxWidth):
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calcBorderBoxWidth):
              (WebCore::RenderBox::calcBorderBoxHeight):
              (WebCore::RenderBox::calcContentBoxWidth):
              (WebCore::RenderBox::calcContentBoxHeight):
              (WebCore::RenderBox::paintRootBoxDecorations):
              (WebCore::RenderBox::paintBoxDecorations):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/RenderCanvas.cpp:
              (WebCore::RenderCanvas::layout):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::calcMinMaxWidth):
              (WebCore::RenderFlexibleBox::layoutHorizontalBox):
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              (WebCore::RenderFlexibleBox::allowedChildFlex):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::paintLines):
              (WebCore::RenderFlow::lowestPosition):
              (WebCore::RenderFlow::rightmostPosition):
              (WebCore::RenderFlow::leftmostPosition):
              (WebCore::RenderFlow::paintOutlineForLine):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible):
              (WebCore::RenderLayer::computeScrollDimensions):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              (WebCore::RenderLayer::absoluteBoundingBox):
              (WebCore::Marquee::marqueeSpeed):
              (WebCore::Marquee::computePosition):
              (WebCore::Marquee::timerFired):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              (WebCore::RenderTable::paintBoxDecorations):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::paintBackgroundsBehindCell):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::layoutRows):
              (WebCore::RenderTableSection::lowestPosition):
              (WebCore::RenderTableSection::rightmostPosition):
              (WebCore::RenderTableSection::leftmostPosition):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::caretRect):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::minXPos):
              (WebCore::RenderText::width):
              (WebCore::RenderText::caretMinOffset):
              (WebCore::RenderText::caretMaxOffset):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::computeHorizontalPositionsForLine):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::RenderBlock::checkLinesForOverflow):
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::setSelectionStart):
              (WebCore::RenderLineEdit::setSelectionEnd):
              (WebCore::RenderLineEdit::setSelectionRange):
              (WebCore::RenderFieldset::layoutLegend):
              (WebCore::RenderFieldset::paintBoxDecorations):
              (WebCore::RenderSelect::layout):
              (WebCore::RenderTextArea::calcMinMaxWidth):
              (WebCore::RenderSlider::updateFromElement):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally):
              (WebCore::InlineFlowBox::verticallyAlignBoxes):
              (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
              (WebCore::InlineFlowBox::placeBoxesVertically):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              * rendering/render_line.h:
              (WebCore::RootInlineBox::selectionHeight):
              * rendering/render_list.cpp:
              (WebCore::RenderListItem::positionListMarker):
              * rendering/render_replaced.cpp:
              (WebCore::RenderReplaced::shouldPaint):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              Use min/max instead of kMin/kMax.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7bd70956
  17. 11 Apr, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · 36d1136a
      darin authored
              Rubber-stamped by John Sullivan.
      
              - switched from a shell script to a makefile for generated files
              - removed lots of unneeded includes
              - added new Forward.h and HashForward.h headers that allow compiling with
                fewer unneeded templates
      
              * DerivedSources.make: Added.
              * generate-derived-sources: Removed.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new files, changed to use
              DerivedSources.make.
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
              * kxmlcore/HashCountedSet.h: Include HashForward for default args.
              * kxmlcore/HashMap.h: Ditto.
              * kxmlcore/HashSet.h: Ditto.
      
              * kjs/object.h:
              * kjs/object.cpp:
              Moved KJS_MAX_STACK into the .cpp file.
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_instance.h:
              * bindings/jni/jni_class.h:
              * bindings/jni/jni_runtime.h:
              * bindings/jni/jni_utility.h:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/WebScriptObjectPrivate.h:
              * bindings/objc/objc_class.h:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.h:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.h:
              * bindings/runtime_array.cpp:
              * bindings/runtime_array.h:
              * bindings/runtime_method.cpp:
              * bindings/runtime_method.h:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.h:
              * kjs/JSImmediate.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/array_object.h:
              * kjs/bool_object.cpp:
              * kjs/bool_object.h:
              * kjs/collector.h:
              * kjs/context.h:
              * kjs/debugger.cpp:
              * kjs/error_object.h:
              * kjs/function_object.h:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              * kjs/math_object.cpp:
              * kjs/math_object.h:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/number_object.h:
              * kjs/object_object.cpp:
              * kjs/operations.cpp:
              * kjs/protected_reference.h:
              * kjs/reference.h:
              * kjs/reference_list.h:
              * kjs/regexp_object.h:
              * kjs/string_object.cpp:
              * kjs/string_object.h:
              * kjs/testkjs.cpp:
              * kjs/value.cpp:
              * kjs/value.h:
              * kxmlcore/HashTable.h:
              * kxmlcore/ListRefPtr.h:
              * kxmlcore/TCPageMap.h:
              * kxmlcore/Vector.h:
              Removed unneeded header includes.
      
      JavaScriptGlue:
      
              Rubber-stamped by John Sullivan.
      
              - added forwarding headers for the new Forward.h and HashForward.h files
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
      WebCore:
      
              Rubber-stamped by John Sullivan (except for pbxproj change).
      
              - updated to use the new Forward.h and HashForward.h headers
              - moved the showTree debugging functions out of the WebCore
                namespace so they are easier to call from gdb, and renamed
                the showTree member functions so they don't get in the way;
                now you can do "call showTree(x)" in gdb and it just works
              - removed a lot of unneeded includes
      
              * WebCore.xcodeproj/project.pbxproj: Fixed a lot of paths that
              were not relative to the enclosing group.
      
              * ForwardingHeaders/kxmlcore/Forward.h: Added.
              * ForwardingHeaders/kxmlcore/HashForward.h: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMInternal.mm:
              * bindings/objc/DOMUtility.mm:
              * bindings/objc/DOMViews.mm:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCoreJavaScript.mm:
              * bridge/win/PageWin.cpp:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/css_base.h:
              * css/css_ruleimpl.h:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/AbstractView.h:
              * dom/AtomicStringList.h:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/Comment.cpp:
              * dom/ContainerNode.cpp:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dump):
              (WebCore::forbidEventDispatch):
              (WebCore::allowEventDispatch):
              (WebCore::eventDispatchForbidden):
              * dom/EventTargetNode.h:
              (WebCore::EventTargetNode::postDispatchEventHandler):
              * dom/NamedAttrMap.h:
              * dom/Node.cpp:
              (WebCore::Node::showNode):
              (WebCore::Node::showTree):
              (WebCore::Node::showTreeAndMark):
              (showTree):
              * dom/Node.h:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/Position.cpp:
              (showTree):
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_traversalimpl.h:
              * dom/dom_xmlimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * dom/xml_tokenizer.h:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/CreateLinkCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              * editing/EditCommand.cpp:
              * editing/EditCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/InsertTextCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/ModifySelectionListLevelCommand.cpp:
              * editing/MoveSelectionCommand.cpp:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              (WebCore::Selection::formatForDebugger):
              (WebCore::Selection::showTree):
              (showTree):
              * editing/Selection.h:
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::formatForDebugger):
              (WebCore::SelectionController::showTree):
              (showTree):
              * editing/SelectionController.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.cpp:
              * editing/VisiblePosition.cpp:
              (WebCore::isEqualIgnoringAffinity):
              (WebCore::VisiblePosition::formatForDebugger):
              (WebCore::VisiblePosition::showTree):
              (showTree):
              * editing/VisiblePosition.h:
              (WebCore::VisiblePosition::VisiblePosition):
              (WebCore::operator==):
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/markup.h:
              (WebCore::):
              * editing/visible_units.cpp:
              * html/CanvasGradient.cpp:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/CanvasStyle.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLElement.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLParser.cpp:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/html_baseimpl.cpp:
              * html/html_headimpl.h:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/decoder.h:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * khtml/xsl/XSLTProcessor.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/ecma/GlobalObject.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimatedColor.h:
              * ksvg2/svg/SVGAnimatedLengthList.h:
              * ksvg2/svg/SVGAnimatedNumberList.h:
              * ksvg2/svg/SVGAnimatedString.h:
              * ksvg2/svg/SVGAnimatedTransformList.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGTransform.h:
              * kwq/AccessibilityObjectCache.mm:
              * kwq/ClipboardMac.mm:
              * kwq/JavaAppletWidget.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/RegularExpression.h:
              * kwq/RenderTreeAsText.cpp:
              * kwq/RenderTreeAsText.h:
              * kwq/WebCoreAXObject.mm:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Color.cpp:
              * platform/FloatRect.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontFamily.cpp:
              * platform/GraphicsContext.cpp:
              * platform/Image.cpp:
              * platform/Image.h:
              * platform/IntRect.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.h:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              * platform/cairo/ImageCairo.cpp:
              * platform/cairo/ImageSourceCairo.cpp:
              * platform/image-decoders/gif/GIFImageReader.cpp:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/mac/FontFamilyMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/ImageMac.mm:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/TransferJobMac.mm:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/TransferJobWin.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderCanvas.cpp:
              * rendering/RenderCanvas.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (showTree):
              * rendering/RenderObject.h:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeWin.cpp:
              * rendering/bidi.cpp:
              * rendering/render_form.h:
              * rendering/render_line.cpp:
              (showTree):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              * rendering/render_replaced.cpp:
              * rendering/render_replaced.h:
              * rendering/render_style.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36d1136a
  18. 30 Mar, 2006 1 commit
    • bdakin's avatar
      Reviewed by Hyatt. · f061af7f
      bdakin authored
              Fix for <rdar://problem/4472371> REGRESSION(417.9-TOT): Focus ring 
              around link in overflow:auto div isn't clipped to div
      
              Focus rings around the children off overflow:auto divs were not 
              being appropriately clipped because they were being painted with 
              the div's outlineRect, when they should be painted separately. This 
              patch adds two new PaintPhases -- PaintPhaseSelfOutline and 
              PaintPhaseChildOutlines -- to address this problem.
      
              This patch also changes the name of PaintAction back to PaintPhase. 
              Because Hyatt said so.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f061af7f
  19. 28 Mar, 2006 1 commit
    • ggaren's avatar
      Reviewed by Beth. · aa01dc00
      ggaren authored
              - Global replace of getDocument() with document(). Darin suggested this
              in his review of my EventTargetNode patch. It matches the style of
              methods like ownerDocument().
      
              - Changed getDocument() to document(); changed data member document to
              m_document; changed stack variable document to doc.
      
              * bindings/objc/DOM.mm:
              (-[DOMNode ownerDocument]):
              (-[DOMNode KJS::Bindings::]):
              (-[DOMElement _getURLAttribute:]):
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLElement titleDisplayString]):
              (-[DOMHTMLInputElement altDisplayString]):
              (-[DOMHTMLAnchorElement blur]):
              (-[DOMHTMLAnchorElement focus]):
              (-[DOMHTMLImageElement altDisplayString]):
              (-[DOMHTMLAppletElement altDisplayString]):
              (-[DOMHTMLAreaElement altDisplayString]):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString):
              * bridge/mac/FrameViewMac.mm:
              (WebCore::FrameView::updateDashboardRegions):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge initSubframeWithRenderer:]):
              (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/css_base.cpp:
              (WebCore::StyleBase::baseURL):
              * css/css_stylesheetimpl.cpp:
              (WebCore::CSSStyleSheet::CSSStyleSheet):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::initForStyleResolve):
              (WebCore::CSSStyleSelector::canShareStyleWithElement):
              (WebCore::CSSStyleSelector::locateSharedStyle):
              (WebCore::CSSStyleSelector::createStyleForElement):
              (WebCore::CSSStyleSelector::createPseudoStyleForElement):
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::styleRulesForElement):
              (WebCore::CSSStyleSelector::checkOneSelector):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::mapBackgroundImage):
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
              * dom/AbstractView.cpp:
              (WebCore::AbstractView::AbstractView):
              * dom/CDATASection.cpp:
              (WebCore::CDATASection::cloneNode):
              (WebCore::CDATASection::createNew):
              * dom/CharacterData.cpp:
              (WebCore::CharacterData::setData):
              (WebCore::CharacterData::insertData):
              (WebCore::CharacterData::deleteData):
              (WebCore::CharacterData::replaceData):
              (WebCore::CharacterData::dispatchModifiedEvent):
              * dom/Comment.cpp:
              (WebCore::Comment::cloneNode):
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::insertBefore):
              (WebCore::ContainerNode::replaceChild):
              (WebCore::ContainerNode::removeChild):
              (WebCore::ContainerNode::appendChild):
              (WebCore::ContainerNode::addChild):
              (WebCore::ContainerNode::getUpperLeftCorner):
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::createDocument):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::~Document):
              (WebCore::Document::createDocumentFragment):
              (WebCore::Document::adoptNode):
              (WebCore::Document::createElementNS):
              (WebCore::Document::nodeAbsIndex):
              (WebCore::Document::setFocusNode):
              (WebCore::Document::topDocument):
              * dom/DocumentFragment.cpp:
              (WebCore::DocumentFragment::cloneNode):
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::~EventTargetNode):
              (WebCore::EventTargetNode::insertedIntoDocument):
              (WebCore::EventTargetNode::removedFromDocument):
              (WebCore::EventTargetNode::addEventListener):
              (WebCore::EventTargetNode::removeEventListener):
              (WebCore::EventTargetNode::dispatchGenericEvent):
              (WebCore::EventTargetNode::dispatchEvent):
              (WebCore::EventTargetNode::dispatchSubtreeModifiedEvent):
              (WebCore::EventTargetNode::dispatchWindowEvent):
              (WebCore::EventTargetNode::dispatchUIEvent):
              (WebCore::EventTargetNode::dispatchKeyEvent):
              (WebCore::EventTargetNode::dispatchMouseEvent):
              (WebCore::EventTargetNode::dispatchWheelEvent):
              (WebCore::EventTargetNode::removeHTMLEventListener):
              * dom/Node.cpp:
              (WebCore::Node::Node):
              (WebCore::Node::setDocument):
              (WebCore::Node::setChanged):
              (WebCore::Node::checkSetPrefix):
              (WebCore::Node::checkAddChild):
              (WebCore::Node::attach):
              (WebCore::Node::detach):
              (WebCore::Node::createRendererIfNeeded):
              (WebCore::Node::rendererIsNeeded):
              (WebCore::Node::getElementsByTagNameNS):
              (WebCore::Node::ownerDocument):
              (WebCore::Node::setTextContent):
              * dom/Node.h:
              (WebCore::Node::document):
              (WebCore::Node::inDocument):
              * dom/NodeList.cpp:
              (WebCore::NodeList::itemById):
              * dom/Position.cpp:
              (WebCore::Position::documentElement):
              * dom/Range.cpp:
              (WebCore::Range::commonAncestorContainer):
              (WebCore::Range::setStart):
              (WebCore::Range::setEnd):
              (WebCore::Range::compareBoundaryPoints):
              (WebCore::Range::insertNode):
              (WebCore::Range::text):
              (WebCore::Range::setStartAfter):
              (WebCore::Range::setEndBefore):
              (WebCore::Range::setEndAfter):
              (WebCore::Range::surroundContents):
              (WebCore::Range::setStartBefore):
              (WebCore::rangeOfContents):
              * dom/Text.cpp:
              (WebCore::Text::cloneNode):
              (WebCore::Text::createNew):
              * dom/dom2_eventsimpl.cpp:
              (WebCore::MouseRelatedEvent::receivedTarget):
              * dom/dom2_traversalimpl.cpp:
              (WebCore::NodeIterator::NodeIterator):
              * dom/dom_elementimpl.cpp:
              (WebCore::Attribute::createAttrIfNeeded):
              (WebCore::Attr::createTextChild):
              (WebCore::Attr::setValue):
              (WebCore::Attr::cloneNode):
              (WebCore::Element::cloneNode):
              (WebCore::inHTMLDocument):
              (WebCore::Element::setAttribute):
              (WebCore::Element::setAttributeMap):
              (WebCore::Element::createStyleForRenderer):
              (WebCore::Element::createRenderer):
              (WebCore::Element::recalcStyle):
              (WebCore::Element::dispatchAttrRemovalEvent):
              (WebCore::Element::dispatchAttrAdditionEvent):
              (WebCore::Element::updateId):
              (WebCore::Element::removeAttributeNode):
              (WebCore::Element::focus):
              (WebCore::Element::blur):
              (WebCore::NamedAttrMap::setNamedItem):
              (WebCore::NamedMappedAttrMap::parseClassAttribute):
              (WebCore::StyledElement::createInlineStyleDecl):
              (WebCore::StyledElement::parseMappedAttribute):
              (WebCore::StyledElement::createMappedDecl):
              * dom/dom_xmlimpl.cpp:
              (WebCore::EntityReference::cloneNode):
              (WebCore::ProcessingInstruction::cloneNode):
              (WebCore::ProcessingInstruction::checkStyleSheet):
              (WebCore::ProcessingInstruction::sheetLoaded):
              (WebCore::ProcessingInstruction::setStyleSheet):
              * dom/xml_tokenizer.cpp:
              (WebCore::XMLTokenizer::XMLTokenizer):
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplacementFragment::ReplacementFragment):
              (WebCore::ReplaceSelectionCommand::fixupNodeStyles):
              (WebCore::styleForNode):
              * editing/Selection.cpp:
              (WebCore::Selection::toRange):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::~SelectionController):
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::xPosForVerticalArrowNavigation):
              (WebCore::SelectionController::frame):
              (WebCore::SelectionController::layout):
              (WebCore::SelectionController::needsCaretRepaint):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::range):
              (WebCore::SimplifiedBackwardsTextIterator::range):
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::init):
              (WebCore::makeRange):
              * editing/markup.cpp:
              (WebCore::startMarkup):
              (WebCore::shouldSelfClose):
              (WebCore::markup):
              (WebCore::createMarkup):
              * editing/visible_units.cpp:
              (WebCore::previousBoundary):
              (WebCore::nextBoundary):
              (WebCore::previousLinePosition):
              (WebCore::nextLinePosition):
              (WebCore::inSameDocument):
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::HTMLCollection):
              (WebCore::HTMLCollection::resetCollectionInfo):
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::nodeName):
              (WebCore::HTMLElement::cloneNode):
              (WebCore::HTMLElement::innerText):
              (WebCore::HTMLElement::createContextualFragment):
              (WebCore::HTMLElement::setInnerText):
              (WebCore::HTMLElement::setOuterText):
              (WebCore::HTMLElement::isContentEditable):
              (WebCore::HTMLElement::contentEditable):
              (WebCore::HTMLElement::toString):
              (WebCore::HTMLElement::childAllowed):
              (WebCore::HTMLElement::setHTMLEventListener):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formWouldHaveSecureSubmission):
              (WebCore::HTMLFormElement::attach):
              (WebCore::HTMLFormElement::insertedIntoDocument):
              (WebCore::HTMLFormElement::removedFromDocument):
              (WebCore::HTMLFormElement::formData):
              (WebCore::HTMLFormElement::prepareSubmit):
              (WebCore::HTMLFormElement::submit):
              (WebCore::HTMLFormElement::reset):
              (WebCore::HTMLFormElement::parseMappedAttribute):
              (WebCore::HTMLFormElement::registerFormElement):
              (WebCore::HTMLFormElement::removeFormElement):
              * html/HTMLGenericFormElement.cpp:
              (WebCore::HTMLGenericFormElement::attach):
              (WebCore::HTMLGenericFormElement::insertedIntoTree):
              (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::~HTMLInputElement):
              (WebCore::HTMLInputElement::isKeyboardFocusable):
              (WebCore::HTMLInputElement::focus):
              (WebCore::HTMLInputElement::setInputType):
              (WebCore::HTMLInputElement::parseMappedAttribute):
              (WebCore::HTMLInputElement::attach):
              (WebCore::HTMLInputElement::setChecked):
              (WebCore::HTMLInputElement::preDispatchEventHandler):
              (WebCore::HTMLInputElement::defaultEventHandler):
              (WebCore::HTMLInputElement::src):
              * html/HTMLKeygenElement.cpp:
              (WebCore::HTMLKeygenElement::appendFormData):
              * html/HTMLLabelElement.cpp:
              (WebCore::HTMLLabelElement::formElement):
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::text):
              (WebCore::HTMLOptionElement::setText):
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::HTMLParser):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::~HTMLSelectElement):
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::~HTMLTextAreaElement):
              (WebCore::HTMLTextAreaElement::setDefaultValue):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::HTMLTokenizer):
              * html/html_baseimpl.cpp:
              (WebCore::HTMLBodyElement::createLinkDecl):
              (WebCore::HTMLBodyElement::mapToEntry):
              (WebCore::HTMLBodyElement::parseMappedAttribute):
              (WebCore::HTMLBodyElement::insertedIntoDocument):
              (WebCore::HTMLFrameElement::isURLAllowed):
              (WebCore::HTMLFrameElement::openURL):
              (WebCore::HTMLFrameElement::attach):
              (WebCore::HTMLFrameElement::close):
              (WebCore::HTMLFrameElement::contentFrame):
              (WebCore::HTMLFrameElement::frameWidth):
              (WebCore::HTMLFrameElement::frameHeight):
              (WebCore::HTMLFrameSetElement::parseMappedAttribute):
              (WebCore::HTMLIFrameElement::parseMappedAttribute):
              (WebCore::HTMLIFrameElement::insertedIntoDocument):
              (WebCore::HTMLIFrameElement::removedFromDocument):
              (WebCore::HTMLIFrameElement::attach):
              (WebCore::HTMLIFrameElement::src):
              * html/html_blockimpl.cpp:
              (WebCore::HTMLParagraphElement::checkDTD):
              * html/html_headimpl.cpp:
              (WebCore::HTMLBaseElement::removedFromDocument):
              (WebCore::HTMLBaseElement::process):
              (WebCore::HTMLLinkElement::setDisabledState):
              (WebCore::HTMLLinkElement::parseMappedAttribute):
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::setStyleSheet):
              (WebCore::HTMLLinkElement::sheetLoaded):
              (WebCore::HTMLLinkElement::href):
              (WebCore::HTMLMetaElement::process):
              (WebCore::HTMLScriptElement::childrenChanged):
              (WebCore::HTMLScriptElement::parseMappedAttribute):
              (WebCore::HTMLScriptElement::insertedIntoDocument):
              (WebCore::HTMLScriptElement::evaluateScript):
              (WebCore::HTMLScriptElement::setText):
              (WebCore::HTMLScriptElement::src):
              (WebCore::HTMLStyleElement::insertedIntoDocument):
              (WebCore::HTMLStyleElement::removedFromDocument):
              (WebCore::HTMLStyleElement::childrenChanged):
              (WebCore::HTMLStyleElement::sheetLoaded):
              (WebCore::HTMLTitleElement::insertedIntoDocument):
              (WebCore::HTMLTitleElement::removedFromDocument):
              (WebCore::HTMLTitleElement::childrenChanged):
              (WebCore::HTMLTitleElement::setText):
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageLoader::~HTMLImageLoader):
              (WebCore::HTMLImageLoader::updateFromElement):
              (WebCore::HTMLImageLoader::notifyFinished):
              (WebCore::HTMLImageElement::parseMappedAttribute):
              (WebCore::HTMLImageElement::insertedIntoDocument):
              (WebCore::HTMLImageElement::removedFromDocument):
              (WebCore::HTMLImageElement::width):
              (WebCore::HTMLImageElement::height):
              (WebCore::HTMLImageElement::src):
              (WebCore::HTMLMapElement::~HTMLMapElement):
              (WebCore::HTMLMapElement::parseMappedAttribute):
              (WebCore::HTMLAreaElement::href):
              * html/html_inlineimpl.cpp:
              (WebCore::HTMLAnchorElement::isKeyboardFocusable):
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              (WebCore::HTMLAnchorElement::href):
              (WebCore::HTMLAnchorElement::blur):
              (WebCore::HTMLAnchorElement::focus):
              * html/html_objectimpl.cpp:
              (WebCore::HTMLAppletElement::parseMappedAttribute):
              (WebCore::HTMLAppletElement::insertedIntoDocument):
              (WebCore::HTMLAppletElement::removedFromDocument):
              (WebCore::HTMLAppletElement::createRenderer):
              (WebCore::HTMLAppletElement::getAppletInstance):
              (WebCore::HTMLEmbedElement::getEmbedInstance):
              (WebCore::HTMLEmbedElement::parseMappedAttribute):
              (WebCore::HTMLEmbedElement::rendererIsNeeded):
              (WebCore::HTMLEmbedElement::insertedIntoDocument):
              (WebCore::HTMLEmbedElement::removedFromDocument):
              (WebCore::HTMLObjectElement::getObjectInstance):
              (WebCore::HTMLObjectElement::parseMappedAttribute):
              (WebCore::HTMLObjectElement::rendererIsNeeded):
              (WebCore::HTMLObjectElement::insertedIntoDocument):
              (WebCore::HTMLObjectElement::removedFromDocument):
              (WebCore::HTMLObjectElement::updateDocNamedItem):
              (WebCore::HTMLParamElement::parseMappedAttribute):
              * html/html_tableimpl.cpp:
              (WebCore::HTMLTableElement::createTHead):
              (WebCore::HTMLTableElement::createTFoot):
              (WebCore::HTMLTableElement::createCaption):
              (WebCore::HTMLTableElement::insertRow):
              (WebCore::HTMLTableElement::addChild):
              (WebCore::HTMLTableElement::mapToEntry):
              (WebCore::HTMLTableElement::parseMappedAttribute):
              (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
              (WebCore::HTMLTableElement::getSharedCellDecl):
              (WebCore::HTMLTablePartElement::mapToEntry):
              (WebCore::HTMLTablePartElement::parseMappedAttribute):
              (WebCore::HTMLTableSectionElement::insertRow):
              (WebCore::HTMLTableRowElement::insertCell):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::~DOMNode):
              (KJS::DOMNode::mark):
              (KJS::DOMElement::getValueProperty):
              (KJS::DOMElementProtoFunc::callAsFunction):
              (KJS::checkNodeSecurity):
              (KJS::toJS):
              * khtml/ecma/kjs_html.cpp:
              (KJS::JSHTMLElement::implementsCall):
              (KJS::JSHTMLElement::bodyGetter):
              (KJS::JSHTMLElement::anchorGetter):
              (KJS::JSHTMLElement::getValueProperty):
              (KJS::JSHTMLElement::bodySetter):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              * khtml/xbl/xbl_binding.cpp:
              (XBL::XBLBindingChain::failed):
              (XBL::m_nextBinding):
              (XBL::XBLBinding::setXBLDocument):
              * khtml/xbl/xbl_protobinding.cpp:
              (XBL::XBLPrototypeBinding::document):
              * khtml/xsl/XSLStyleSheet.cpp:
              (WebCore::XSLStyleSheet::XSLStyleSheet):
              * khtml/xsl/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::createDocumentFromSource):
              (WebCore::xmlDocPtrFromNode):
              (WebCore::XSLTProcessor::transformToString):
              * ksvg2/svg/SVGAElement.cpp:
              (SVGAElement::defaultEventHandler):
              * ksvg2/svg/SVGAnimateColorElement.cpp:
              (SVGAnimateColorElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElement.cpp:
              (SVGAnimateElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              (SVGAnimateTransformElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::closeRenderer):
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::canvasResource):
              * ksvg2/svg/SVGElement.cpp:
              (WebCore::SVGElement::addSVGEventListener):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::rebuildStops):
              * ksvg2/svg/SVGHelper.cpp:
              (SVGHelper::PercentageOfViewport):
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              (SVGLinearGradientElement::buildGradient):
              * ksvg2/svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              (WebCore::SVGRadialGradientElement::buildGradient):
              * ksvg2/svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::setCurrentScale):
              (WebCore::SVGSVGElement::addSVGWindowEventListner):
              * ksvg2/svg/SVGSetElement.cpp:
              (SVGSetElement::handleTimerEvent):
              * ksvg2/svg/SVGStyleElement.cpp:
              (SVGStyleElement::childrenChanged):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::canvas):
              * ksvg2/svg/SVGTitleElement.cpp:
              (WebCore::SVGTitleElement::closeRenderer):
              (WebCore::SVGTitleElement::insertedIntoDocument):
              (WebCore::SVGTitleElement::removedFromDocument):
              (WebCore::SVGTitleElement::childrenChanged):
              * ksvg2/svg/SVGUseElement.cpp:
              (SVGUseElement::closeRenderer):
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityPerformAction:]):
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              * page/Frame.cpp:
              (WebCore::parentFromOwnerRenderer):
              (WebCore::Frame::frameForNode):
              (WebCore::Frame::clearDocumentFocus):
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchMouseEvent):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              * rendering/RenderCanvas.cpp:
              (WebCore::RenderCanvas::RenderCanvas):
              (WebCore::RenderCanvas::paintBoxDecorations):
              (WebCore::RenderCanvas::repaintViewRectangle):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageMap):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::createObject):
              (WebCore::RenderObject::RenderObject):
              (WebCore::RenderObject::isRoot):
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::document):
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::isFocused):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::focusIn):
              (WebCore::RenderWidget::focusOut):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa01dc00
  20. 20 Mar, 2006 2 commits
    • darin's avatar
      Rubber stamped by Eric. · 98fa8b83
      darin authored
              - moved khtml/html files all into html directory
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new paths.
              * WebCore.vcproj/WebCore/build-generated-files.sh: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * khtml/html: Removed.
      
              * html/DocTypeStrings.gperf: Moved.
              * html/FormDataList.cpp: Ditto.
              * html/FormDataList.h: Ditto.
              * html/HTMLBaseFontElement.cpp: Ditto.
              * html/HTMLBaseFontElement.h: Ditto.
              * html/HTMLButtonElement.cpp: Ditto.
              * html/HTMLButtonElement.h: Ditto.
              * html/HTMLCanvasElement.cpp: Ditto.
              * html/HTMLCanvasElement.h: Ditto.
              * html/HTMLCollection.cpp: Ditto.
              * html/HTMLCollection.h: Ditto.
              * html/HTMLDocument.cpp: Ditto.
              * html/HTMLDocument.h: Ditto.
              * html/HTMLElement.cpp: Ditto.
              * html/HTMLElement.h: Ditto.
              * html/HTMLElementFactory.cpp: Ditto.
              * html/HTMLElementFactory.h: Ditto.
              * html/HTMLEntityNames.gperf: Ditto.
              * html/HTMLFieldSetElement.cpp: Ditto.
              * html/HTMLFieldSetElement.h: Ditto.
              * html/HTMLFormCollection.cpp: Ditto.
              * html/HTMLFormCollection.h: Ditto.
              * html/HTMLFormElement.cpp: Ditto.
              * html/HTMLFormElement.h: Ditto.
              * html/HTMLGenericFormElement.cpp: Ditto.
              * html/HTMLGenericFormElement.h: Ditto.
              * html/HTMLInputElement.cpp: Ditto.
              * html/HTMLInputElement.h: Ditto.
              * html/HTMLIsIndexElement.cpp: Ditto.
              * html/HTMLIsIndexElement.h: Ditto.
              * html/HTMLKeygenElement.cpp: Ditto.
              * html/HTMLKeygenElement.h: Ditto.
              * html/HTMLLabelElement.cpp: Ditto.
              * html/HTMLLabelElement.h: Ditto.
              * html/HTMLLegendElement.cpp: Ditto.
              * html/HTMLLegendElement.h: Ditto.
              * html/HTMLNameCollection.cpp: Ditto.
              * html/HTMLNameCollection.h: Ditto.
              * html/HTMLNames.cpp: Ditto.
              * html/HTMLNames.h: Ditto.
              * html/HTMLOptGroupElement.cpp: Ditto.
              * html/HTMLOptGroupElement.h: Ditto.
              * html/HTMLOptionElement.cpp: Ditto.
              * html/HTMLOptionElement.h: Ditto.
              * html/HTMLOptionsCollection.cpp: Ditto.
              * html/HTMLOptionsCollection.h: Ditto.
              * html/HTMLParser.cpp: Ditto.
              * html/HTMLParser.h: Ditto.
              * html/HTMLSelectElement.cpp: Ditto.
              * html/HTMLSelectElement.h: Ditto.
              * html/HTMLTextAreaElement.cpp: Ditto.
              * html/HTMLTextAreaElement.h: Ditto.
              * html/HTMLTextFieldInnerElement.cpp: Ditto.
              * html/HTMLTextFieldInnerElement.h: Ditto.
              * html/HTMLTokenizer.cpp: Ditto.
              * html/HTMLTokenizer.h: Ditto.
              * html/html_baseimpl.cpp: Ditto.
              * html/html_baseimpl.h: Ditto.
              * html/html_blockimpl.cpp: Ditto.
              * html/html_blockimpl.h: Ditto.
              * html/html_headimpl.cpp: Ditto.
              * html/html_headimpl.h: Ditto.
              * html/html_imageimpl.cpp: Ditto.
              * html/html_imageimpl.h: Ditto.
              * html/html_inlineimpl.cpp: Ditto.
              * html/html_inlineimpl.h: Ditto.
              * html/html_listimpl.cpp: Ditto.
              * html/html_listimpl.h: Ditto.
              * html/html_objectimpl.cpp: Ditto.
              * html/html_objectimpl.h: Ditto.
              * html/html_tableimpl.cpp: Ditto.
              * html/html_tableimpl.h: Ditto.
      
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/CSSGrammar.y:
              * css/cssstyleselector.cpp:
              * dom/Document.cpp:
              * dom/EventTargetNode.cpp:
              * dom/NameNodeList.cpp:
              * dom/Node.cpp:
              * dom/Position.cpp:
              * dom/dom_elementimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteSelectionCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/TextIterator.cpp:
              * editing/VisiblePosition.cpp:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/visible_units.cpp:
              * html/CanvasRenderingContext2D.cpp:
              * kcanvas/KCanvasTreeDebug.cpp:
              * khtml/ecma/JSDOMParser.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/misc/decoder.cpp:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * kwq/WebCoreAXObject.mm:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderHTMLCanvas.cpp:
              * rendering/RenderImage.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderTable.cpp:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTheme.cpp:
              * rendering/render_applet.cpp:
              * rendering/render_button.cpp:
              * rendering/render_frames.cpp:
              * rendering/render_list.cpp:
              Updated includes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98fa8b83
    • eseidel's avatar
      2006-03-17 Eric Seidel <eseidel@apple.com> · 8b17b671
      eseidel authored
              Reviewed by darin.
      
              Move Form code from MacFrame to Frame.
              Move GraphicsContext code from GraphicsContextMac to GraphicsContext.
              Use IntRect, FloatRect in more places throughout the code.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7824
      
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame):
              (WebCore::MacFrame::searchForLabelsAboveCell):
              (WebCore::MacFrame::searchForLabelsBeforeElement):
              (WebCore::dictionaryFromHashMap):
              (WebCore::MacFrame::submitForm):
              (WebCore::MacFrame::setView):
              (WebCore::MacFrame::currentEventIsMouseDownInWidget):
              (WebCore::MacFrame::currentEventIsKeyboardOptionTab):
              (WebCore::MacFrame::handleKeyboardOptionTabInView):
              (WebCore::MacFrame::tabsToAllControls):
              (WebCore::MacFrame::shouldDragAutoNode):
              (WebCore::MacFrame::selectionImage):
              (WebCore::MacFrame::snapshotDragImage):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge nextKeyView]):
              (-[WebCoreFrameBridge previousKeyView]):
              (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
              (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::paint):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::clearRecordedFormValues):
              (WebCore::Frame::recordFormValue):
              (WebCore::Frame::didNotOpenURL):
              (WebCore::scanForForm):
              (WebCore::Frame::paint):
              (WebCore::Frame::prepareForUserAction):
              * page/Frame.h:
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState):
              (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
              (WebCore::GraphicsContextPrivate::~GraphicsContextPrivate):
              (WebCore::GraphicsContext::save):
              (WebCore::GraphicsContext::restore):
              (WebCore::GraphicsContext::font):
              (WebCore::GraphicsContext::setFont):
              (WebCore::GraphicsContext::pen):
              (WebCore::GraphicsContext::setPen):
              (WebCore::GraphicsContext::setBrush):
              (WebCore::GraphicsContext::brush):
              (WebCore::GraphicsContext::setUsesInactiveTextBackgroundColor):
              (WebCore::GraphicsContext::usesInactiveTextBackgroundColor):
              (WebCore::GraphicsContext::updatingControlTints):
              (WebCore::GraphicsContext::setUpdatingControlTints):
              (WebCore::GraphicsContext::setPaintingDisabled):
              (WebCore::GraphicsContext::paintingDisabled):
              (WebCore::GraphicsContext::printing):
              (WebCore::GraphicsContext::drawImageAtPoint):
              (WebCore::GraphicsContext::drawImageInRect):
              (WebCore::GraphicsContext::drawImage):
              (WebCore::GraphicsContext::initFocusRing):
              (WebCore::GraphicsContext::clearFocusRing):
              (WebCore::GraphicsContext::addFocusRingRect):
              (WebCore::GraphicsContext::focusRingWidth):
              (WebCore::GraphicsContext::focusRingOffset):
              (WebCore::GraphicsContext::focusRingRects):
              * platform/GraphicsContext.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::fillRectSourceOver):
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContext::GraphicsContext):
              (WebCore::GraphicsContext::~GraphicsContext):
              (WebCore::GraphicsContext::savePlatformState):
              (WebCore::GraphicsContext::restorePlatformState):
              (WebCore::GraphicsContext::drawRect):
              (WebCore::GraphicsContext::setColorFromBrush):
              (WebCore::GraphicsContext::setColorFromPen):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawEllipse):
              (WebCore::GraphicsContext::drawArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              (WebCore::GraphicsContext::drawFloatImage):
              (WebCore::GraphicsContext::drawTiledImage):
              (WebCore::GraphicsContext::drawScaledAndTiledImage):
              (WebCore::GraphicsContext::selectedTextBackgroundColor):
              (WebCore::GraphicsContext::fillRect):
              (WebCore::GraphicsContext::addClip):
              (WebCore::GraphicsContext::addRoundedRectClip):
              (WebCore::GraphicsContext::beginTransparencyLayer):
              (WebCore::GraphicsContext::endTransparencyLayer):
              (WebCore::GraphicsContext::setShadow):
              (WebCore::GraphicsContext::clearShadow):
              (WebCore::GraphicsContext::drawFocusRing):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b17b671
  21. 19 Mar, 2006 1 commit
  22. 07 Mar, 2006 3 commits
    • hyatt's avatar
      Eliminate two more unneeded arguments from drawText · 43009edf
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43009edf
    • hyatt's avatar
      Remove unused parameters from drawText. · dc234314
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc234314
    • darin's avatar
      Reviewed by Adele, except for the first change listed. · 89ec05ae
      darin authored
              - fix recently-introduced bug that GuardMalloc found while I was debugging my other change
      
              * rendering/render_frames.cpp: (WebCore::RenderPart::~RenderPart):
              Set m_widget to 0 before calling deref so we don't end up trying to do unwanted work.
      
              - removed 10 more files from KWQ
      
              * ForwardingHeaders/klocale.h: Removed.
      
              * khtml/misc/helper.cpp: Removed.
              * khtml/misc/helper.h: Removed.
      
              * kwq/KWQCollection.h: Removed.
              * kwq/KWQKCookieJar.h: Removed.
              * kwq/KWQKCookieJar.mm: Removed.
              * kwq/KWQKLocale.h: Removed.
              * kwq/KWQKLocale.mm: Removed.
              * kwq/KWQKURL.h: Removed.
              * kwq/KWQKURL.mm: Removed.
              * kwq/KWQTextUtilities.h: Removed.
              * kwq/KWQTextUtilities.mm: Removed.
              * kwq/KWQView.h: Removed.
      
              * platform/CookieJar.h: Added.
              * platform/Language.h: Added.
              * platform/LocalizedStrings.h: Added.
              * platform/TextBoundaries.h: Added.
              * platform/mac/CookieJar.mm: Added.
              * platform/mac/Language.mm: Added.
              * platform/mac/LocalizedStringsMac.mm: Added.
              * platform/mac/TextBoundaries.mm: Added.
              * platform/mac/WebCoreWidgetHolder.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removed and added files.
      
              * bridge/mac/WebCoreFrameBridge.mm: Updated includes.
              (-[WebCoreFrameBridge elementForView:]): Changed KWQWidgetHolder to WebCoreWidgetHolder.
      
              * editing/visible_units.cpp:
              (WebCore::previousWordPositionBoundary):
              (WebCore::nextWordPositionBoundary):
              (WebCore::previousSentencePositionBoundary):
              (WebCore::nextSentencePositionBoundary):
              Call TextBoundaries.h functions instead of helper.h ones.
      
              * khtml/ecma/kjs_navigator.cpp: (KJS::Navigator::getValueProperty):
              * ksvg2/svg/SVGTestsImpl.cpp: (WebCore::SVGTestsImpl::isValid):
              Changed to call defaultLanguage; cleaned up formatting.
      
              * khtml/html/HTMLFormElementImpl.cpp: Removed stray comment.
      
              * khtml/html/html_documentimpl.cpp:
              (WebCore::HTMLDocumentImpl::cookie):
              (WebCore::HTMLDocumentImpl::setCookie):
              Call CookieJar.h functions.
      
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * dom/DocumentImpl.cpp:
              * dom/dom_position.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/html/HTMLInputElementImpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/misc/decoder.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * kwq/KWQComboBox.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.cpp:
              * kwq/KWQListImpl.h:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQSlider.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQValueList.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::beforeMouseDown):
              (WebCore::Widget::afterMouseDown):
              * rendering/render_applet.cpp:
              * rendering/render_form.cpp:
              * rendering/render_image.cpp:
              * rendering/render_list.cpp:
              Updated includes and protocol names.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::write): Remove
              QT_VERSION code.
              * platform/QString.h: Remove QT_VERSION.
      
              * kwq/KWQPtrList.h: Change to no longer use QPtrCollection.
      
              * kwq/KWQRenderTreeDebug.h:
              * kwq/KWQRenderTreeDebug.cpp: (externalRepresentation):
              Remove unused debuggingRenderTree boolean.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89ec05ae
  23. 04 Mar, 2006 1 commit
    • hyatt's avatar
      Fix for bug 7586, eliminate QFontMetrics. · ef0a939d
      hyatt authored
              Reviewed by eric
      
              * WebCore.xcodeproj/project.pbxproj:
              * css/css_valueimpl.cpp:
              (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValue):
              * kwq/KWQFontMetrics.h: Removed.
              * kwq/KWQFontMetrics.mm: Removed.
              * platform/Font.cpp:
              (WebCore::m_wordSpacing):
              (WebCore::Font::Font):
              (WebCore::Font::operator=):
              (WebCore::Font::~Font):
              (WebCore::Font::update):
              (WebCore::Font::width):
              * platform/Font.h:
              (WebCore::Font::operator==):
              (WebCore::Font::width):
              (WebCore::Font::height):
              * platform/FontRenderer.h: Added.
              (WebCore::FontRenderer::isFixedPitch):
              * platform/GraphicsContext.h:
              * platform/mac/FontMac.mm: Added.
              (WebCore::m_renderer):
              (WebCore::FontRenderer::getWebCoreFont):
              (WebCore::FontRenderer::getRenderer):
              (WebCore::FontRenderer::determinePitch):
              (WebCore::FontRenderer::update):
              (WebCore::Font::getWebCoreFont):
              (WebCore::Font::ascent):
              (WebCore::Font::descent):
              (WebCore::Font::lineSpacing):
              (WebCore::Font::xHeight):
              (WebCore::Font::isFixedPitch):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::drawText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::checkSelectionPoint):
              * platform/mac/GraphicsContextMac.mm:
              * rendering/InlineTextBox.h:
              * rendering/RenderBlock.cpp:
              (WebCore::stripTrailingSpace):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::trimmedMinMaxWidth):
              * rendering/RenderText.h:
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::calcMinMaxWidth):
              * rendering/bidi.cpp:
              (khtml::RenderBlock::tabWidth):
              (khtml::RenderBlock::checkLinesForTextOverflow):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::caretRect):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::lineHeight):
              (WebCore::RenderFlow::caretRect):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::paint):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesVertically):
              * rendering/render_list.cpp:
              (WebCore::toHebrew):
              (WebCore::RenderListMarker::paint):
              (WebCore::RenderListMarker::calcMinMaxWidth):
              (WebCore::RenderListMarker::baselinePosition):
              (WebCore::RenderListMarker::getRelativeMarkerRect):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::getVerticalPosition):
              (WebCore::RenderObject::lineHeight):
              (WebCore::RenderObject::baselinePosition):
              * rendering/render_object.h:
              * rendering/render_style.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef0a939d
  24. 01 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Eric. · 9d0a628e
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7444
                move QPainter to platform directory and name it GraphicsContext
      
              * platform/GraphicsContext.h: Added.
              * platform/TextDirection.h: Added.
              * platform/cg/GraphicsContextCG.cpp: Added.
              * platform/mac/GraphicsContextMac.mm: Added.
      
              * kwq/KWQPainter.h: Removed.
              * kwq/KWQPainter.mm: Removed.
              * ForwardingHeaders/qpainter.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for moved files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for moved files.
              * platform/win/TemporaryLinkStubs.cpp: Updated.
      
              * bridge/mac/MacFrame.mm: (WebCore::MacFrame::setDisplaysWithFocusAttributes):
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              * editing/SelectionController.h:
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              * kcanvas/KCanvasResources.cpp: (We...
      9d0a628e
  25. 28 Feb, 2006 1 commit
    • 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
  26. 24 Feb, 2006 2 commits
    • ggaren's avatar
      LayoutTests: · bb167e66
      ggaren authored
              Reviewed by Hyatt.
      
              -tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=5146
      
              * fast/replaced/maxheight-percent.html: Added.
              * fast/replaced/maxheight-pxs.html: Added.
              * fast/replaced/maxwidth-percent.html: Added.
              * fast/replaced/maxwidth-pxs.html: Added.
              * fast/replaced/minheight-percent.html: Added.
              * fast/replaced/minheight-pxs.html: Added.
              * fast/replaced/minwidth-percent.html: Added.
              * fast/replaced/minwidth-pxs.html: Added.
              * fast/replaced/resources/1x1-blue.png: Added.
              * fast/replaced/resources/square-blue-100x100.png: Added.
      
      WebCore:
      
              Reviewed by Hyatt, tweaked and landed by ggaren.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5146
                max-height/max-width not resizing images with correct aspect ratio
      
              This patch is a port and adaptation of Allan Sandfeld Jensen's (carewolf)
              patch of http://bugs.kde.org/show_bug.cgi?id=120107 with the needed
              modifications to suit the Webcore tree.  Makes images respect min/max 
              sizes and their intrinsic aspect ratios at the same time according to 
              CSS 2.1 (http://www.w3.org/TR/CSS21/visudet.html#min-max-widths).  
      
              Test: fast/replaced/maxheight-percent.html
              Test: fast/replaced/maxheight-pxs.html
              Test: fast/replaced/maxwidth-percent.html
              Test: fast/replaced/maxwidth-pxs.html
              Test: fast/replaced/minheight-percent.html
              Test: fast/replaced/minheight-pxs.html
              Test: fast/replaced/minwidth-percent.html
              Test: fast/replaced/minwidth-pxs.html
      
              * rendering/render_box.cpp:
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedWidthUsing):
              (WebCore::RenderBox::calcReplacedHeight): 
              (WebCore::RenderBox::calcReplacedHeightUsing): Calculate percent heights correctly
              * rendering/render_image.cpp: Respect aspect ratios and calculate max/min
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
              (WebCore::RenderImage::calcAspectRatioWidth): Added
              (WebCore::RenderImage::calcAspectRatioHeight): Added
              (WebCore::RenderImage::calcMinMaxWidth): Added
              * rendering/render_image.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb167e66
    • hyatt's avatar
      In preparation for the elimination of QFont and QFontMetrics, rename... · 3e99d1ca
      hyatt authored
              In preparation for the elimination of QFont and QFontMetrics, rename methods on RenderStyle.  htmlFont() becomes simply
              font().  The old font() method turns into qfont().  Also added a helper for obtaining the fontDescription() directly from
              the RenderStyle (without first obtaining the htmlFont()).
      
              Reviewed by darin
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (-[DOMElement _font]):
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::attributedString):
              (WebCore::MacFrame::fontForSelection):
              (WebCore::MacFrame::fontAttributesForSelectionStart):
              * css/css_computedstyle.cpp:
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/css_valueimpl.cpp:
              (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::styleForElement):
              (WebCore::CSSStyleSelector::pseudoStyleForElement):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::checkForTextSizeAdjust):
              (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::recalcStyle):
              * editing/visible_text.cpp:
              (khtml::TextIterator::exitNode):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValue):
              * kwq/KWQAccObject.mm:
              (AXAttributeStringSetStyle):
              * rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paint):
              (khtml::InlineTextBox::offsetForPosition):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::shouldUseMonospaceCache):
              (WebCore::RenderText::font):
              (WebCore::RenderText::width):
              (WebCore::RenderText::htmlFont):
              * rendering/bidi.cpp:
              (khtml::RenderBlock::tabWidth):
              (khtml::RenderBlock::checkLinesForTextOverflow):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::layoutVerticalBox):
              * 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::paintDecorations):
              (WebCore::EllipsisBox::paint):
              * rendering/render_list.cpp:
              (RenderListItem::getAbsoluteRepaintRect):
              (RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::lineHeight):
              * rendering/render_object.h:
              (WebCore::RenderObject::font):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::setStyle):
              * rendering/render_style.h:
              (khtml::RenderStyle::font):
              (khtml::RenderStyle::fontDescription):
              (khtml::RenderStyle::qfont):
              * rendering/render_theme_mac.mm:
              (WebCore::RenderThemeMac::setFontFromControlSize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e99d1ca
  27. 23 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by John Sullivan. · 947a31b6
      darin authored
              - moved QMouseEvent, QKeyEvent, QWheelEvent, and "Foundation extras"
                from kwq to platform directory
              - moved history function from kwq to bridge directory
              - eliminated QEvent, MousePressEvent, MouseDoubleClickEvent, MouseMoveEvent,
                MoveReleaseEvent, and DrawContents classes
              - merged NodeImpl::MouseEvent and the MouseEvent from khtml_events.h into
                a single class in the page directory
              - broke khtmllayout.h out into a file for the Length structure in the css
                directory and a file for the GapRects structure in the rendering directory
              - redid the Length structure to work more portably by not relying on bitfield
                layout and improve the names to no longer explicitly mention "width"
              - reduced use of QGuardedPtr and other uses of the QObject "destroyed" signal
      
              * ForwardingHeaders/kparts: Removed.
              * ForwardingHeaders/qevent.h: Removed.
              * khtml/khtml_events.cpp: Removed.
              * khtml/khtml_events.h: Removed.
              * khtml/misc/khtmllayout.h: Removed.
              * kwq/KWQEvent.h: Removed.
              * kwq/KWQEvent.mm: Removed.
              * kwq/KWQFoundationExtras.h: Removed.
              * kwq/KWQKHistoryProvider.mm: Removed.
              * kwq/KWQKPartsHistoryProvider.h: Removed.
      
              * bridge/History.h: Added.
              * bridge/mac/HistoryMac.mm: Added.
              * css/Length.h: Added.
              * page/MouseEventWithHitTestResults.h: Added.
              * platform/KeyEvent.h: Added.
              * platform/MouseEvent.h: Added.
              * platform/WheelEvent.h: Added.
              * platform/mac/FoundationExtras.h: Added.
              * platform/mac/KeyEventMac.mm: Added.
              * platform/mac/MouseEventMac.mm: Added.
              * platform/mac/WheelEventMac.mm: Added.
              * rendering/GapRects.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for above changes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for above changes.
      
              * bridge/mac/MacFrame.h: Removed unused parameters from urlSelected functions.
              Replaced MouseEvent, MousePressEvent, MouseMoveEvent, and MouseReleaseEvent
              with MouseEventWithHitTestResults.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::urlSelected): Removed unused parameters.
              (WebCore::MacFrame::wheelEvent): Changed to use WheelEvent.
              (WebCore::MacFrame::keyEvent): Changed to use KeyEvent.
              (WebCore::MacFrame::khtmlMousePressEvent): Changed parameter type.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Ditto.
              (WebCore::MacFrame::khtmlMouseReleaseEvent): Ditto.
              (WebCore::MacFrame::passSubframeEventToSubframe): Ditto.
              (WebCore::MacFrame::mouseDown): Changed to use MouseEvent.
              (WebCore::MacFrame::mouseDragged): Ditto.
              (WebCore::MacFrame::mouseUp): Ditto.
              (WebCore::MacFrame::mouseMoved): Ditto.
              (WebCore::MacFrame::sendContextMenuEvent): Ditto.
      
              * css/csshelper.h: Removed a bunch of unused declarations.
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent): Changed to take a MouseEvent
              and return a MouseEventWithHitTestResults.
              (WebCore::DocumentImpl::defaultEventHandler): Changed to use KeyEvent.
      
              * dom/NodeImpl.h: Removed NodeImpl::MouseEvent and NodeImpl::MouseEventType.
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent): Changed to always get the type and
              detail values from the caller, never from the event. Changed to use MouseEvent.
              (WebCore::NodeImpl::dispatchKeyEvent): Changed to use KeyEvent.
              (WebCore::NodeImpl::dispatchWheelEvent): Changed to use WheelEvent.
      
              * dom/dom2_eventsimpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl): Changed to use KeyEvent.
              (WebCore::KeyboardEventImpl::charCode): Ditto.
      
              * dom/dom_elementimpl.h: Removed unused mouseEventHandler function.
      
              * khtml/ecma/domparser.h: Use RefPtr instead of QGuardedPtr to hold the reference
              to the document.
      
              * khtml/ecma/kjs_proxy.h: (WebCore::KJSProxyImpl::haveInterpreter): Added. For
              use in the Frame destructor so we can get an existing KJS::Window object without
              creating a new interpreter and window object.
      
              * khtml/ecma/kjs_window.h: Merged WindowQObject into Window. Changed all the
              guarded pointers to Frame to use plain old pointers that are cleared by the
              Frame explicitly (by the function disconnectFrame). Made the pointers to all
              the sub-objects of KJS::Window be mutable so we don't have to const_cast in
              the functions to get (and lazily create) them.
              * khtml/ecma/kjs_window.cpp:
              (KJS::DOMWindowTimer::DOMWindowTimer): Use Window* instead of WindowQObject*.
              (KJS::History::disconnectFrame): Added. Clears m_frame.
              (KJS::FrameArray::disconnectFrame): Added. Clears m_frame.
              (KJS::Window::Window): Removed code to create a WindowQObject.
              (KJS::Window::~Window): Removed code to delete a WindowQObject.
              (KJS::Window::location): Remove now-unneeded const_cast.
              (KJS::Window::selection): Ditto.
              (KJS::Window::locationbar): Ditto.
              (KJS::Window::menubar): Ditto.
              (KJS::Window::personalbar): Ditto.
              (KJS::Window::statusbar): Ditto.
              (KJS::Window::toolbar): Ditto.
              (KJS::Window::scrollbars): Ditto.
              (KJS::Window::getValueProperty): Update since m_frame is now a raw pointer.
              (KJS::Window::getOwnPropertySlot): Ditto.
              (KJS::Window::toBoolean): Ditto.
              (KJS::Window::scheduleClose): Remove assert that WindowQObject* is not null.
              (KJS::Window::isSafeScript): Update since m_frame is now a raw pointer.
              (KJS::Window::clear): Remove code to delete a WindowQObject. Added a call
              to clearAllTimeouts instead.
              (KJS::Window::clearAllTimeouts): Added. Does equivalent of the WindowQObject
              destructor.
              (KJS::Window::installTimeout): Moved to Window from WindowQObject.
              (KJS::Window::pauseTimeouts): Ditto.
              (KJS::Window::resumeTimeouts): Ditto.
              (KJS::Window::clearTimeout): Ditto.
              (KJS::Window::timerFired): Ditto.
              (KJS::Window::disconnectFrame): Added. Sets all the frame pointers to 0.
              (KJS::FrameArray::getOwnPropertySlot): Update since m_frame is now a raw pointer.
              (KJS::Location::getOwnPropertySlot): Ditto.
              (KJS::Location::put): Ditto.
              (KJS::Selection::getOwnPropertySlot): Ditto.
              (KJS::BarInfo::getOwnPropertySlot): Ditto.
      
              * khtml/html/html_baseimpl.h: Forward-declare Length instead of including khtmllayout.h.
              * khtml/html/html_imageimpl.h: Ditto.
      
              * khtml/html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              Changed to use KeyEvent and removed the code to extract the button and state from the
              DOM even to pass to urlSelected.
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::defaultEventHandler): Ditto.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::timerFired): Change to use
              a RefPtr instead of a QGuardedPtr.
      
              * khtml/misc/helper.h:
              * khtml/misc/helper.cpp: Removed printpainter and setPrintPainter.
      
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp: (WebCore::SVGDocumentImpl::dispatchKeyEvent):
              Change to use KeyEvent.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusChanged):
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]):
              Updated to use new eventFilterFocusIn/Out instead of the general purpose
              eventFilter function. This allows us to remove QEvent and the focus events.
      
              * kwq/KWQNamespace.h: Removed ButtonState.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Replaced eventFilter function with eventFilterFocusIn and
              eventFilterFocusOut, allowing us to remove QEvent. Removed event function.
      
              * kwq/KWQSlot.cpp:
              (KWQSlot::KWQSlot): Removed the parentDestroyed slot.
              (KWQSlot::call): Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Renamed from
              PartStyleSheetLoader. Removed a lot of unneeded null checks. Use a
              raw Frame pointer instead of a QGuardedPtr, and count on the Frame
              to delete us when it's being deleted.
              (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader): No longer
              a virtual function. This is not a polymorphic class.
              (WebCore::UserStyleSheetLoader::setStyleSheet): Remove code to delete
              ourselves -- that's now the frame's responsibility.
              (WebCore::Frame::~Frame): Call disconnectFrame on the KJS::Window and
              delete m_userStyleSheetLoader.
              (WebCore::Frame::changeLocation): Update since urlSelected no longer takes
              button and state parameters.
              (WebCore::Frame::setUserStyleSheet): Delete existing loader to stop a load
              in progress before starting a new load. Store reference to loader.
              (WebCore::Frame::urlSelected): Remove button and state parameters and unused
              local variable hasTarget.
              (WebCore::Frame::selectClosestWordFromMouseEvent): Change from QMouseEvent
              to MouseEvent.
              (WebCore::Frame::handleMousePressEventDoubleClick): Change from MousePressEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::handleMousePressEventTripleClick): Ditto.
              (WebCore::Frame::handleMousePressEventSingleClick): Ditto.
              (WebCore::Frame::khtmlMousePressEvent): Ditto.
              (WebCore::Frame::handleMouseMoveEventSelection): Change from MouseMoveEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseMoveEvent): Ditto.
              (WebCore::Frame::khtmlMouseReleaseEvent): Change from MouseReleaseEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseDoubleClickEvent): Change from
              MouseReleaseDoubleClickEvent to MouseEventWithHitTestResults.
              (WebCore::Frame::passWidgetMouseDownEventToWidget): Change from
              NodeImpl::MouseEvent to MouseEventWithHitTestResults.
      
              * page/FramePrivate.h: Added m_userStyleSheetLoader.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportMouseDoubleClickEvent): Ditto.
              (WebCore::selectCursor): Ditto.
              (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
              (WebCore::FrameView::viewportMouseReleaseEvent): Ditto.
              (WebCore::FrameView::keyPressEvent): Change from QKeyEvent to KeyEvent.
              (WebCore::FrameView::dispatchMouseEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportWheelEvent): Change from QWheelEvent to
              WheelEvent.
              (WebCore::FrameView::hoverTimerFired): Update for change to prepareMouseEvent
              parameters.
      
              * platform/Widget.h:
              * platform/Widget.cpp: Removed event function.
      
              * rendering/render_form.h: Removed LineEditWidget, ComboBoxWidget, TextAreaWidget.
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::slotClicked): Changed from QMouseEvent to MouseEvent.
              (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed): Updated for changes
              to the Length class.
              (WebCore::RenderSelect::setWidgetWritingDirection): Updated for removal of
              ComboBoxWidget.
              (WebCore::RenderSelect::slotSelected): Ditto.
              (WebCore::RenderSelect::createComboBox): Ditto.
      
              * rendering/render_replaced.h:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::destroy): Updated since removeEventFilter no longer takes
              a parameter.
              (WebCore::RenderWidget::setQWidget): Ditto.
              (WebCore::RenderWidget::eventFilterFocusIn): Added. Replaces eventFilter.
              (WebCore::RenderWidget::eventFilterFocusOut): Ditto.
      
              * css/css_computedstyle.cpp:
              (WebCore::valueForLength):
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/cssstyleselector.cpp:
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElementImpl::getRegion):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::leftRelOffset):
              (WebCore::RenderBlock::rightRelOffset):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::getBPMWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlockMinMaxWidth):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::calcMinMaxWidth):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::addChild):
              (WebCore::RenderTableSection::addCell):
              (WebCore::RenderTableSection::calcRowHeight):
              (WebCore::RenderTableSection::layoutRows):
              * rendering/RenderText.h:
              (khtml::RenderText::marginLeft):
              (khtml::RenderText::marginRight):
              * rendering/bidi.cpp:
              (khtml::getBPMWidth):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::getClipRect):
              (WebCore::RenderBox::relativePositionOffset):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::sizesToIntrinsicWidth):
              (WebCore::RenderBox::calcHorizontalMargins):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcHeightUsing):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedWidthUsing):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcReplacedHeightUsing):
              (WebCore::RenderBox::availableHeightUsing):
              (WebCore::RenderBox::calcVerticalMargins):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVertical):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::calcHorizontalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcVerticalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcMinMaxWidth):
              (khtml::RenderFlexibleBox::allowedChildFlex):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::lineHeight):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::isWidthSpecified):
              (WebCore::RenderImage::isHeightSpecified):
              * rendering/render_layer.cpp:
              (WebCore::Marquee::direction):
              (WebCore::Marquee::start):
              (WebCore::Marquee::updateMarqueeStyle):
              (WebCore::Marquee::timerFired):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::marginLeft):
              (WebCore::InlineFlowBox::marginRight):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paddingTop):
              (WebCore::RenderObject::paddingBottom):
              (WebCore::RenderObject::paddingLeft):
              (WebCore::RenderObject::paddingRight):
              (WebCore::RenderObject::getVerticalPosition):
              (WebCore::RenderObject::lineHeight):
              (WebCore::RenderObject::addDashboardRegions):
              * rendering/render_style.h:
              * rendering/render_theme_mac.mm:
              (WebCore::RenderThemeMac::addIntrinsicMargins):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcWidthArray):
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::FixedTableLayout::layout):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::fullRecalc):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              (WebCore::AutoTableLayout::calcPercentages):
              Updated for changes to the Length class.
              Also removed a check of the printpainter global, never used in WebCore.
      
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/csshelper.cpp:
              * editing/SelectionController.cpp:
              * khtml/ecma/kjs_html.h:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPainter.mm:
              * kwq/WebCoreSettings.mm:
              * platform/StringImpl.cpp:
              * platform/mac/CursorMac.mm:
              * platform/mac/WidgetMac.mm:
              * rendering/RenderBlock.h:
              * rendering/render_canvas.cpp:
              * rendering/render_line.h:
              * rendering/render_style.cpp:
              * rendering/table_layout.h:
              Updated includes.
      
              * bindings/js/JSDOMCore.cpp: Touched, because I got strange failures if this
              didn't rebuild.
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      947a31b6
  28. 20 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 644b75ef
      darin authored
              - moved Cursor into the platform directory from KWQ
              - removed a lot of other unneeded stuff from KWQ
      
              * platform/Cursor.h: Added.
              * platform/mac/CursorMac.mm: Added.
              * platform/mac/CursorWin.cpp: Added.
      
              * kwq/KWQBuffer.cpp: Removed.
              * kwq/KWQBuffer.h: Removed.
              * kwq/KWQCursor.h: Removed.
              * kwq/KWQCursor.mm: Removed.
              * kwq/KWQIODevice.h: Removed.
              * kwq/KWQKCursor.h: Removed.
              * kwq/KWQKCursor.mm: Removed.
              * kwq/KWQKDebug.h: Removed.
              * kwq/KWQSignalStubs.cpp: Removed.
      
              * ForwardingHeaders/kcursor.h: Removed.
              * ForwardingHeaders/kdebug.h: Removed.
              * ForwardingHeaders/qbuffer.h: Removed.
      
              * kwq/KWQEvent.h: Removed unused constants and types QCustomEvent,
              QFocusEvent, QHideEvent, QShowEvent, QContextMenuEvent, and QResizeEvent.
      
              * kwq/KWQLoader.h: Removed KWQLoader class since signals are no longer needed.
              * kwq/KWQLoader.mm: Ditto.
      
              * kwq/KWQNamespace.h: Removed DontClip, ShowPrefix, WordBreak, LayoutDirection,
              LeftToRight, RightToLeft, RasterOp, CopyROP, OrROP, and XorROP.
      
              * kwq/KWQObject.h: Removed blockSignals, sender, _signalsBlocked, _sender,
              and KWQObjectSenderScope.
              * kwq/KWQObject.cpp:
              (QObject::QObject): Removed _signalsBlocked.
              (QObject::connect): Removed special-case signals to not complain about.
              All of them were either unused, converted to non-signal functions, or in one
              case (slotScrollBarMoved) turned into a FIXME.
      
              * kwq/KWQPainter.h: Removed rasterOp and setRasterOp.
              * kwq/KWQPainter.mm: Ditto.
      
              * kwq/KWQSignal.h:
              * kwq/KWQSignal.cpp: (KWQSignal::disconnect): Removed special cases for
              various signals; all are now using plain function calls instead.
      
              * kwq/KWQSlot.h:
              * kwq/KWQSlot.cpp: Removed slots that are no longer needed because they
              are using plain function calls instead of signals.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Updated for changed files.
      
              * bridge/mac/FrameViewMac.mm: Moved the contents of KWQKHTMLView.cpp in here.
              * bridge/mac/KWQKHTMLView.cpp: Removed.
      
              * bridge/mac/MacFrame.h: Removed signals, changed setStatusBarText to take
              String instead of QString.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame): Removed signals.
              (WebCore::MacFrame::setStatusBarText): Changed parameter type.
              (WebCore::MacFrame::openURLFromPageCache): Removed parameter from started function.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Changed from QCursor() to pointerCursor().
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl): Removed signals.
              (WebCore::DocumentImpl::implicitOpen): Ditto.
              (WebCore::DocumentImpl::determineParseMode): Removed a use of kdDebug.
              (WebCore::DocumentImpl::finishedParsing): Added. Does a setParsing(false) and then
              calls finishedParsing on the frame. Replaces the old finishedParsing signal.
      
              * dom/xml_tokenizer.h:
              * dom/xml_tokenizer.cpp: Removed the finishedParsing signal since it's not just
              a function on the document.
              (WebCore::XMLTokenizer::finish): Call the function instead of emitting the signal.
      
              * khtml/html/htmlparser.h:
              * khtml/html/htmlparser.cpp: Moved the parser inside the WebCore namespace.
      
              * khtml/html/htmltokenizer.h:
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::end): Updated
              to call finishedParsing function on document rather than emitting a signal.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]): Use QEvent instead of QFocusEvent.
              (-[KWQPopUpButton resignFirstResponder]): Ditto.
              * kwq/KWQFileButton.mm: (KWQFileButton::focusChanged): Ditto.
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]): Ditto.
              (-[KWQTableView resignFirstResponder]): Ditto.
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]): Ditto.
              (-[KWQSlider resignFirstResponder]): Ditto.
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]): Ditto.
              (-[KWQTextAreaTextView resignFirstResponder]): Ditto.
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]): Ditto.
      
              * kwq/KWQTextStream.h: Removed the mode parameter from the QTextStream constructor.
              Removed the QTextIStream and QTextOStream classes.
              * kwq/KWQTextStream.cpp: (QTextStream::QTextStream): Removed the mode parameter.
      
              * loader/CachedCSSStyleSheet.h: Changed to take a ByteArray instead of a QBuffer.
              * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::data): Ditto.
              * loader/CachedImage.h: Ditto.
              * loader/CachedImage.cpp: (WebCore::CachedImage::data): Ditto.
              * loader/CachedObject.h: Ditto.
              * loader/CachedScript.h: Ditto.
              * loader/CachedScript.cpp: (WebCore::CachedScript::data): Ditto.
              * loader/CachedXBLDocument.h: Ditto.
              * loader/CachedXBLDocument.cpp: (WebCore::CachedXBLDocument::data): Ditto.
              * loader/CachedXSLStyleSheet.h:
              * loader/CachedXSLStyleSheet.cpp: (WebCore::CachedXSLStyleSheet::data): Ditto.
      
              * loader/DocLoader.cpp: (WebCore::DocLoader::setLoadInProgress): Added a call
              to loadDone on the frame. Replaces the requestFailed and requestDone signals.
      
              * loader/DocLoader.h: Removed include of <qbuffer.h>.
      
              * loader/Request.h:
              * loader/Request.cpp: Updated to use ByteArray instead of QBuffer.
      
              * loader/loader.h: Removed unused signals.
              * loader/loader.cpp:
              (WebCore::Loader::Loader): Removed use of KWQLoader.
              (WebCore::Loader::~Loader): Ditto.
              (WebCore::Loader::load): Removed code to emit unused requestStarted signal.
              (WebCore::Loader::slotFinished): Removed code to emit requestFailed and
              requestDone signals, now handled by DocLoader::setLoadInProgress(false).
              (WebCore::Loader::slotReceivedResponse): Use ByteArray instead of QBuffer.
              (WebCore::Loader::slotData): Ditto.
      
              * page/Frame.h: Removed setURLCursor, urlCursor, slotRestoreData, slotIncZoom,
              slotDecZoom, slotLoadImages, slotPartRemoved, slotActiveFrameChanged,
              slotChildURLRequest, slotShowDocument, slotAutoScroll, slotPrintFrame, slotSelectAll,
              slotProgressUpdate, slotJobPercent, slotJobSpeed.connectChild, disconnectChild,
              and changed a number of others from slots to plain old functions.
              * page/Frame.cpp:
              (WebCore::Frame::Frame): Don't connect to loader signals.
              (WebCore::Frame::~Frame): Don't disconnect from loader signals.
              (WebCore::Frame::didOpenURL): Call started function instead of emitting
              started signal. Don't connect to speed and percent signals (which never
              existed in WebCore anyway).
              (WebCore::Frame::stopLoading): Call finishedParsing function instead of
              calling slotFinishedParsing.
              (WebCore::Frame::executeScript): Removed redundant checks and let
              submitFormAgain do the checking.
              (WebCore::Frame::clear): Removed code to disconnect from finishedParsing
              signal; we now use a function. Also removed loop that calls disconnectChild,
              becase again we use functions now instead of signals.
              (WebCore::Frame::setDocument): Remove code to disconnect and connect to the
              finishedParsing signal.
              (WebCore::Frame::begin): Remove code to connect to the finishedParsing signal.
              (WebCore::Frame::finishedParsing): Moved code that does setParsing(false) into
              the document class. Also renamed from slotFinishedParsing.
              (WebCore::Frame::loadDone): Renamed from slotLoaderRequestDone.
              (WebCore::Frame::checkCompleted): Changed to call the completed function instead
              of emitting one of the two completed signals.
              (WebCore::Frame::loadSubframe): Removed call to connectChild because we now use
              functions instead of signals. Also change the call to completed to pass false
              instead of true.
              (WebCore::Frame::submitFormAgain): Change function around so we are less likely
              to leak if something strange happens inside submitForm.
              (WebCore::Frame::submitForm): Remove code to connect signal. We now call
              submitFormAgain from inside the completed function.
              (WebCore::Frame::parentCompleted): Renamed from slotParentCompleted. No longer
              a slot, now called from completed.
              (WebCore::Frame::childCompleted): Renamed from slotChildCompleted.
              (WebCore::Frame::setJSStatusBarText): Removed "emit" from function call. Changed
              to use String instead of QString.
              (WebCore::Frame::setJSDefaultStatusBarText): Ditto.
              (WebCore::Frame::sendResizeEvent): Changed to send DOM event directly instead of
              creating a QResizeEvent to send along to the FrameView.
              (WebCore::Frame::scrollToAnchor): Changed to not pass a parameter to the started
              function, which no longer takes one.
              (WebCore::Frame::frameDetached): Removed code that calls disconnectChild, since
              we no longer use signals.
              (WebCore::Frame::completed): Added. Calls childCompleted, parentCompleted, and
              submitFormAgain.
              (WebCore::Frame::setStatusBarText): Added.
              (WebCore::Frame::started): Added. Sets the complete flag to false for the frame
              and all its ancestors, which is what slotChildStarted did recursively.
      
              * page/FramePrivate.h: Removed m_activeFrame and changed m_kjsStatusBarText and
              m_kjsDefaultStatusBarText to String from QString.
      
              * page/FrameView.h: Removed resizeEvent, focusInEvent, focusOutEvent, and
              slotPaletteChanged. Changed cleared from a signal to a private function and
              slotScrollBarMoved to a private function named scrollBarMoved.
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView): Removed connect call here that was connecting
              a signal that's nonexistent in WebCore; we'll want to rig it up later.
              (WebCore::FrameView::~FrameView): Added a call to setQWidget(0) here to replace
              something that was done with a signal before.
              (WebCore::FrameView::clear): Call cleared as a function rather than a signal.
              (WebCore::selectCursor): Changed to use Cursor instead of QCursor.
              (WebCore::FrameView::scrollBarMoved): Renamed this function, which is never called.
              Added a FIXME about calling it.
              (WebCore::FrameView::cleared): Added. Calls viewCleared on the owner part, which
              used to be done with a signal.
      
              * platform/Widget.h: Changed to Cursor from QCursor.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::setCursor): Ditto.
      
              * rendering/render_frames.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize): Removed cursor-setting code here. We might
              want to use resize cursors for frames again, but it was mostly disabled anyway and
              it's not clear which cursors to use.
              (WebCore::RenderPart::setWidget): Removed code to connect to the cleared signal.
              Instead, FrameView takes care of it directly.
              (WebCore::RenderPart::viewCleared): Renamed from slotViewCleared.
              (WebCore::RenderFrame::viewCleared): Ditto.
              (WebCore::RenderPartObject::viewCleared): Ditto.
      
              * rendering/render_image.cpp:
              (WebCore::RenderImage::imageChanged): Removed use of WordBreak, which doesn't exist
              in WebCore text rendering.
              (WebCore::RenderImage::paint): Ditto.
      
              * rendering/render_list.cpp: (RenderListMarker::paint): Removed use of DontClip, which
              doesn't exist in WebCore text rendering. Also removed incorrect use of references to
              temporaries for the ". " and " ." strings.
      
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder): Removed call to setRasterOp since it is a no-op
              in WebCore's painter. Added a FIXME.
              (WebCore::RenderObject::information): Remove mode parameter to QTextStream.
      
              * rendering/render_replaced.h: Removed slotWidgetDestructed, made setQWidget public,
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::setQWidget): Removed code to connect slotWidgetDestructed to
              the destroyed signal. Instead FrameView calls setQWidget(0) on us.
              (WebCore::RenderWidget::eventFilter): Removed use of QFocusEvent::reason, which is
              never "popup" in WebCore.
      
              * WebCore+SVG/kdom.h:
              * css/css_stylesheetimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/RenderPath.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/svg/SVGPathSegLinetoImpl.cpp:
              * ksvg2/svg/SVGStyledTransformableElementImpl.cpp:
              * ksvg2/svg/SVGTransformImpl.cpp:
              * platform/StringImpl.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/render_box.cpp:
              * rendering/render_canvas.cpp:
              * rendering/render_flow.cpp:
              * rendering/render_form.cpp:
              * rendering/render_layer.cpp:
              * rendering/render_style.cpp:
              Removed includes of <kdebug.h>.
      
              * css/css_base.cpp: (CSSSelector::selectorText):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSRule::putValueProperty):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMDocument::getValueProperty):
              * khtml/ecma/kjs_events.cpp:
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMUIEvent::getValueProperty):
              (KJS::DOMMouseEvent::getValueProperty):
              (KJS::DOMKeyboardEvent::getValueProperty):
              (KJS::Clipboard::getValueProperty):
              (KJS::Clipboard::putValueProperty):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::anchorGetter):
              (KJS::HTMLElement::areaGetter):
              (KJS::KJS::HTMLElementFunction::callAsFunction):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::getValueProperty):
              (KJS::DOMTreeWalker::getValueProperty):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::clear):
              (KJS::LocationFunc::callAsFunction):
              (KJS::History::getValueProperty):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
              (SVGAnimateTransformElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              (SVGAnimationElementImpl::parseMappedAttribute):
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::finishedParsing):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValueInSpecifiedUnits):
              Removed use of kdWarning, kdDebug, etc.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      644b75ef
  29. 07 Feb, 2006 1 commit
    • hyatt's avatar
      Combine ImageData and Image (the result ends up in Image). · 058251ef
      hyatt authored
              Reviewed by mjs
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (-[DOMElement _image]):
              (-[DOMElement _imageTIFFRepresentation]):
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::fileWrapperForElement):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (KCanvasFEImageQuartz::getCIFilter):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::drawPattern):
              (KJS::_rh):
              (KJS::ImagePattern::createPattern):
              * kwq/KWQClipboard.mm:
              (WebCore::KWQClipboard::dragNSImage):
              * kwq/KWQCursor.h:
              * kwq/KWQCursor.mm:
              (WebCore::createCustomCursor):
              (WebCore::QCursor::QCursor):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (WebCore::QPainter::drawImageAtPoint):
              (WebCore::QPainter::drawImageInRect):
              (WebCore::QPainter::drawImage):
              (WebCore::QPainter::drawFloatImage):
              (WebCore::QPainter::drawTiledImage):
              (WebCore::QPainter::drawScaledAndTiledImage):
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::image):
              * loader/CachedImage.h:
              * page/FrameView.cpp:
              (WebCore::selectCursor):
              * platform/Image.cpp:
              (WebCore::Image::Image):
              (WebCore::Image::~Image):
              (WebCore::Image::invalidateData):
              (WebCore::Image::cacheFrame):
              (WebCore::Image::isNull):
              (WebCore::Image::size):
              (WebCore::Image::setData):
              (WebCore::Image::setNativeData):
              (WebCore::Image::frameCount):
              (WebCore::Image::isSizeAvailable):
              (WebCore::Image::frameAtIndex):
              (WebCore::Image::frameDurationAtIndex):
              (WebCore::Image::shouldAnimate):
              (WebCore::Image::startAnimation):
              (WebCore::Image::stopAnimation):
              (WebCore::Image::resetAnimation):
              (WebCore::Image::advanceAnimation):
              (WebCore::Image::rect):
              * platform/Image.h:
              (KXMLCore::):
              (WebCore::FrameData::m_duration):
              (WebCore::FrameData::~FrameData):
              (WebCore::Image::currentFrame):
              (WebCore::Image::animationObserver):
              (WebCore::Image::setIsPDF):
              * platform/ImageData.cpp: Removed.
              * platform/ImageData.h: Removed.
              * platform/cairo/ImageCairo.cpp:
              (WebCore::FrameData::clear):
              (WebCore::Image::initNativeData):
              (WebCore::Image::destroyNativeData):
              (WebCore::Image::invalidateNativeData):
              (WebCore::Image::drawInRect):
              (WebCore::Image::tileInRect):
              (WebCore::Image::scaleAndTileInRect):
              * platform/mac/Image.mm:
              (WebCore::FrameData::clear):
              (WebCore::Image::initNativeData):
              (WebCore::Image::destroyNativeData):
              (WebCore::Image::invalidateNativeData):
              (WebCore::Image::loadResource):
              (WebCore::Image::supportsType):
              (WebCore::Image::checkForSolidColor):
              (WebCore::Image::getTIFFRepresentation):
              (WebCore::Image::getNSImage):
              (WebCore::Image::getCGImageRef):
              (WebCore::Image::drawInRect):
              (WebCore::drawPattern):
              (WebCore::Image::tileInRect):
              (WebCore::Image::scaleAndTileInRect):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::resetAnimation):
              (WebCore::RenderImage::paint):
              (WebCore::RenderImage::nullImage):
              * rendering/render_image.h:
              (WebCore::RenderImage::image):
              * rendering/render_list.cpp:
              (RenderListItem::getAbsoluteRepaintRect):
              (RenderListMarker::paint):
              (RenderListMarker::calcMinMaxWidth):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::paintBorderImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      058251ef
  30. 02 Feb, 2006 1 commit
    • hyatt's avatar
      Fix for bug 6957, rewrite image rendering in C++ and move it to · 3059a516
      hyatt authored
             WebCore.  Animation now stops lazily and just uses the CachedObject
             notification system to push updates so that rects no longer need to
             be cached (or sets of animating renderers in specific views).
             
             Reviewed by darin
      
              * WebCore.exp:
              * bindings/objc/DOM.mm:
              (-[DOMElement _image]):
              (-[DOMElement _imageTIFFRepresentation]):
              * bindings/objc/DOMPrivate.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::khtmlMouseMoveEvent):
              (WebCore::MacFrame::fileWrapperForElement):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge elementAtPoint:]):
              * kcanvas/RenderSVGImage.cpp:
              (RenderSVGImage::imageChanged):
              * kcanvas/RenderSVGImage.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (KCanvasFEImageQuartz::getCIFilter):
              * khtml/ecma/kjs_html.cpp:
              (KJS::drawPattern):
              * kwq/KWQClipboard.h:
              (WebCore::KWQClipboard::setDragHasStarted):
              * kwq/KWQClipboard.mm:
              (WebCore::KWQClipboard::dragNSImage):
              * kwq/KWQCursor.mm:
              (WebCore::createCustomCursor):
              * kwq/KWQPainter.h:
              (WebCore::QPainter::):
              * kwq/KWQPainter.mm:
              (WebCore::QPainter::drawFloatImage):
              (WebCore::QPainter::drawTiledImage):
              (WebCore::QPainter::drawScaledAndTiledImage):
              * kwq/KWQScrollView.h:
              * kwq/KWQScrollView.mm:
              (QScrollView::inWindow):
              * kwq/WebCoreImageRendererFactory.h:
              * kwq/WebCoreImageRendererFactory.m:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::ref):
              (WebCore::CachedImage::imageRect):
              (WebCore::CachedImage::notifyObservers):
              (WebCore::CachedImage::data):
              (WebCore::CachedImage::error):
              (WebCore::CachedImage::shouldStopAnimation):
              (WebCore::CachedImage::animationAdvanced):
              * loader/CachedImage.h:
              (WebCore::CachedImage::canRender):
              * loader/CachedObjectClient.h:
              (WebCore::CachedObjectClient::imageChanged):
              (WebCore::CachedObjectClient::willRenderImage):
              * platform/Image.h:
              (WebCore::ImageAnimationObserver::~ImageAnimationObserver):
              (WebCore::Image::animationObserver):
              (WebCore::Image::):
              * platform/mac/Image.mm:
              (WebCore::releasePDFDocumentData):
              (WebCore::PDFDocumentImage::PDFDocumentImage):
              (WebCore::PDFDocumentImage::~PDFDocumentImage):
              (WebCore::PDFDocumentImage::documentRef):
              (WebCore::PDFDocumentImage::mediaBox):
              (WebCore::PDFDocumentImage::bounds):
              (WebCore::PDFDocumentImage::adjustCTM):
              (WebCore::PDFDocumentImage::setCurrentPage):
              (WebCore::PDFDocumentImage::currentPage):
              (WebCore::PDFDocumentImage::pageCount):
              (WebCore::PDFDocumentImage::draw):
              (WebCore::ImageData::setIsPDF):
              (WebCore::ImageData::currentFrame):
              (WebCore::m_PDFDoc):
              (WebCore::ImageData::~ImageData):
              (WebCore::ImageData::invalidateData):
              (WebCore::ImageData::cacheFrame):
              (WebCore::ImageData::checkForSolidColor):
              (WebCore::ImageData::isNull):
              (WebCore::ImageData::size):
              (WebCore::ImageData::setData):
              (WebCore::ImageData::setCFData):
              (WebCore::ImageData::imageSourceOptions):
              (WebCore::ImageData::frameCount):
              (WebCore::ImageData::isSizeAvailable):
              (WebCore::ImageData::frameAtIndex):
              (WebCore::ImageData::getTIFFRepresentation):
              (WebCore::ImageData::getNSImage):
              (WebCore::ImageData::frameDurationAtIndex):
              (WebCore::ImageData::shouldAnimate):
              (WebCore::ImageData::startAnimation):
              (WebCore::ImageData::stopAnimation):
              (WebCore::ImageData::resetAnimation):
              (WebCore::ImageData::advanceAnimation):
              (WebCore::ImageData::setCompositingOperation):
              (WebCore::ImageData::fillSolidColorInRect):
              (WebCore::ImageData::drawInRect):
              (WebCore::drawPattern):
              (WebCore::):
              (WebCore::ImageData::tileInRect):
              (WebCore::ImageData::scaleAndTileInRect):
              (WebCore::Image::loadResource):
              (WebCore::Image::supportsType):
              (WebCore::m_animationObserver):
              (WebCore::Image::Image):
              (WebCore::Image::~Image):
              (WebCore::Image::getCGImageRef):
              (WebCore::Image::getNSImage):
              (WebCore::Image::getTIFFRepresentation):
              (WebCore::Image::resetAnimation):
              (WebCore::Image::setData):
              (WebCore::Image::isNull):
              (WebCore::Image::size):
              (WebCore::Image::rect):
              (WebCore::graphicsContext):
              (WebCore::Image::drawInRect):
              (WebCore::Image::tileInRect):
              (WebCore::Image::scaleAndTileInRect):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::setCachedImage):
              (WebCore::RenderImage::imageChanged):
              * rendering/render_image.h:
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              * rendering/render_list.cpp:
              (RenderListMarker::imageChanged):
              * rendering/render_list.h:
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::imageChanged):
              (WebCore::RenderObject::willRenderImage):
              * rendering/render_object.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3059a516
  31. 29 Jan, 2006 2 commits
    • darin's avatar
      Reviewed by Hyatt. · f1c53865
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6914
                REGRESSION: fast/block/basic/014.html crashes Safari
      
              * rendering/render_image.h:
              (WebCore::RenderImage::image): Return a null image when m_cachedImage is 0.
              (WebCore::RenderImage::errorOccurred): Return false when m_cachedImage is 0.
              * rendering/render_image.cpp: (WebCore::RenderImage::nullImage): Added.
              Returns a global null image for use when we have no cached image.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6919
                REGRESSION: Background images don't paint when they are finished loading
      
              * rendering/render_object.h: Renamed the old setImage to imageChanged, the
              new name for the same function.
              * rendering/render_object.cpp: (WebCore::RenderObject::imageChanged): Ditto.
              * rendering/render_list.cpp: (RenderListMarker::imageChanged): Changed the
              call to parent to call the new imageChanged instead of the old setImage.
      
              - fixed something else that was causing some layout test crashes
      
              * kwq/KWQRenderTreeDebug.cpp: (externalRepresentation): Rearrange so we won't
              ever dereference a null pointer here.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1c53865
    • hyatt's avatar
      WebCore: · bee4b08d
      hyatt authored
              Cleanup of RenderImage.  Eliminate unneeded members and methods.
      
              Reviewed by darin
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge elementAtPoint:]):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::drawPattern):
              * khtml/html/HTMLInputElementImpl.cpp:
              (WebCore::HTMLInputElementImpl::attach):
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLImageLoader::notifyFinished):
              (WebCore::HTMLImageElementImpl::attach):
              * khtml/html/html_imageimpl.h:
              (WebCore::HTMLImageElementImpl::compositeOperator):
              * khtml/html/html_objectimpl.cpp:
              (WebCore::HTMLObjectElementImpl::attach):
              * ksvg2/svg/SVGImageElementImpl.cpp:
              (SVGImageElementImpl::attach):
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (WebCore::QPainter::drawImageAtPoint):
              (WebCore::QPainter::drawImageInRect):
              (WebCore::QPainter::drawImage):
              (WebCore::QPainter::drawFloatImage):
              (WebCore::QPainter::drawTiledImage):
              (WebCore::QPainter::drawScaledAndTiledImage):
              * kwq/WebCoreImageRenderer.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::ref):
              (WebCore::CachedImage::notifyObservers):
              (WebCore::CachedImage::data):
              (WebCore::CachedImage::error):
              * loader/CachedImage.h:
              * loader/CachedObjectClient.h:
              (WebCore::CachedObjectClient::imageChanged):
              * platform/Image.h:
              (WebCore::Image::):
              * platform/mac/Image.mm:
              (WebCore::Image::Image):
              (WebCore::Image::resetAnimation):
              (WebCore::Image::operator=):
              (WebCore::Image::stopAnimations):
              (WebCore::):
              (WebCore::Image::compositeOperatorFromString):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/render_canvasimage.cpp:
              (WebCore::RenderCanvasImage::paint):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::~RenderImage):
              (WebCore::RenderImage::setContentObject):
              (WebCore::RenderImage::setCachedImage):
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::resetAnimation):
              (WebCore::RenderImage::paint):
              (WebCore::RenderImage::layout):
              (WebCore::RenderImage::updateAltText):
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
              * rendering/render_image.h:
              (WebCore::RenderImage::cachedImage):
              (WebCore::RenderImage::image):
              (WebCore::RenderImage::errorOccurred):
              * rendering/render_list.cpp:
              (RenderListMarker::paint):
              (RenderListMarker::imageChanged):
              * rendering/render_list.h:
              * rendering/render_object.cpp:
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::setImage):
              * rendering/render_object.h:
      
      WebKit:
      
              Clean up RenderImage, eliminating unneeded members and methods.
      	
              Reviewed by darin
      
              * WebCoreSupport.subproj/WebImageRenderer.h:
              * WebCoreSupport.subproj/WebImageRenderer.m:
              (-[WebImageRenderer copyWithZone:]):
              (-[WebImageRenderer size]):
              (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bee4b08d
  32. 28 Jan, 2006 2 commits
    • hyatt's avatar
      3022652e
    • hyatt's avatar
      Fix CachedImage.h/.cpp up. Lots of cleanup. Eliminated · 215edaab
      hyatt authored
              unused code and cleaned up method and member names.
      
              Reviewed by darin
      
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLImageElementImpl::width):
              (WebCore::HTMLImageElementImpl::height):
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::CachedImage):
              (WebCore::CachedImage::ref):
              (WebCore::CachedImage::deref):
              (WebCore::CachedImage::image):
              (WebCore::CachedImage::imageSize):
              (WebCore::CachedImage::decodedRect):
              (WebCore::CachedImage::notifyObservers):
              (WebCore::CachedImage::clear):
              (WebCore::CachedImage::data):
              (WebCore::CachedImage::error):
              (WebCore::CachedImage::checkNotify):
              * loader/CachedImage.h:
              (WebCore::CachedImage::isDecoded):
              (WebCore::CachedImage::isErrorImage):
              (WebCore::CachedImage::schedule):
              (WebCore::CachedImage::isImage):
              * loader/CachedImageCallback.cpp: Removed.
              * loader/CachedImageCallback.h: Removed.
              * loader/loader.cpp:
              (WebCore::Loader::servePendingRequests):
              (WebCore::Loader::slotFinished):
              * platform/Image.h:
              * platform/mac/Image.mm:
              (WebCore::Image::receivedData):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::setImage):
              (WebCore::RenderImage::paint):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              * rendering/render_list.cpp:
              (RenderListMarker::setImage):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::setImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      215edaab