1. 30 Nov, 2007 2 commits
  2. 12 Oct, 2007 1 commit
    • oliver's avatar
      Land support for the CSS @font-face rule. This patch allows custom fonts · d6ae4964
      oliver authored
              to be downloaded from the Web and rendered in Web pages.  Right now only
              TrueType fonts are supported.  Proprietary formats like .eot are not
              supported.
      
              Reviewed by Eric Seidel
      
              Many tests will be coming in a future landing.
      
              * WebCore.base.exp:
              Expose some more stuff for WebKit, caused by font restructuring.
      
              * WebCore.xcodeproj/project.pbxproj:
              Add all the new font face files.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              Make sure to ignore the 'src' property of @font-face rules.
      
              * css/CSSFontFace.cpp: Added.
              (WebCore::CSSFontFace::CSSFontFace):
              (WebCore::CSSFontFace::~CSSFontFace):
              (WebCore::CSSFontFace::isLoaded):
              (WebCore::CSSFontFace::isValid):
              (WebCore::CSSFontFace::addSource):
              (WebCore::CSSFontFace::fontLoaded):
              (WebCore::CSSFontFace::getFontData):
              * css/CSSFontFace.h: Added.
              A CSSFontFace is a composite object.  It consists of multiple font-face sources, where each source represents either a remote or local
              file in a @font-face rule's src list.
      
              * css/CSSFontFaceRule.cpp:
              (WebCore::CSSFontFaceRule::setDeclaration):
              (WebCore::CSSFontFaceRule::cssText):
              * css/CSSFontFaceRule.h:
              The implementation of the @font-face rule itself in the CSS sheet back end.
      
              * css/CSSFontFaceSource.cpp: Added.
              (WebCore::CSSFontFaceSource::CSSFontFaceSource):
              (WebCore::CSSFontFaceSource::~CSSFontFaceSource):
              (WebCore::CSSFontFaceSource::pruneTable):
              (WebCore::CSSFontFaceSource::isLoaded):
              (WebCore::CSSFontFaceSource::isValid):
              (WebCore::CSSFontFaceSource::fontLoaded):
              (WebCore::CSSFontFaceSource::getFontData):
              * css/CSSFontFaceSource.h: Added.
              (WebCore::CSSFontFaceSource::string):
              (WebCore::CSSFontFaceSource::setFontFace):
              A font face source represents a single remote or local font.  If it represents a remote font than it wraps a CachedFont.
      
              * css/CSSFontFaceSrcValue.cpp: Added.
              (WebCore::CSSFontFaceSrcValue::isSupportedFormat):
              (WebCore::CSSFontFaceSrcValue::cssText):
              * css/CSSFontFaceSrcValue.h: Added.
              (WebCore::CSSFontFaceSrcValue::m_isLocal):
              (WebCore::CSSFontFaceSrcValue::~CSSFontFaceSrcValue):
              (WebCore::CSSFontFaceSrcValue::resource):
              (WebCore::CSSFontFaceSrcValue::format):
              (WebCore::CSSFontFaceSrcValue::isLocal):
              (WebCore::CSSFontFaceSrcValue::setFormat):
              Used in parsing.  Represents the parsed form of the src value that can then be used to build up a CSSFontFace.
      
              * css/CSSFontSelector.cpp: Added.
              (WebCore::CSSFontSelector::CSSFontSelector):
              (WebCore::CSSFontSelector::~CSSFontSelector):
              (WebCore::CSSFontSelector::isEmpty):
              (WebCore::CSSFontSelector::docLoader):
              (WebCore::hashForFont):
              (WebCore::CSSFontSelector::addFontFaceRule):
              (WebCore::CSSFontSelector::fontLoaded):
              (WebCore::CSSFontSelector::getFontData):
              * css/CSSFontSelector.h: Added.
              The CSS font selector is the object that selects the correct font given a specified font family.  It builds up a database of CSSFontFaces that can then be handed
              back.
      
              * css/CSSGrammar.y:
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseFontFaceSrc):
              (WebCore::CSSParser::createFontFaceRule):
              * css/CSSParser.h:
              Modify the CSS grammar to now understand @font-face rules.
      
              * css/CSSPropertyNames.in:
              Add the src property.
      
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              (WebCore::CSSStyleSelector::styleForElement):
              (WebCore::CSSStyleSelector::updateFont):
              (WebCore::CSSRuleSet::addRulesFromSheet):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::ensureFontSelector):
              * css/CSSStyleSelector.h:
              (WebCore::CSSStyleSelector::fontSelector):
              The style selector now creates a font selector object and feeds it the appropriate information when @font-face rules are encountered.
      
              * dom/Document.cpp:
              (WebCore::Document::recalcStyle):
              Patch the update method now that it takes a font selector argument.
      
              * loader/Cache.cpp:
              (WebCore::createResource):
              (WebCore::Cache::getStatistics):
              * loader/Cache.h:
              Teach the Cache about CachedFonts.
      
              * loader/CachedFont.cpp: Added.
              (WebCore::CachedFont::CachedFont):
              (WebCore::CachedFont::~CachedFont):
              (WebCore::CachedFont::ref):
              (WebCore::CachedFont::data):
              (WebCore::CachedFont::beginLoadIfNeeded):
              (WebCore::CachedFont::ensureCustomFontData):
              (WebCore::CachedFont::platformDataFromCustomData):
              (WebCore::CachedFont::allReferencesRemoved):
              (WebCore::CachedFont::checkNotify):
              (WebCore::CachedFont::error):
              * loader/CachedFont.h: Added.
              (WebCore::CachedFont::schedule):
              The implementation of CachedFont.  This represents the downloaded resource and has all the raw font data.
      
              * loader/CachedResource.h:
              (WebCore::CachedResource::):
              * loader/CachedResourceClient.h:
              (WebCore::CachedResourceClient::fontLoaded):
              Add a new fontLoaded method for clients of cached resources to track when fonts finish downloading.
      
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::requestFont):
              * loader/DocLoader.h:
               Add the ability to request a font.
      
              * platform/Font.cpp:
              (WebCore::Font::operator==):
              (WebCore::Font::update):
              (WebCore::Font::drawText):
              * platform/Font.h:
              * platform/FontCache.cpp:
              (WebCore::FontCache::getFontData):
              * platform/FontCache.h:
              * platform/FontData.cpp:
              (WebCore::FontData::FontData):
              * platform/FontData.h:
              (WebCore::FontData::isCustomFont):
              (WebCore::FontData::isLoading):
              * platform/FontFallbackList.cpp:
              (WebCore::FontFallbackList::FontFallbackList):
              (WebCore::FontFallbackList::invalidate):
              (WebCore::FontFallbackList::fontDataAt):
              * platform/FontFallbackList.h:
              (WebCore::FontFallbackList::loadingCustomFonts):
              (WebCore::FontFallbackList::fontSelector):
              * platform/FontSelector.h: Added.
              (WebCore::FontSelector::~FontSelector):
              * platform/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::getRoot):
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              (WebCore::GlyphPageTreeNode::~GlyphPageTreeNode):
              (WebCore::GlyphPageTreeNode::initializePage):
              (WebCore::GlyphPageTreeNode::getChild):
              (WebCore::GlyphPageTreeNode::pruneCustomFontData):
              * platform/GlyphPageTreeNode.h:
              (WebCore::GlyphPageTreeNode::GlyphPageTreeNode):
              (WebCore::GlyphPageTreeNode::page):
              * platform/PopupMenuClient.h:
              * platform/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              (WebCore::FontCache::getLastResortFallbackFont):
              (WebCore::FontCache::fontExists):
              (WebCore::FontCache::createFontPlatformData):
              * platform/mac/FontCustomPlatformData.cpp: Added.
              (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
              (WebCore::FontCustomPlatformData::fontPlatformData):
              (WebCore::createFontCustomPlatformData):
              * platform/mac/FontCustomPlatformData.h: Added.
              (WebCore::FontCustomPlatformData::FontCustomPlatformData):
              * platform/mac/FontDataMac.mm:
              (WebCore::initFontData):
              (WebCore::FontData::platformInit):
              (WebCore::FontData::smallCapsFontData):
              (WebCore::FontData::platformWidthForGlyph):
              (WebCore::FontData::checkShapesArabic):
              * platform/mac/FontMac.mm:
              (WebCore::initializeATSUStyle):
              (WebCore::Font::drawGlyphs):
              * platform/mac/FontPlatformData.h:
              (WebCore::FontPlatformData::FontPlatformData):
              (WebCore::FontPlatformData::hash):
              (WebCore::FontPlatformData::operator==):
              * platform/mac/FontPlatformDataMac.mm: Added.
              (WebCore::FontPlatformData::FontPlatformData):
              (WebCore::~FontPlatformData):
              (WebCore::FontPlatformData::setFont):
              * platform/mac/WebCoreSystemInterface.h:
              * platform/mac/WebCoreSystemInterface.mm:
              * platform/win/FontCacheWin.cpp:
              (WebCore::FontCache::getLastResortFallbackFont):
              (WebCore::FontCache::fontExists):
              * platform/win/FontCustomPlatformData.cpp: Added.
              (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
              (WebCore::FontCustomPlatformData::fontPlatformData):
              (WebCore::getData):
              (WebCore::releaseData):
              (WebCore::getBytesWithOffset):
              (WebCore::createFontCustomPlatformData):
              * platform/win/FontCustomPlatformData.h: Added.
              (WebCore::FontCustomPlatformData::FontCustomPlatformData):
              * platform/win/FontDataWin.cpp:
              (WebCore::FontData::platformInit):
              (WebCore::FontData::platformDestroy):
              (WebCore::FontData::smallCapsFontData):
              (WebCore::FontData::containsCharacters):
              (WebCore::FontData::determinePitch):
              * platform/win/FontPlatformData.h:
              (WebCore::FontPlatformData::FontPlatformData):
              (WebCore::FontPlatformData::hash):
              (WebCore::FontPlatformData::operator==):
              * platform/win/FontPlatformDataWin.cpp:
              (WebCore::FontPlatformData::FontPlatformData):
              * platform/win/PopupMenuWin.cpp:
              (WebCore::PopupMenu::paint):
              Changes to platform to support rendering of custom fonts.  Too large to go into, but for ports, the relevant object to implement is
              FontCustomPlatformData (to get the data loaded into your native font format), and then you have to patch your other font objects to know
              how to use the font.
      
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::updateFromElement):
              (WebCore::RenderListBox::paintItemForeground):
              * rendering/RenderMenuList.cpp:
              (WebCore::RenderMenuList::fontSelector):
              * rendering/RenderMenuList.h:
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::fontSelector):
              * rendering/RenderTextControl.h:
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::setFontFromControlSize):
              * rendering/RenderThemeSafari.cpp:
              (WebCore::RenderThemeSafari::setFontFromControlSize):
              Patches for update now taking a font selector argument.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6ae4964
  3. 25 Sep, 2007 1 commit
    • ddkilzer's avatar
      JavaScriptCore: · c8eccecd
      ddkilzer authored
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * COPYING.LIB:
              * bindings/testbindings.cpp:
              * kjs/AllInOneFile.cpp:
              * kjs/DateMath.cpp:
              * kjs/PropertyNameArray.cpp:
              * kjs/PropertyNameArray.h:
              * kjs/config.h:
      
      WebCore:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * LICENSE-LGPL-2:
              * LICENSE-LGPL-2.1:
              * WebCorePrefix.h:
              * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/JSHTMLCollectionCustom.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/JSHTMLInputElementBase.cpp:
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLOptionElementConstructor.cpp:
              * bindings/js/JSHTMLOptionElementConstructor.h:
              * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
              * bindings/js/JSHTMLSelectElementCustom.cpp:
              * bindings/js/JSNodeFilterCondition.cpp:
              * bindings/js/JSNodeFilterCondition.h:
              * bindings/js/JSNodeIteratorCustom.cpp:
              * bindings/js/JSSVGElementWrapperFactory.cpp:
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSSVGMatrixCustom.cpp:
              * bindings/js/JSSVGPathSegCustom.cpp:
              * bindings/js/JSSVGPathSegListCustom.cpp:
              * bindings/js/JSSVGPointListCustom.cpp:
              * bindings/js/JSTreeWalkerCustom.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.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_html.h:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOMImplementationFront.cpp:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/scripts/CodeGenerator.pm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * bindings/scripts/IDLParser.pm:
              * bindings/scripts/IDLStructure.pm:
              * bindings/scripts/generate-bindings.pl:
              * config.h:
              * css/CSSBorderImageValue.cpp:
              * css/CSSBorderImageValue.h:
              * css/CSSCharsetRule.cpp:
              * css/CSSCharsetRule.h:
              * css/CSSCharsetRule.idl:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/CSSComputedStyleDeclaration.h:
              * css/CSSCursorImageValue.cpp:
              * css/CSSCursorImageValue.h:
              * css/CSSFontFaceRule.cpp:
              * css/CSSFontFaceRule.h:
              * css/CSSFontFaceRule.idl:
              * css/CSSGrammar.y:
              * css/CSSHelper.cpp:
              * css/CSSHelper.h:
              * css/CSSImageValue.cpp:
              * css/CSSImageValue.h:
              * css/CSSImportRule.cpp:
              * css/CSSImportRule.h:
              * css/CSSImportRule.idl:
              * css/CSSInheritedValue.cpp:
              * css/CSSInheritedValue.h:
              * css/CSSInitialValue.cpp:
              * css/CSSInitialValue.h:
              * css/CSSMediaRule.cpp:
              * css/CSSMediaRule.h:
              * css/CSSMediaRule.idl:
              * css/CSSMutableStyleDeclaration.cpp:
              * css/CSSMutableStyleDeclaration.h:
              * css/CSSNamespace.h:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/CSSPageRule.idl:
              * css/CSSParser.cpp:
              * css/CSSParser.h:
              * css/CSSPrimitiveValue.cpp:
              * css/CSSPrimitiveValue.h:
              * css/CSSPrimitiveValue.idl:
              * css/CSSProperty.cpp:
              * css/CSSProperty.h:
              * css/CSSQuirkPrimitiveValue.h:
              * css/CSSRule.cpp:
              * css/CSSRule.h:
              * css/CSSRule.idl:
              * css/CSSRuleList.cpp:
              * css/CSSRuleList.h:
              * css/CSSSelector.cpp:
              * css/CSSSelector.h:
              * css/CSSStyleDeclaration.cpp:
              * css/CSSStyleDeclaration.h:
              * css/CSSStyleDeclaration.idl:
              * css/CSSStyleRule.cpp:
              * css/CSSStyleRule.h:
              * css/CSSStyleRule.idl:
              * css/CSSStyleSelector.cpp:
              * css/CSSStyleSelector.h:
              * css/CSSStyleSheet.cpp:
              * css/CSSStyleSheet.h:
              * css/CSSStyleSheet.idl:
              * css/CSSUnknownRule.h:
              * css/CSSUnknownRule.idl:
              * css/CSSValue.h:
              * css/CSSValue.idl:
              * css/CSSValueList.cpp:
              * css/CSSValueList.h:
              * css/Counter.h:
              * css/Counter.idl:
              * css/DashboardRegion.h:
              * css/FontFamilyValue.cpp:
              * css/FontFamilyValue.h:
              * css/FontValue.cpp:
              * css/FontValue.h:
              * css/MediaFeatureNames.cpp:
              * css/MediaFeatureNames.h:
              * css/MediaList.cpp:
              * css/MediaList.h:
              * css/Pair.h:
              * css/RGBColor.idl:
              * css/Rect.h:
              * css/Rect.idl:
              * css/ShadowValue.cpp:
              * css/ShadowValue.h:
              * css/StyleBase.cpp:
              * css/StyleBase.h:
              * css/StyleList.cpp:
              * css/StyleList.h:
              * css/StyleSheet.cpp:
              * css/StyleSheet.h:
              * css/StyleSheet.idl:
              * css/StyleSheetList.cpp:
              * css/StyleSheetList.h:
              * css/StyleSheetList.idl:
              * css/html4.css:
              * css/make-css-file-arrays.pl:
              * css/makegrammar.pl:
              * css/makeprop.pl:
              * css/maketokenizer:
              * css/makevalues.pl:
              * css/quirks.css:
              * dom/AtomicStringList.h:
              * dom/Attr.cpp:
              * dom/Attr.h:
              * dom/Attr.idl:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/BeforeUnloadEvent.cpp:
              * dom/BeforeUnloadEvent.h:
              * dom/CDATASection.cpp:
              * dom/CDATASection.h:
              * dom/CDATASection.idl:
              * dom/CSSMappedAttributeDeclaration.cpp:
              * dom/CSSMappedAttributeDeclaration.h:
              * dom/CharacterData.cpp:
              * dom/CharacterData.h:
              * dom/CharacterData.idl:
              * dom/ChildNodeList.cpp:
              * dom/ChildNodeList.h:
              * dom/Clipboard.h:
              * dom/ClipboardEvent.cpp:
              * dom/ClipboardEvent.h:
              * dom/Comment.cpp:
              * dom/Comment.h:
              * dom/Comment.idl:
              * dom/ContainerNode.cpp:
              * dom/ContainerNode.h:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/DOMImplementation.idl:
              * dom/DocPtr.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Document.idl:
              * dom/DocumentFragment.cpp:
              * dom/DocumentFragment.h:
              * dom/DocumentFragment.idl:
              * dom/DocumentMarker.h:
              * dom/DocumentType.cpp:
              * dom/DocumentType.h:
              * dom/DocumentType.idl:
              * dom/EditingText.cpp:
              * dom/EditingText.h:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/Element.idl:
              * dom/Entity.cpp:
              * dom/Entity.h:
              * dom/Entity.idl:
              * dom/EntityReference.cpp:
              * dom/EntityReference.h:
              * dom/EntityReference.idl:
              * dom/Event.cpp:
              * dom/Event.h:
              * dom/Event.idl:
              * dom/EventListener.h:
              * dom/EventListener.idl:
              * dom/EventNames.cpp:
              * dom/EventNames.h:
              * dom/EventTarget.idl:
              * dom/EventTargetNode.cpp:
              * dom/EventTargetNode.h:
              * dom/ExceptionCode.h:
              * dom/KeyboardEvent.cpp:
              * dom/KeyboardEvent.h:
              * dom/KeyboardEvent.idl:
              * dom/MappedAttribute.cpp:
              * dom/MappedAttribute.h:
              * dom/MappedAttributeEntry.h:
              * dom/MouseEvent.cpp:
              * dom/MouseEvent.h:
              * dom/MouseEvent.idl:
              * dom/MouseRelatedEvent.cpp:
              * dom/MouseRelatedEvent.h:
              * dom/MutationEvent.cpp:
              * dom/MutationEvent.h:
              * dom/MutationEvent.idl:
              * dom/NameNodeList.cpp:
              * dom/NameNodeList.h:
              * dom/NamedAttrMap.cpp:
              * dom/NamedAttrMap.h:
              * dom/NamedMappedAttrMap.cpp:
              * dom/NamedMappedAttrMap.h:
              * dom/NamedNodeMap.h:
              * dom/NamedNodeMap.idl:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Node.idl:
              * dom/NodeFilter.cpp:
              * dom/NodeFilter.h:
              * dom/NodeFilter.idl:
              * dom/NodeFilterCondition.cpp:
              * dom/NodeFilterCondition.h:
              * dom/NodeIterator.cpp:
              * dom/NodeIterator.h:
              * dom/NodeIterator.idl:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/NodeList.idl:
              * dom/Notation.cpp:
              * dom/Notation.h:
              * dom/Notation.idl:
              * dom/ProcessingInstruction.cpp:
              * dom/ProcessingInstruction.h:
              * dom/ProcessingInstruction.idl:
              * dom/QualifiedName.cpp:
              * dom/QualifiedName.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/Range.idl:
              * dom/RangeException.h:
              * dom/RangeException.idl:
              * dom/RegisteredEventListener.cpp:
              * dom/RegisteredEventListener.h:
              * dom/StyleElement.cpp:
              * dom/StyleElement.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/Text.cpp:
              * dom/Text.h:
              * dom/Text.idl:
              * dom/Tokenizer.h:
              * dom/Traversal.cpp:
              * dom/Traversal.h:
              * dom/TreeWalker.cpp:
              * dom/TreeWalker.h:
              * dom/TreeWalker.idl:
              * dom/UIEvent.cpp:
              * dom/UIEvent.h:
              * dom/UIEvent.idl:
              * dom/UIEventWithKeyState.cpp:
              * dom/UIEventWithKeyState.h:
              * dom/WheelEvent.cpp:
              * dom/WheelEvent.h:
              * dom/WheelEvent.idl:
              * dom/XMLTokenizer.cpp:
              * dom/XMLTokenizer.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLAnchorElement.h:
              * html/HTMLAnchorElement.idl:
              * html/HTMLAppletElement.cpp:
              * html/HTMLAppletElement.h:
              * html/HTMLAppletElement.idl:
              * html/HTMLAreaElement.cpp:
              * html/HTMLAreaElement.h:
              * html/HTMLAreaElement.idl:
              * html/HTMLBRElement.cpp:
              * html/HTMLBRElement.h:
              * html/HTMLBRElement.idl:
              * html/HTMLBaseElement.cpp:
              * html/HTMLBaseElement.h:
              * html/HTMLBaseElement.idl:
              * html/HTMLBaseFontElement.cpp:
              * html/HTMLBaseFontElement.h:
              * html/HTMLBaseFontElement.idl:
              * html/HTMLBlockquoteElement.cpp:
              * html/HTMLBlockquoteElement.h:
              * html/HTMLBlockquoteElement.idl:
              * html/HTMLBodyElement.cpp:
              * html/HTMLBodyElement.h:
              * html/HTMLBodyElement.idl:
              * html/HTMLButtonElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLButtonElement.idl:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLCollection.idl:
              * html/HTMLDListElement.cpp:
              * html/HTMLDListElement.h:
              * html/HTMLDListElement.idl:
              * html/HTMLDirectoryElement.cpp:
              * html/HTMLDirectoryElement.h:
              * html/HTMLDirectoryElement.idl:
              * html/HTMLDivElement.cpp:
              * html/HTMLDivElement.h:
              * html/HTMLDivElement.idl:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLDocument.idl:
              * html/HTMLElement.cpp:
              * html/HTMLElement.h:
              * html/HTMLElement.idl:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLEmbedElement.h:
              * html/HTMLEmbedElement.idl:
              * html/HTMLEntityNames.gperf:
              * html/HTMLFieldSetElement.cpp:
              * html/HTMLFieldSetElement.h:
              * html/HTMLFieldSetElement.idl:
              * html/HTMLFontElement.cpp:
              * html/HTMLFontElement.h:
              * html/HTMLFontElement.idl:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormCollection.h:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFormElement.idl:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameElement.h:
              * html/HTMLFrameElement.idl:
              * html/HTMLFrameElementBase.cpp:
              * html/HTMLFrameElementBase.h:
              * html/HTMLFrameOwnerElement.cpp:
              * html/HTMLFrameOwnerElement.h:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLFrameSetElement.h:
              * html/HTMLFrameSetElement.idl:
              * html/HTMLGenericFormElement.cpp:
              * html/HTMLGenericFormElement.h:
              * html/HTMLHRElement.cpp:
              * html/HTMLHRElement.h:
              * html/HTMLHRElement.idl:
              * html/HTMLHeadElement.cpp:
              * html/HTMLHeadElement.h:
              * html/HTMLHeadElement.idl:
              * html/HTMLHeadingElement.cpp:
              * html/HTMLHeadingElement.h:
              * html/HTMLHeadingElement.idl:
              * html/HTMLHtmlElement.cpp:
              * html/HTMLHtmlElement.h:
              * html/HTMLHtmlElement.idl:
              * html/HTMLIFrameElement.cpp:
              * html/HTMLIFrameElement.h:
              * html/HTMLIFrameElement.idl:
              * html/HTMLImageElement.cpp:
              * html/HTMLImageElement.h:
              * html/HTMLImageElement.idl:
              * html/HTMLImageLoader.cpp:
              * html/HTMLImageLoader.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLInputElement.h:
              * html/HTMLInputElement.idl:
              * html/HTMLIsIndexElement.cpp:
              * html/HTMLIsIndexElement.h:
              * html/HTMLIsIndexElement.idl:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLKeygenElement.h:
              * html/HTMLLIElement.cpp:
              * html/HTMLLIElement.h:
              * html/HTMLLIElement.idl:
              * html/HTMLLabelElement.cpp:
              * html/HTMLLabelElement.h:
              * html/HTMLLabelElement.idl:
              * html/HTMLLegendElement.cpp:
              * html/HTMLLegendElement.h:
              * html/HTMLLegendElement.idl:
              * html/HTMLLinkElement.cpp:
              * html/HTMLLinkElement.h:
              * html/HTMLLinkElement.idl:
              * html/HTMLMapElement.cpp:
              * html/HTMLMapElement.h:
              * html/HTMLMapElement.idl:
              * html/HTMLMarqueeElement.cpp:
              * html/HTMLMarqueeElement.h:
              * html/HTMLMarqueeElement.idl:
              * html/HTMLMenuElement.cpp:
              * html/HTMLMenuElement.h:
              * html/HTMLMenuElement.idl:
              * html/HTMLMetaElement.cpp:
              * html/HTMLMetaElement.h:
              * html/HTMLMetaElement.idl:
              * html/HTMLModElement.cpp:
              * html/HTMLModElement.h:
              * html/HTMLModElement.idl:
              * html/HTMLNameCollection.cpp:
              * html/HTMLNameCollection.h:
              * html/HTMLOListElement.cpp:
              * html/HTMLOListElement.h:
              * html/HTMLOListElement.idl:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLObjectElement.idl:
              * html/HTMLOptGroupElement.cpp:
              * html/HTMLOptGroupElement.h:
              * html/HTMLOptGroupElement.idl:
              * html/HTMLOptionElement.cpp:
              * html/HTMLOptionElement.h:
              * html/HTMLOptionElement.idl:
              * html/HTMLOptionsCollection.cpp:
              * html/HTMLOptionsCollection.h:
              * html/HTMLOptionsCollection.idl:
              * html/HTMLParagraphElement.cpp:
              * html/HTMLParagraphElement.h:
              * html/HTMLParagraphElement.idl:
              * html/HTMLParamElement.cpp:
              * html/HTMLParamElement.h:
              * html/HTMLParamElement.idl:
              * html/HTMLParser.cpp:
              * html/HTMLParser.h:
              * html/HTMLPlugInElement.cpp:
              * html/HTMLPlugInElement.h:
              * html/HTMLPreElement.cpp:
              * html/HTMLPreElement.h:
              * html/HTMLPreElement.idl:
              * html/HTMLQuoteElement.cpp:
              * html/HTMLQuoteElement.h:
              * html/HTMLQuoteElement.idl:
              * html/HTMLScriptElement.cpp:
              * html/HTMLScriptElement.h:
              * html/HTMLScriptElement.idl:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLSelectElement.idl:
              * html/HTMLStyleElement.cpp:
              * html/HTMLStyleElement.h:
              * html/HTMLStyleElement.idl:
              * html/HTMLTableCaptionElement.cpp:
              * html/HTMLTableCaptionElement.h:
              * html/HTMLTableCaptionElement.idl:
              * html/HTMLTableCellElement.cpp:
              * html/HTMLTableCellElement.h:
              * html/HTMLTableCellElement.idl:
              * html/HTMLTableColElement.cpp:
              * html/HTMLTableColElement.h:
              * html/HTMLTableColElement.idl:
              * html/HTMLTableElement.cpp:
              * html/HTMLTableElement.h:
              * html/HTMLTableElement.idl:
              * html/HTMLTablePartElement.cpp:
              * html/HTMLTablePartElement.h:
              * html/HTMLTableRowElement.cpp:
              * html/HTMLTableRowElement.h:
              * html/HTMLTableRowElement.idl:
              * html/HTMLTableSectionElement.cpp:
              * html/HTMLTableSectionElement.h:
              * html/HTMLTableSectionElement.idl:
              * html/HTMLTextAreaElement.cpp:
              * html/HTMLTextAreaElement.h:
              * html/HTMLTextAreaElement.idl:
              * html/HTMLTitleElement.cpp:
              * html/HTMLTitleElement.h:
              * html/HTMLTitleElement.idl:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/HTMLUListElement.cpp:
              * html/HTMLUListElement.h:
              * html/HTMLUListElement.idl:
              * ksvg2/css/SVGCSSParser.cpp:
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              * ksvg2/css/SVGRenderStyle.cpp:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/events/JSSVGLazyEventListener.cpp:
              * ksvg2/events/JSSVGLazyEventListener.h:
              * ksvg2/events/SVGZoomEvent.cpp:
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/PointerEventsHitRules.cpp:
              * ksvg2/misc/PointerEventsHitRules.h:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/misc/SVGTimer.cpp:
              * ksvg2/misc/SVGTimer.h:
              * ksvg2/misc/TimeScheduler.cpp:
              * ksvg2/misc/TimeScheduler.h:
              * ksvg2/scripts/cssmakeprops:
              * ksvg2/scripts/cssmakevalues:
              * ksvg2/svg/ColorDistance.cpp:
              * ksvg2/svg/ColorDistance.h:
              * ksvg2/svg/GradientAttributes.h:
              * ksvg2/svg/LinearGradientAttributes.h:
              * ksvg2/svg/PatternAttributes.h:
              * ksvg2/svg/RadialGradientAttributes.h:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.cpp:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAngle.idl:
              * ksvg2/svg/SVGAnimateColorElement.cpp:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.cpp:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateMotionElement.cpp:
              * ksvg2/svg/SVGAnimateMotionElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimatedPathData.cpp:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.cpp:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimationElement.cpp:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGCircleElement.cpp:
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.cpp:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.cpp:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGColor.idl:
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.cpp:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDefsElement.cpp:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.cpp:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.cpp:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGDocument.idl:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGElement.idl:
              * ksvg2/svg/SVGElementInstance.cpp:
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstanceList.cpp:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGEllipseElement.cpp:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGException.h:
              * ksvg2/svg/SVGExternalResourcesRequired.cpp:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.cpp:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFECompositeElement.cpp:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.cpp:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEFloodElement.cpp:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFuncAElement.cpp:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncBElement.cpp:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncGElement.cpp:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncRElement.cpp:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEImageElement.cpp:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFELightElement.cpp:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.cpp:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEPointLightElement.cpp:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpotLightElement.cpp:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFETileElement.cpp:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFilterElement.cpp:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.cpp:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.cpp:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.cpp:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.cpp:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLength.idl:
              * ksvg2/svg/SVGLengthList.cpp:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.cpp:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGListTraits.h:
              * ksvg2/svg/SVGLocatable.cpp:
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMPathElement.cpp:
              * ksvg2/svg/SVGMPathElement.h:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMatrix.idl:
              * ksvg2/svg/SVGMetadataElement.cpp:
              * ksvg2/svg/SVGMetadataElement.h:
              * ksvg2/svg/SVGMetadataElement.idl:
              * ksvg2/svg/SVGNumber.idl:
              * ksvg2/svg/SVGNumberList.cpp:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.cpp:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGParserUtilities.cpp:
              * ksvg2/svg/SVGParserUtilities.h:
              * ksvg2/svg/SVGPathElement.cpp:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.cpp:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.cpp:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.cpp:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.cpp:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.cpp:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPoint.idl:
              * ksvg2/svg/SVGPointList.cpp:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.cpp:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.cpp:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.cpp:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRect.idl:
              * ksvg2/svg/SVGRectElement.cpp:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGSVGElement.idl:
              * ksvg2/svg/SVGScriptElement.cpp:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.cpp:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.cpp:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.cpp:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.cpp:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.cpp:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledLocatableElement.cpp:
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.cpp:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.cpp:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.cpp:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.cpp:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.cpp:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.cpp:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransform.idl:
              * ksvg2/svg/SVGTransformDistance.cpp:
              * ksvg2/svg/SVGTransformDistance.h:
              * ksvg2/svg/SVGTransformList.cpp:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.cpp:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGViewElement.cpp:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.cpp:
              * ksvg2/svg/SVGZoomAndPan.h:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.cpp:
              * loader/CachedImage.h:
              * loader/CachedResource.cpp:
              * loader/CachedResource.h:
              * loader/CachedResourceClient.h:
              * loader/CachedResourceClientWalker.cpp:
              * loader/CachedResourceClientWalker.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/FTPDirectoryParser.cpp:
              * loader/FTPDirectoryParser.h:
              * loader/Request.cpp:
              * loader/Request.h:
              * loader/TextResourceDecoder.cpp:
              * loader/TextResourceDecoder.h:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/Chrome.cpp:
              * page/Chrome.h:
              * page/ChromeClient.h:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/MouseEventWithHitTestResults.cpp:
              * page/MouseEventWithHitTestResults.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              * page/mac/ChromeMac.mm:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/AtomicString.cpp:
              * platform/AtomicString.h:
              * platform/AtomicStringImpl.h:
              * platform/BidiContext.cpp:
              * platform/BidiContext.h:
              * platform/BidiResolver.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontData.h:
              * platform/FontDescription.h:
              * platform/FontFallbackList.h:
              * platform/PlatformString.h:
              * platform/PopupMenu.h:
              * platform/PopupMenuClient.h:
              * platform/SearchPopupMenu.h:
              * platform/SegmentedString.cpp:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StaticConstructors.h:
              * platform/String.cpp:
              * platform/StringHash.h:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextBreakIterator.h:
              * platform/TextBreakIteratorICU.cpp:
              * platform/TextBreakIteratorInternalICU.h:
              * platform/TextStyle.h:
              * platform/UnicodeRange.cpp:
              * platform/UnicodeRange.h:
              * platform/cf/StringCF.cpp:
              * platform/cf/StringImplCF.cpp:
              * platform/graphics/FloatPoint3D.cpp:
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/Icon.h:
              * platform/graphics/IntSizeHash.h:
              * platform/graphics/PathTraversalState.cpp:
              * platform/graphics/cairo/CairoPath.h:
              * platform/graphics/cairo/PathCairo.cpp:
              * platform/graphics/mac/IconMac.mm:
              * platform/graphics/qt/IconQt.cpp:
              * platform/graphics/svg/SVGResourceFilter.cpp:
              * platform/graphics/svg/SVGResourceFilter.h:
              * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.cpp:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.cpp:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.cpp:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.cpp:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.cpp:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.cpp:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.cpp:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.cpp:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.cpp:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.cpp:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
              * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
              * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
              * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
              * platform/graphics/svg/qt/RenderPathQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
              * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
              * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
              * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
              * platform/graphics/win/IconWin.cpp:
              * platform/gtk/FontPlatformData.h:
              * platform/gtk/FontPlatformDataGtk.cpp:
              * platform/gtk/PopupMenuGtk.cpp:
              * platform/gtk/RenderThemeGtk.cpp:
              * platform/gtk/RenderThemeGtk.h:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/image-decoders/png/PNGImageDecoder.cpp:
              * platform/mac/FontMac.mm:
              * platform/mac/FontPlatformData.h:
              * platform/mac/LocalCurrentGraphicsContext.h:
              * platform/mac/LocalCurrentGraphicsContext.mm:
              * platform/mac/PopupMenuMac.mm:
              * platform/mac/SearchPopupMenuMac.mm:
              * platform/mac/StringImplMac.mm:
              * platform/mac/StringMac.mm:
              * platform/mac/TextBreakIteratorInternalICUMac.mm:
              * platform/network/FormData.cpp:
              * platform/network/FormData.h:
              * platform/qt/FileChooserQt.cpp:
              * platform/qt/FontQt.cpp:
              * platform/qt/MenuEventProxy.h:
              * platform/qt/PlugInInfoStoreQt.cpp:
              * platform/qt/PopupMenuQt.cpp:
              * platform/qt/QWebPopup.cpp:
              * platform/qt/QWebPopup.h:
              * platform/qt/RenderThemeQt.cpp:
              * platform/qt/RenderThemeQt.h:
              * platform/qt/SearchPopupMenuQt.cpp:
              * platform/qt/TextBreakIteratorQt.cpp:
              * platform/qt/WheelEventQt.cpp:
              * platform/win/FontPlatformData.h:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/PopupMenuWin.cpp:
              * platform/win/SearchPopupMenuWin.cpp:
              * platform/win/TextBreakIteratorInternalICUWin.cpp:
              * rendering/AutoTableLayout.cpp:
              * rendering/AutoTableLayout.h:
              * rendering/CounterNode.cpp:
              * rendering/CounterNode.h:
              * rendering/DataRef.h:
              * rendering/EllipsisBox.cpp:
              * rendering/EllipsisBox.h:
              * rendering/FixedTableLayout.cpp:
              * rendering/FixedTableLayout.h:
              * rendering/GapRects.h:
              * rendering/HitTestRequest.h:
              * rendering/HitTestResult.cpp:
              * rendering/HitTestResult.h:
              * rendering/InlineBox.cpp:
              * rendering/InlineBox.h:
              * rendering/InlineFlowBox.cpp:
              * rendering/InlineFlowBox.h:
              * rendering/InlineRunBox.h:
              * rendering/InlineTextBox.cpp:
              * rendering/InlineTextBox.h:
              * rendering/Length.h:
              * rendering/ListMarkerBox.cpp:
              * rendering/ListMarkerBox.h:
              * rendering/RenderApplet.cpp:
              * rendering/RenderApplet.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBR.cpp:
              * rendering/RenderBR.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderButton.cpp:
              * rendering/RenderButton.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderContainer.h:
              * rendering/RenderCounter.cpp:
              * rendering/RenderCounter.h:
              * rendering/RenderFieldset.cpp:
              * rendering/RenderFieldset.h:
              * rendering/RenderFileUploadControl.cpp:
              * rendering/RenderFileUploadControl.h:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderForeignObject.cpp:
              * rendering/RenderForeignObject.h:
              * rendering/RenderFrame.cpp:
              * rendering/RenderFrame.h:
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderInline.cpp:
              * rendering/RenderInline.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderLegend.cpp:
              * rendering/RenderLegend.h:
              * rendering/RenderListItem.cpp:
              * rendering/RenderListItem.h:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderListMarker.h:
              * rendering/RenderMenuList.cpp:
              * rendering/RenderMenuList.h:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderPart.cpp:
              * rendering/RenderPart.h:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderPartObject.h:
              * rendering/RenderPath.cpp:
              * rendering/RenderPath.h:
              * rendering/RenderReplaced.cpp:
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGBlock.cpp:
              * rendering/RenderSVGBlock.h:
              * rendering/RenderSVGContainer.cpp:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGGradientStop.cpp:
              * rendering/RenderSVGGradientStop.h:
              * rendering/RenderSVGHiddenContainer.cpp:
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGImage.cpp:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInline.cpp:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.cpp:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGTSpan.cpp:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.cpp:
              * rendering/RenderSVGText.h:
              * rendering/RenderSlider.cpp:
              * rendering/RenderSlider.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderTable.cpp:
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableRow.h:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextControl.cpp:
              * rendering/RenderTextControl.h:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeSafari.cpp:
              * rendering/RenderThemeSafari.h:
              * rendering/RenderThemeWin.cpp:
              * rendering/RenderThemeWin.h:
              * rendering/RenderView.cpp:
              * rendering/RenderView.h:
              * rendering/RenderWidget.cpp:
              * rendering/RenderWidget.h:
              * rendering/RootInlineBox.cpp:
              * rendering/RootInlineBox.h:
              * rendering/SVGInlineFlowBox.cpp:
              * rendering/SVGInlineFlowBox.h:
              * rendering/SVGInlineTextBox.cpp:
              * rendering/SVGInlineTextBox.h:
              * rendering/SVGRootInlineBox.cpp:
              * rendering/SVGRootInlineBox.h:
              * rendering/TableLayout.h:
              * rendering/bidi.cpp:
              * rendering/bidi.h:
              * rendering/break_lines.cpp:
              * rendering/break_lines.h:
              * xml/DOMParser.cpp:
              * xml/DOMParser.h:
              * xml/DOMParser.idl:
              * xml/XMLHttpRequest.cpp:
              * xml/XMLHttpRequest.h:
              * xml/XMLSerializer.cpp:
              * xml/XMLSerializer.h:
              * xml/XMLSerializer.idl:
              * xml/XPathEvaluator.idl:
              * xml/XPathExpression.idl:
              * xml/XPathNSResolver.idl:
              * xml/XPathResult.idl:
              * xml/XSLImportRule.cpp:
              * xml/XSLImportRule.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessor.cpp:
              * xml/XSLTProcessor.h:
      
      WebKitQt:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * Api/qcookiejar.cpp:
              * Api/qcookiejar.h:
              * Api/qwebframe.cpp:
              * Api/qwebframe.h:
              * Api/qwebframe_p.h:
              * Api/qwebhistoryinterface.cpp:
              * Api/qwebhistoryinterface.h:
              * Api/qwebkitglobal.h:
              * Api/qwebnetworkinterface.cpp:
              * Api/qwebnetworkinterface.h:
              * Api/qwebnetworkinterface_p.h:
              * Api/qwebobjectplugin.cpp:
              * Api/qwebobjectplugin.h:
              * Api/qwebobjectpluginconnector.cpp:
              * Api/qwebobjectpluginconnector.h:
              * Api/qwebpage.cpp:
              * Api/qwebpage.h:
              * Api/qwebpage_p.h:
              * Api/qwebpagehistory.cpp:
              * Api/qwebpagehistory.h:
              * Api/qwebsettings.cpp:
              * Api/qwebsettings.h:
              * WebCoreSupport/EditCommandQt.cpp:
              * WebCoreSupport/EditCommandQt.h:
      
      WebKitSite:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * blog/wp-content/plugins/wp-cache/wp-cache.php:
              * blog/wp-includes/class-snoopy.php:
              * blog/wp-includes/gettext.php:
              * blog/wp-includes/js/tinymce/license.html:
              * blog/wp-includes/streams.php:
      
      WebKitTools:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * Drosera/config.h:
      
      LayoutTests:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * svg/carto.net/resources/button.js:
              * svg/carto.net/resources/colourPicker.js:
              * svg/carto.net/resources/comboBox.js:
              * svg/carto.net/resources/helper_functions.js:
              * svg/carto.net/resources/mapApp.js:
              * svg/carto.net/resources/scrollbar.js:
              * svg/carto.net/resources/selectionList.js:
              * svg/carto.net/resources/slider.js:
              * svg/carto.net/resources/tabgroup.js:
              * svg/carto.net/resources/textbox.js:
              * svg/carto.net/resources/window.js:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8eccecd
  4. 27 Aug, 2007 1 commit
    • hyatt's avatar
      Fix for 5441224, micro-optimizations to improve the PLT by 1%. · 56bd0246
      hyatt authored
              Reviewed by Darin
      
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::canShareStyleWithElement):
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawGlyphs):
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::requiresLayer):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::isBody):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::renderArena):
              (WebCore::RenderObject::isRoot):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56bd0246
  5. 02 Aug, 2007 1 commit
    • oliver's avatar
      Reviewed by Geoff · a4a45915
      oliver authored
              Fix for <rdar://problem/5369332> Xcode crashes while selecting a hyperlink within a AppleScript dictionary (WebCore::Font::drawGlyphBuffer)
      
              There were many places where we were not correctly retaining/releasing the
              NSFont object stored in the C++ PlatformFontData object, this resulted in
              the GC incorrectly collecting the NSFont.
      
              This patch fixes the problem by prevent direct modification of the PlatformFontData
              font pointer, allowing us to enforce correct CFRetain/Release behaviour.
      
              * platform/FontData.h:
              (WebCore::FontData::getNSFont):
              * platform/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              (WebCore::FontCache::createFontPlatformData):
              * platform/mac/FontDataMac.mm:
              (WebCore::initFontData):
              (WebCore::FontData::platformInit):
              (WebCore::FontData::platformDestroy):
              (WebCore::FontData::smallCapsFontData):
              (WebCore::FontData::containsCharacters):
              (WebCore::FontData::determinePitch):
              (WebCore::FontData::platformWidthForGlyph):
              (WebCore::FontData::checkShapesArabic):
              * platform/mac/FontMac.mm:
              (WebCore::initializeATSUStyle):
              (WebCore::overrideLayoutOperation):
              (WebCore::Font::drawGlyphs):
              * platform/mac/FontPlatformData.h:
              (WebCore::FontPlatformData::FontPlatformData):
              (WebCore::FontPlatformData::~FontPlatformData):
              (WebCore::FontPlatformData::hash):
              (WebCore::FontPlatformData::operator==):
              (WebCore::FontPlatformData::font):
              (WebCore::FontPlatformData::setFont):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4a45915
  6. 25 May, 2007 1 commit
    • ggaren's avatar
      Reviewed by Darin Adler. · 6ad6e760
      ggaren authored
              Fixed a bug with Settings where a number of different objects held bare 
              Settings* data members, even though the Page owns the Settings object and 
              deletes it upon destruction.
      
              Added NULL checks since the Page can be deleted before the frame/document.
      
              * page/Settings.cpp: Removed reliance on setNeedsReapplyStylesForSettingsChange.
      
              * css/cssstyleselector.cpp: CSSStyleSelector was the worst offender. It 
              held a number of back pointers that were not guaranteed. I removed the 
              Settings*, Frame*, and FrameView* back pointers, but others could probably 
              go, too. I replaced them with a single Document* pointer, which is guaranteed
              because the Document owns the CSSStyleSelector.
      
              * page/Page.cpp: Removed setNeedsReapplyStylesForSettingsChange -- the 
              Settings object is now a proper subcontroller of Page, so it doesn't need
              to use a global table to find its page anymore. Also, this function
              confusingly implied that the Frames in a page can have heterogeneous settings,
              which is not true.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ad6e760
  7. 11 May, 2007 1 commit
    • bdash's avatar
      2007-05-11 Mitz Pettel <mitz@webkit.org> · bcc4eddf
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13572
                Arabic characters are not correctly joined when using Arial
      
              No tests added because standard fonts do not use the character-based shaping
              code path.
      
              Added shapeArabic(), a private version of u_shapeArabic() from ICU,
              patched to shape Arabic characters used in Persian, Urdu, Sindhi, etc.
              (whose contextual forms belong to the Arabic Presentation Forms-A block).
      
              * WebCore.xcodeproj/project.pbxproj: Added ShapeArabic.{c,h}.
              * platform/mac/FontMac.mm:
              (WebCore::shapeArabic): Changed to call shapeArabic() instead of u_shapeArabic().
              * platform/mac/ShapeArabic.c: Added. Based on ushape.c from ICU, with
              additional shaping data and logic for Arabic Presentation Forms-A. Removed
              many options that are not used in WebKit and code that malloc()ed a temporary
              buffer and reversed the string.
              (changeLamAlef):
              (specialChar):
              (getLink):
              (isTashkeelChar):
              (shapeUnicode):
              (shapeArabic):
              * platform/mac/ShapeArabic.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcc4eddf
  8. 31 Mar, 2007 1 commit
    • hyatt's avatar
      Fix for bug 13234, layout of selected justified text is broken. ... · 0b100b77
      hyatt authored
              Fix for bug 13234, layout of selected justified text is broken.  Rework TextRuns to avoid having
              from/to members.  Let those be passed in only by the functions that need them (drawing and selection rect).
      
              Reviewed by mitz
      
              fast/text/justified-selection-at-edge.html
      
              * platform/Font.cpp:
              (WebCore::WidthIterator::WidthIterator):
              (WebCore::WidthIterator::advance):
              (WebCore::Font::canUseGlyphCache):
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::floatWidthForSimpleText):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::selectionRectForSimpleText):
              (WebCore::Font::offsetForPositionForSimpleText):
              * platform/Font.h:
              (WebCore::TextRun::m_len):
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText):
              (WebCore::GraphicsContext::drawHighlightForText):
              * platform/graphics/GraphicsContext.h:
              * platform/mac/FontMac.mm:
              (WebCore::addDirectionalOverride):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::selectionRectForComplexText):
              (WebCore::Font::drawComplexText):
              (WebCore::Font::floatWidthForComplexText):
              (WebCore::Font::offsetForPositionForComplexText):
              * platform/qt/FontQt.cpp:
              (WebCore::Font::drawComplexText):
              (WebCore::Font::floatWidthForComplexText):
              * platform/qt/TemporaryLinkStubs.cpp:
              (Font::selectionRectForComplexText):
              * rendering/EllipsisBox.cpp:
              (WebCore::EllipsisBox::paint):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              (WebCore::RenderListMarker::calcMinMaxWidth):
              (WebCore::RenderListMarker::getRelativeMarkerRect):
              * rendering/RenderMenuList.cpp:
              (WebCore::RenderMenuList::updateOptionsWidth):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::widthFromCache):
              (WebCore::RenderText::width):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b100b77
  9. 24 Mar, 2007 1 commit
  10. 14 Feb, 2007 1 commit
  11. 05 Feb, 2007 1 commit
    • ap's avatar
      2007-02-05 Mitz Pettel <mitz@webkit.org> · 220849b9
      ap authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=6626
                Arabic & Farsi rendered with no shaping (all glyphs separate, unreadable!)
      
              No test possible since Mac OS X only ships with fonts that contain shaping
              information.
      
              * icu/unicode/ushape.h: Added from
              http://www.opensource.apple.com/darwinsource/10.4.8.ppc/ICU-6.2.9/icuSources/common/unicode/
              * platform/FontData.h:
              (WebCore::FontData::shapesArabic): Added. Returns whether the font contains
              shaping information for Arabic or not.
              * platform/mac/FontDataMac.mm:
              (WebCore::FontData::platformInit):
              (WebCore::FontData::checkShapesArabic): Added. Checks whether the font contains
              a glyph metamorphosis table. The heuristic is that if a font contains Arabic glyphs
              and a metamorphosis table, then it includes shaping information for Arabic.
              * platform/mac/FontMac.mm:
              (WebCore::overrideLayoutOperation): Changed to use the same character buffer passed
              to ATSUI instead of the original character buffer and to give zero-width spaces zero
              width.
              (WebCore::isArabicLamWithAlefLigature): Added. Checks if the character is one
              of the Arabic presentation forms of Lam with Alef.
              (WebCore::shapeArabic): Added. This is a wrapper around the ICU Arabic shaping routine
              that replaces each space following a Lam with Alef ligature resulting from shaping
              with a zero-width space.
              (WebCore::ATSULayoutParameters::initialize): Changed to allocate the auxiliary buffer
              lazily for mirroring and Arabic shaping. Added a call to shapeArabic() when required.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19407 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      220849b9
  12. 18 Jan, 2007 1 commit
    • bdash's avatar
      2007-01-18 Mitz Pettel <mitz@webkit.org> · d0f54218
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=6218
                CSS1: WebTextRenderer caches and re-uses fallback renderers that are based on family lists
      
              This patch takes character-to-glyph mapping out of FontData and instead makes
              each Font keep its own mapping, using a shared set of glyph page fallback trees.
      
              For each page number there is (at most) one tree. A path from the root to a
              node in the tree corresponds to a fallback list of FontDatas. The node points to
              a page (which may be shared with other nodes) that maps each character in its range
              to a glyph in the first FontData in the fallback list that has it, or to 0 if none of
              the FontDatas has a glyph for that character. A special kind of node, that can
              only occur as a leaf, corresponds to using system fallback fonts after the list
              has been exhausted. This prevents system fallback from polluting non-leaf
              nodes.
      
              Nodes and pages are initialized lazily and employ "copy on write".
      
              * CMakeLists.txt:
              * WebCore.pro:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * platform/Font.cpp:
              (WebCore::WidthIterator::WidthIterator): Removed substituteFontData.
              (WebCore::WidthIterator::advance): Moved all character-to-glyph mapping logic out
              of here and replaced it with a call to Font::glyphDataForCharacter().
              (WebCore::Font::Font):
              (WebCore::Font::operator=):
              (WebCore::Font::glyphDataForCharacter): Added. This method performs the lookup in the
              page fallback trees, triggering lazy initialization as needed, and caching pointers to
              the retrieved page tree nodes in the font.
              (WebCore::Font::update):
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::floatWidthForSimpleText): Removed substituteFont argument.
              (WebCore::Font::offsetForPositionForSimpleText):
              * platform/Font.h:
              * platform/FontData.cpp:
              (WebCore::FontData::FontData):
              * platform/FontData.h:
              (WebCore::FontData::missingGlyphData): Added. Returns the "missing glyph" GlyphData for
              this FontData.
              * platform/GlyphMap.cpp: Removed.
              * platform/GlyphMap.h: Removed.
              * platform/GlyphPageTreeNode.cpp: Renamed GlyphMap.cpp to this.
              (WebCore::GlyphPageTreeNode::getRoot): Added. Returns the root of the page fallback tree for
              the given page number.
              (WebCore::GlyphPageTreeNode::initializePage): Added. Helper method that initializes the page
              pointer of a node, possibly to a pointer to another node's page or to 0.
              (WebCore::GlyphPageTreeNode::getChild): Added.
              * platform/GlyphPageTreeNode.h: Renamed GlyphMap.h to this.
              (WebCore::GlyphPage::glyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForIndex):
              (WebCore::GlyphPageTreeNode::GlyphPageTreeNode):
              (WebCore::GlyphPageTreeNode::getRootChild):
              (WebCore::GlyphPageTreeNode::parent):
              (WebCore::GlyphPageTreeNode::page):
              (WebCore::GlyphPageTreeNode::level):
              (WebCore::GlyphPageTreeNode::isSystemFallback): Added. Returns whether the node corresponds
              to the system providing fallback fonts, which is done on a character-by-character basis.
              * platform/gdk/GlyphMapGdk.cpp: Removed.
              * platform/gdk/GlyphPageTreeNodeGdk.cpp: Renamed GlyphMapGdk.cpp to this.
              (WebCore::GlyphPage::fill):
              * platform/mac/FontDataMac.mm:
              (WebCore::FontData::platformInit):
              * platform/mac/FontMac.mm:
              (WebCore::Font::Font):
              * platform/mac/GlyphMapMac.cpp: Removed.
              * platform/mac/GlyphPageTreeNodeMac.cpp: Renamed GlypMapMac.cpp to this.
              (WebCore::GlyphPage::fill): Changed to return false if the font has no glyphs in the page.
              * platform/qt/GlyphMapQt.cpp: Removed.
              * platform/qt/GlyphPageTreeNodeQt.cpp: Renamed GlyphMapQt.cpp to this.
              (WebCore::GlyphPage::fill):
              * platform/win/GlyphMapWin.cpp: Removed.
              * platform/win/GlyphPageTreeNodeWin.cpp: Renamed GlyphMapWin to this.
              (WebCore::GlyphPage::fill):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0f54218
  13. 11 Jan, 2007 1 commit
    • darin's avatar
      WebCore: · dbba2bbd
      darin authored
              Reviewed by Hyatt.
      
              - removed a couple Mac bridging classes; put the code in WebKit instead
      
              * WebCore.exp: Updated for new WebKit uses.
      
              * WebCore.xcodeproj/project.pbxproj: Removed files.
              * bridge/mac/WebCoreEncodings.h: Removed.
              * bridge/mac/WebCoreEncodings.mm: Removed.
              * bridge/mac/WebMimeTypeRegistryBridge.h: Removed.
              * bridge/mac/WebMimeTypeRegistryBridge.mm: Removed.
              * platform/mac/WebNSAttributedStringExtras.h: Removed.
              * platform/mac/WebNSAttributedStringExtras.mm: Removed.
      
              * platform/mac/PasteboardMac.mm:
              (WebCore::stripAttachmentCharacters): Added. Moved code from
              WebNSAttributedStringExtras.mm, and fixed a garbage collection problem
              (a global with a plain old retain rather than HardRetain).
              (WebCore::Pasteboard::writeSelection): Updated to use stripAttachmentCharacters.
      
              - removed some DeprecatedCString use
      
              * loader/FrameLoader.cpp: Changed to use String more to eliminate use of
              DeprecatedCString here in the mailto form support. But maybe we can remove
              this entirely. Do we really care about mailto forms any more?
      
              * platform/Pasteboard.h: Removed unneeded DeprecatedCString declaration.
      
              * platform/PlatformString.h: Added replace that takes two strings.
              * platform/StringImpl.h: Ditto.
              * platform/StringImpl.cpp: (WebCore::StringImpl::replace): Ditto.
      
              * platform/TextStream.h: Remove DeprecatedCString case.
              * platform/TextStream.cpp: Ditto.
      
              - made a few more files use CharacterNames.h
      
              * platform/CharacterNames.h: Added some more character names and
              sorted alphabetically.
      
              * bridge/mac/WebCoreStringTruncator.mm:
              (centerTruncateToBuffer): Use character name from CharacterNames.h.
              (rightTruncateToBuffer): Ditto.
              (truncateString): Ditto.
              * platform/mac/FontMac.mm: (WebCore::addDirectionalOverride): Ditto.
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutVerticalBox): Ditto.
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::checkLinesForTextOverflow): Ditto.
      
      WebKit:
      
              Reviewed by Hyatt.
      
              - moved code from a couple WebCore bridging classes here instead
      
              * Misc/WebNSPasteboardExtras.mm:
              (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
              Use MimeTypeRegistry instead of WebMimeTypeRegistryBridge.
      
              * WebView/WebHTMLRepresentation.mm:
              (stringArray): Added. Helper to convert a HashSet to an NSArray.
              (concatenateArrays): Added. Helper to concatenate two NSArray objects.
              (+[WebHTMLRepresentation supportedMIMETypes]): Use MimeTypeRegistry instead of
              WebMimeTypeRegistryBridge. Also fix a potential GC problem by using a RetainPtr
              instead of a [retain] on a global variable.
              (+[WebHTMLRepresentation supportedNonImageMIMETypes]): Ditto.
              (+[WebHTMLRepresentation supportedImageMIMETypes]): Ditto.
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _imageExistsAtPaths:]): Use MimeTypeRegistry instead of
              WebMimeTypeRegistryBridge.
              (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
      
              * WebView/WebView.mm: (+[WebView _decodeData:]): Moved code here from
              the old WebCoreEncodings class.
      
              * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way with this file.
              Moved WebRenderNode into the appropriate group.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dbba2bbd
  14. 28 Dec, 2006 1 commit
    • weinig's avatar
      LayoutTests: · a154b7c0
      weinig authored
              Reviewed by Darin.
      
              - pixel test for http://bugs.webkit.org/show_bug.cgi?id=11124
                REGRESSION (r14297): No drag image for partially-selected complex text
      
              * fast/text/atsui-partial-selection-expected.checksum: Added.
              * fast/text/atsui-partial-selection-expected.png: Added.
              * fast/text/atsui-partial-selection-expected.txt: Added.
              * fast/text/atsui-partial-selection.html: Added.
      
      WebCore:
      
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11124
                REGRESSION (r14297): No drag image for partially-selected complex text
      
              Test: fast/text/atsui-partial-selection.html
      
              * platform/Font.h: Changed comment.
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText): Corrected the run length calculation.
              Changed the ATSUI layout parameters to know about the entire text run, rather
              than just the range we are drawing. ATSUI measures the characters before
              the range and positions the range accordingly.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a154b7c0
  15. 20 Dec, 2006 2 commits
    • hyatt's avatar
      Fix SVG stroking. Make strokeThickness() get pushed into CG immediately · 75f6c797
      hyatt authored
              when set in the GraphicsContext.  Remove setLineWidth since it is
              redundant with setStrokeThickness now.
      
              Reviewed by mitz
      
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::setLineWidth):
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::setPlatformStrokeThickness):
              (WebCore::GraphicsContext::setPlatformStrokeStyle):
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawEllipse):
              (WebCore::GraphicsContext::strokeArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              (WebCore::GraphicsContext::setPlatformStrokeThickness):
              * platform/graphics/qt/GraphicsContextQt.cpp:
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawGlyphs):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75f6c797
    • hyatt's avatar
      Fix for bug 11889, support stroking and filling of HTML text from CSS.... · bf61203e
      hyatt authored
              Fix for bug 11889, support stroking and filling of HTML text from CSS.  This patch adds four new CSS properties:
              text-fill-color, text-stroke-color, text-stroke-width and text-stroke (a shorthand for the other two).  Text
              is filled and not stroked by default and does so using the text-fill-color.  If this property is not set, then
              color is used.
      
              Stroking is accomplished by setting a stroke width.  Stroke color, if omitted, will be picked up from the color
              property.  You can set either color to be transparent or partially transparent.  A fully transparent fill color is
              the way to achieve an "outline" effect where only stroking happens.
      
              Stroking and filling are both customizable inside the ::selection pseudo-element, and so when selecting you can
              vary colors and widths.
      
              text-shadow applies to both the stroke and the fill.
      
              text-decorations do not yet respect the stroke/fill colors.  This will follow in a later patch.
      
              Reviewed by mitz
      
              Added fast/text/stroking.html as a layout test.  Enhanced RenderTreeAsText.cpp to dump fill and stroke information.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSPropertyNames.in:
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawGlyphs):
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally):
              * rendering/InlineFlowBox.h:
              (WebCore::InlineFlowBox::InlineFlowBox):
              (WebCore::InlineFlowBox::maxHorizontalVisualOverflow):
              * rendering/InlineTextBox.cpp:
              (WebCore::updateGraphicsContext):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::selectionForegroundColor):
              * rendering/RenderStyle.cpp:
              (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
              (WebCore::StyleCSS3InheritedData::operator==):
              (WebCore::RenderStyle::diff):
              * rendering/RenderStyle.h:
              (WebCore::RenderStyle::textStrokeColor):
              (WebCore::RenderStyle::textStrokeWidth):
              (WebCore::RenderStyle::textFillColor):
              (WebCore::RenderStyle::setTextStrokeColor):
              (WebCore::RenderStyle::setTextStrokeWidth):
              (WebCore::RenderStyle::setTextFillColor):
              (WebCore::RenderStyle::initialTextStrokeWidth):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::operator<<):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf61203e
  16. 18 Dec, 2006 2 commits
    • hyatt's avatar
      Eliminate the Pen object in favor of separate stroke variables, since... · 801efce1
      hyatt authored
              Eliminate the Pen object in favor of separate stroke variables, since most code just wants to set the
              stroke color.  This also makes it easier for us to push only stroke color through into CG synchronously
              while leaving the others alone.
      
              Reviewed by olliej
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState):
              (WebCore::GraphicsContext::setStrokeThickness):
              (WebCore::GraphicsContext::setStrokeStyle):
              (WebCore::GraphicsContext::setStrokeColor):
              (WebCore::GraphicsContext::strokeThickness):
              (WebCore::GraphicsContext::strokeStyle):
              (WebCore::GraphicsContext::strokeColor):
              (WebCore::GraphicsContext::setPlatformStrokeStyle):
              (WebCore::GraphicsContext::setPlatformStrokeThickness):
              * platform/graphics/GraphicsContext.h:
              (WebCore::):
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::drawRect):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawEllipse):
              (WebCore::GraphicsContext::drawArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              (WebCore::GraphicsContext::drawLineForText):
              (WebCore::GraphicsContext::setPlatformStrokeColor):
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::toQPenStyle):
              (WebCore::GraphicsContext::setPlatformStrokeColor):
              (WebCore::GraphicsContext::setPlatformStrokeStyle):
              (WebCore::GraphicsContext::setPlatformStrokeThickness):
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawGlyphs):
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::paintDecorations):
              * rendering/InlineTextBox.cpp:
              (WebCore::updateTextColor):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintObject):
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorderArc):
              (WebCore::RenderObject::drawBorder):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::paint):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::paint):
              * rendering/RenderText.cpp:
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintMenuListButton):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      801efce1
    • hyatt's avatar
      Fix performance regression caused by adding setting of stroke colors... · 35ea5bf6
      hyatt authored
              Fix performance regression caused by adding setting of stroke colors as well as fill colors to every font drawing
              call on Mac.  Fix is rather involved:
      
              (1) Fill color is now updated in CG synchronously.  There is no more delay in the push.  I used the model that
              Qt added for this, setPlatformFillColor, so we're the same now.
      
              (2) Text was being drawn using the pen color, which is tantamount to using the stroke color.  Since text in HTML
              is really a fill and not a stroke, all cross-platform code that draws text has been patched to use fill instead
              of the pen.
      
              (3) Added a new API to GraphicsContext to set the text drawing mode to any combination of fill/stroke/clip.
              Ports should implement setPlatformTextDrawingMode or just query the mode in their drawGlyphs/drawComplexText
              method on their Font class to get the new functionality.
      
              (4) InlineTextBox will set the fill and stroke colors appropriately now rather than always assuming fill.
      
              (5) Fixed a bug in GraphicsContextCG where fillRectWithColor was updating the CG fill color in the state object
              as a side effect, creating a mismatch between CG's fill color and the stored cross-platform fill color.
      
              Reviewed by olliej
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState):
              (WebCore::GraphicsContext::textDrawingMode):
              (WebCore::GraphicsContext::setTextDrawingMode):
              (WebCore::GraphicsContext::setPlatformTextDrawingMode):
              (WebCore::GraphicsContext::setPlatformPen):
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::fillRect):
              (WebCore::GraphicsContext::setPlatformTextDrawingMode):
              (WebCore::GraphicsContext::setPlatformFillColor):
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              (WebCore::SVGPaintServerGradient::teardown):
              (WebCore::SVGPaintServerGradient::setup):
              * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
              (WebCore::SVGPaintServerPattern::setup):
              (WebCore::SVGPaintServerPattern::teardown):
              * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
              (WebCore::SVGPaintServerSolid::setup):
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawGlyphs):
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreDrawTextAtPoint):
              * rendering/EllipsisBox.cpp:
              (WebCore::EllipsisBox::paint):
              * rendering/InlineTextBox.cpp:
              (WebCore::correctedTextColor):
              (WebCore::updateTextColor):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::paintObject):
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::paintItemForeground):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      35ea5bf6
  17. 17 Dec, 2006 1 commit
  18. 30 Oct, 2006 1 commit
    • darin's avatar
      WebCore: · e8839469
      darin authored
              Reviewed by John Sullivan.
      
              - work toward removing Objective-C data types from FrameLoader.h:
                removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
                and WebCoreResourceHandle
              - moved bodyBackgroundColor function from Frame to WebFrame in WebKit
      
              * page/PageState.h:
              * page/PageState.cpp: Added, C++ class with much of what WebCorePageState had.
      
              * bridge/mac/FrameMac.h: Removed uneeeded declarations and bodyBackgroundColor().
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::startRedirectionTimer): Use a
              double for the date instead of an NSDate.
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm: Removed invalidatePageCache and
              saveDocumentToPageCache methods.
      
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCorePageState.mm: Removed most of the class and turned it into
              an Objective-C wrapper for PageState.
      
              * loader/FrameLoader.h: Removed unused Objective-C types, eliminated use of
              NSDate and WebCorePageState.
              * loader/FrameLoaderClient.h: Changed NSDate to double.
              * loader/mac/FrameLoaderMac.mm:
              (WebCore::FrameLoader::receivedMainResourceError): Moved call to setInPageCache
              here that used to be in invalidateCurrentItemPageCache on the WebKit side.
              (WebCore::FrameLoader::clientRedirected): Changed NSDate to double for date.
              (WebCore::FrameLoader::open): Moved one of the open functions that was part of
              commitProvisionalLoad inside the commitProvisionalLoad function, so that it can
              extract the parameters from the response. Changed the open function that takes
              a PageState to use the new C++ PageState.
              (WebCore::FrameLoader::commitProvisionalLoad): Added the code from the open
              function; tightened up logic, removing a few cases that could never happen, as
              well as the unused reload boolean.
      
              * ForwardingHeaders/kjs/property_map.h: Added.
      
              * WebCore.exp: Updated.
              * WebCore.xcodeproj/project.pbxproj: Updated.
      
      WebKit:
      
              Reviewed by John Sullivan.
      
              - work toward removing Objective-C data types from FrameLoader.h:
                removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
                and WebCoreResourceHandle
              - moved bodyBackgroundColor function here from Frame
      
              * History/WebHistoryItem.m: (+[WebHistoryItem _closeObjectsInPendingPageCaches]):
              Updated for change in WebCorePageState.
      
              * WebCoreSupport/WebFrameBridge.mm: Removed saveDocumentToPageCache method.
      
              * WebCoreSupport/WebFrameLoaderClient.h: Changed NSDate to double.
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::invalidateCurrentItemPageCache): Moved the code that was
              formerly in invalidatePageCache: on the bridge here.
              (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Added code to make the
              NSDate here.
              (WebFrameLoaderClient::createPageCache): Restructured code to create the
              WebCorePageState object directly instead of calling saveDocumentToPageCache on
              the bridge.
      
              * WebView/WebFrame.mm: (-[WebFrame _bodyBackgroundColor]): Rewrote this to work
              directly with the DOM and renderers rather than using a function on Frame.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8839469
  19. 21 Sep, 2006 1 commit
  20. 15 Sep, 2006 1 commit
    • beidson's avatar
      Reviewed by Eric Siedel · 4b65da93
      beidson authored
              Dumped the use of CGColorRef and directly use the floating point data from
              WebCore::Color
      
              This fixes the performance regression found between 16285 and 16286
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawGlyphs):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b65da93
  21. 13 Sep, 2006 1 commit
  22. 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
  23. 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
  24. 06 Sep, 2006 1 commit
    • darin's avatar
      Reviewed by Tim Hatcher. · be6eb6ba
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=10675
                tweak font-related headers and convert lists to vectors
      
              One major change was to greatly reduce the number of files that include Font.h.
              Another was to convert many uses of DeprecatedPtrList/DeprecatedValueList to Vector.
      
              * WebCore.xcodeproj/project.pbxproj: Added TextStyle.h.
      
              * bindings/objc/DOM.mm: (-[DOMElement _font]): Changed to not depend on
              Font::getNSFont since a WebCore::Font represents more than one NSFont.
      
              * bindings/objc/DOMNode.mm: (-[DOMNode lineBoxRects]): Updated to use Vector.
              * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
              * bridge/mac/FrameViewMac.mm: (WebCore::FrameView::updateDashboardRegions): Ditto.
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
              * dom/Document.cpp:
              (WebCore::Document::dashboardRegions): Ditto.
              (WebCore::Document::setDashboardRegions): Ditto.
              * dom/Document.h: Ditto.
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplacementFragment::removeUnrenderedNodes): Ditto.
              * html/FormDataList.h: Ditto.
              * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::isFocusable): Ditto.
              * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formData): Ditto.
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::absoluteRects): Ditto.
              * kcanvas/RenderPath.h: Ditto.
              * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::absoluteRects): Ditto.
              * kcanvas/RenderSVGImage.h: Ditto.
              * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::absoluteRects): Ditto.
              * kcanvas/RenderSVGText.h: Ditto.
              * loader/FormData.cpp:
              (WebCore::FormData::flatten): Ditto.
              (WebCore::FormData::flattenToString): Ditto.
              * loader/FormData.h: (WebCore::FormData::elements): Ditto.
              * loader/mac/LoaderFunctionsMac.mm: (WebCore::ServeSynchronousRequest): Ditto.
              * page/Frame.cpp: (WebCore::Frame::markedTextUnderlines): Ditto.
              * page/Frame.h: Ditto.
              * page/FramePrivate.h: Ditto.
              * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start): Ditto.
              * rendering/InlineTextBox.h: Ditto.
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint): Ditto.
              (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
              * rendering/RenderContainer.h: Ditto.
              * rendering/RenderContainer.cpp: (WebCore::RenderContainer::lineBoxRects): Ditto.
              * rendering/RenderInline.h: Ditto.
              * rendering/RenderInline.cpp: (WebCore::RenderInline::absoluteRects): Ditto.
              * rendering/RenderObject.h: Ditto.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::lineBoxRects): Ditto.
              (WebCore::RenderObject::absoluteRects): Ditto.
              (WebCore::RenderObject::absoluteBoundingBoxRect): Ditto.
              (WebCore::RenderObject::addDashboardRegions): Ditto.
              (WebCore::RenderObject::collectDashboardRegions): Ditto.
              * rendering/RenderStyle.h: Ditto.
              * rendering/RenderStyle.cpp:
              (WebCore::RenderStyle::initialDashboardRegions): Ditto.
              (WebCore::RenderStyle::noneDashboardRegions): Ditto.
              * rendering/RenderText.h: Ditto.
              * rendering/RenderText.cpp:
              (WebCore::RenderText::absoluteRects): Ditto.
              (WebCore::RenderText::lineBoxRects): Ditto.
              * rendering/RenderView.h: Ditto.
              * rendering/RenderView.cpp: (WebCore::RenderView::absoluteRects): Ditto.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString): Updated to use Vector and changed to not
              depend on getNSFont on a Font.
              (WebCore::FrameMac::fontForSelection): Changed to not depend on Font::getNSFont.
              (WebCore::FrameMac::fontAttributesForSelectionStart): Ditto.
              (WebCore::convertAttributesToUnderlines): Updated to use Vector.
              (WebCore::FrameMac::setMarkedTextRange): Ditto.
              (WebCore::FrameMac::dashboardRegionsDictionary): Ditto.
      
              * bridge/mac/WebCoreAXObject.mm:
              (boundingBoxRect): Updated to use Vector.
              (AXAttributeStringSetStyle): Changed to not depend on Font::getNSFont.
      
              * bridge/mac/WebCoreStringTruncator.mm: Updated includes.
              * page/Settings.h: Ditto.
              * platform/mac/WebCoreTextRenderer.mm: Ditto.
              * rendering/EllipsisBox.cpp: Ditto.
      
              * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply):
              Updated to use a Vector that we iterate in reverse order instead of a linked list
              that we reverse by prepending elements instead of adding to the end.
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
      
              * loader/DocLoader.h: Removed unneeded include of DeprecatedPtrList.h.
      
              * platform/Font.h: Moved TextStyle to a separate header. Removed Font::getNSFont.
              * platform/Font.cpp: Changed to use const instead of #define.
              (WebCore::Font::width): Overloaded this so we don't have a default parameter, which
              eliminates the need to have TextStyle defined to compiler the Font.h header.
      
              * platform/TextStyle.h: Added.
      
              * platform/FontData.h: Added a forward declaration of ATSUStyle so this header
              can stand alone.
      
              * platform/FontFallbackList.h: Tweaks.
              * platform/FontFallbackList.cpp: Tweaks.
      
              * platform/FontFamily.h: Removed unneeded NSString declaration. Simplified class by
              using Shared and RefPtr, which resulted in removing many explicit functions.
              * platform/FontFamily.cpp: More of the same.
      
              * platform/GlyphBuffer.h: Removed unneeded MAX_GLYPH_EXPANSION and GLYPH_BUFFER_SIZE
              macros.
      
              * platform/GlyphMap.h: Removed unneeded include of GlyphBuffer.h, which was included
              only for the typedef of Glyph; there's no reason to not just repeat that typedef here
              since C++ allows multiple typedefs if they match. Renamed the cGlyphPageSize constant
              to GlyphPage::size.
              * platform/GlyphMap.cpp: Changed NO_BREAK_SPACE and ZERO_WIDTH_SPACE macros into
              constants. Updated for cGlyphPageSize change.
              * platform/mac/GlyphMapMac.cpp: Updated for cGlyphPageSize change.
      
              * platform/GlyphWidthMap.h: Removed unneeded include of GlyphBuffer.h, which was included
              only for the typedef of Glyph; there's no reason to not just repeat that typedef here
              since C++ allows multiple typedefs if they match. Renamed the cGlyphWidthPageSize constant
              to GlyphWidthPage::size.
              * platform/GlyphWidthMap.cpp: Updated for cGlyphWidthPageSize change.
      
              * platform/GraphicsContext.h: Removed unneeded include of Font.h. Changed drawText
              function to use overloading instead of default parameters to allow TextStyle to be optional.
              This cuts the dependency on TextStyle.
              * platform/GraphicsContext.cpp: (WebCore::GraphicsContext::drawText): Added overload.
      
              * platform/Image.h: Removed unneeded forward declaration of IntSize.
      
              * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters):
              Changed to not depend on Font::getNSFont.
              * platform/mac/ListBoxMac.mm: (-[WebCoreTableView fontChanged]): Ditto.
              * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
              Ditto.
              * rendering/RenderPopupMenuMac.mm:
              (WebCore::RenderPopupMenuMac::showPopup): Ditto.
              (WebCore::RenderPopupMenuMac::addGroupLabel): Ditto.
              (WebCore::RenderPopupMenuMac::addOption): Ditto.
      
              * platform/mac/FontDataMac.mm: Fixed includes. Converted a bunch of macros to be
              constants and inline functions instead.
      
              * platform/mac/FontMac.mm: Fixed includes.
              * platform/mac/PopUpButtonMac.mm: Ditto.
              * rendering/RenderMenuList.cpp: Ditto.
              * rendering/RenderTextControl.cpp: Ditto.
      
              * platform/mac/WebCoreSystemInterface.h: Fixes so this header stands alone and is
              compatible with all 4 of C, ObjC, C++, ObjC++.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be6eb6ba
  25. 03 Aug, 2006 1 commit
    • weinig's avatar
      JavaScriptCore: · f18aae37
      weinig authored
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10176
                Make WebCore compile with -Wundef
      
                * Adds -Wundef flag to Xcode project
                * Converts #ifs to #ifdef and #ifndefs where needed.
                * Added #define YYMAXDEPTH 10000 in kjs/grammar.y
                  to fix a warning from within Bison.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * bindings/jni/jni_jsobject.cpp:
              (JavaJSObject::getSlot):
              (JavaJSObject::setSlot):
              * bindings/npapi.h:
              * bindings/objc/objc_class.mm:
              (KJS::Bindings::ObjcClass::methodsNamed):
              (KJS::Bindings::ObjcClass::fieldNamed):
              * bindings/objc/objc_instance.mm:
              (ObjcInstance::invokeMethod):
              * bindings/objc/objc_runtime.mm:
              (ObjcMethod::getMethodSignature):
              (ObjcField::name):
              (ObjcField::type):
              * kjs/grammar.y:
              * kjs/identifier.h:
      
      JavaScriptGlue:
      
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10176
                Make WebCore compile with -Wundef
      
                * Adds -Wundef flag to Xcode project
      
              * JavaScriptGlue.xcodeproj/project.pbxproj:
      
      WebCore:
      
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10176
                Make WebCore compile with -Wundef
      
                * Adds -Wundef flag to Xcode project
                * Converts #ifs to #ifdef and #ifndefs where needed.
                * Replaces #ifdef WIN32 with #if PLATFORM(WIN_OS) or PLATFORM(WIN)
                  (and in one instance in config.h with #if !COMPILER(MSVC))
                * Added #define YYMAXDEPTH 10000 in XPathGrammar.y and CSSGrammar.y
                  to fix a warning from within Bison.
                * Cleaned up style a little in surrounding code.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
              * config.h:
              * css/CSSGrammar.y:
              * css/MediaFeatureNames.cpp:
              * css/MediaFeatureNames.h:
              * css/cssparser.cpp:
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::setActive):
              * dom/Element.cpp:
              (WebCore::Element::attach):
              * dom/Element.h:
              * dom/EventNames.cpp:
              * dom/EventNames.h:
              * dom/NamedAttrMap.h:
              * dom/Position.cpp:
              * dom/QualifiedName.cpp:
              * dom/QualifiedName.h:
              * dom/Range.h:
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::error):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::continueProcessing):
              (WebCore::HTMLTokenizer::write):
              (WebCore::HTMLTokenizer::timerFired):
              (WebCore::HTMLTokenizer::notifyFinished):
              * kcanvas/device/quartz/KCanvasFilterQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/scripts/make_names.pl:
              * loader/CachedResource.h:
              * loader/LoaderFunctions.h:
              * loader/loader.h:
              * page/Frame.cpp:
              * page/FrameTree.cpp:
              * page/FrameView.cpp:
              (WebCore::FrameView::clear):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::layoutTimerFired):
              (WebCore::FrameView::scheduleRelayout):
              (WebCore::FrameView::unscheduleRelayout):
              * platform/AtomicString.cpp:
              * platform/AtomicString.h:
              * platform/Cursor.h:
              * platform/DeprecatedArray.h:
              * platform/DeprecatedString.cpp:
              (WebCore::allocateHandle):
              (WebCore::initializeHandleNodeBlock):
              (WebCore::freeHandle):
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/GraphicsContext.h:
              * platform/Image.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              (WebCore::IntRect::inflateX):
              (WebCore::IntRect::inflateY):
              * platform/IntSize.h:
              * platform/PlatformKeyboardEvent.h:
              * platform/PlatformMouseEvent.h:
              * platform/PlatformString.h:
              * platform/ResourceLoader.h:
              * platform/ResourceLoaderInternal.h:
              (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
              * platform/ScrollView.h:
              * platform/StaticConstructors.h:
              * platform/StreamingTextDecoderICU.cpp:
              (WebCore::StreamingTextDecoderICU::convert):
              * platform/StringImpl.h:
              * platform/Widget.h:
              * platform/mac/BlockExceptions.mm:
              * platform/mac/ColorMac.mm:
              (+[WebCoreControlTintObserver WebCore]):
              * platform/mac/FloatPointMac.mm:
              * platform/mac/FloatRectMac.mm:
              * platform/mac/FloatSizeMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::drawFocusRing):
              * platform/mac/IntPointMac.mm:
              * platform/mac/IntRectMac.mm:
              * platform/mac/IntSizeMac.mm:
              * platform/mac/WebCoreSystemInterface.h:
              * rendering/RenderBlock.h:
              * rendering/RenderTableCell.h:
              * rendering/bidi.cpp:
              (WebCore::appendRun):
              (WebCore::RenderBlock::layoutInlineChildren):
              * xml/XSLTProcessor.cpp:
              (WebCore::parseErrorFunc):
              * xpath/impl/XPathGrammar.y:
      
      WebKit:
      
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10176
                Make WebCore compile with -Wundef
      
                * Adds -Wundef flag to Xcode project
                * Converts #ifs to #ifdef and #ifndefs where needed.
      
              * Carbon/CarbonUtils.m:
              * Carbon/CarbonWindowAdapter.m:
              * Carbon/HIViewAdapter.m:
              (+[NSView bindHIViewToNSView:nsView:]):
              * Carbon/HIWebView.m:
              (HIWebViewEventHandler):
              * Misc/WebFileDatabase.m:
              (UniqueFilePathForKey):
              * Misc/WebNSWindowExtras.m:
              (swizzleInstanceMethod):
              * Misc/WebTypesInternal.h:
              * Plugins/WebNetscapeDeprecatedFunctions.c:
              * Plugins/WebNetscapeDeprecatedFunctions.h:
              * Plugins/WebNetscapePluginPackage.h:
              * Plugins/WebNetscapePluginPackage.m:
              (-[WebNetscapePluginPackage unloadWithoutShutdown]):
              (-[WebNetscapePluginPackage load]):
              * WebKit.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f18aae37
  26. 10 Jul, 2006 1 commit
  27. 09 Jul, 2006 1 commit
    • 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
  28. 16 May, 2006 1 commit
    • hyatt's avatar
      Bug 8936, eliminate WebTextRendererFactory and convert it over to the · 3aa3c4ca
      hyatt authored
              new FontCache.
      
              Reviewed by andersca
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/WebCoreStringTruncator.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * platform/Font.h:
              (WebCore::Font::bold):
              * platform/FontCache.cpp: Added.
              (WebCore::FontPlatformDataCacheKey::m_italic):
              (WebCore::FontPlatformDataCacheKey::operator==):
              (WebCore::computeHash):
              (WebCore::FontPlatformDataCacheKeyHash::hash):
              (WebCore::FontPlatformDataCacheKeyHash::equal):
              (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
              (WebCore::FontCache::getCachedFontPlatformData):
              (WebCore::FontDataCacheKeyHash::hash):
              (WebCore::FontDataCacheKeyHash::equal):
              (WebCore::FontDataCacheKeyTraits::deletedValue):
              (WebCore::FontCache::getCachedFontData):
              (WebCore::FontCache::getFontData):
              (WebCore::FontCache::clearCommonCaches):
              * platform/FontCache.h:
              * platform/FontData.h:
              * platform/FontFamily.cpp:
              (WebCore::FontFamily::FontFamily):
              (WebCore::FontFamily::operator=):
              (WebCore::FontFamily::setFamily):
              * platform/FontFamily.h:
              (WebCore::FontFamily::familyIsEmpty):
              * platform/FontPlatformData.h:
              (WebCore::FontPlatformData::hash):
              (WebCore::FontPlatformData::operator==):
              * platform/mac/FontCacheMac.mm:
              (WebCore::getAppDefaultValue):
              (WebCore::getUserDefaultValue):
              (WebCore::getLCDScaleParameters):
              (WebCore::fontsChanged):
              (WebCore::FontCache::registerForFontChanges):
              (WebCore::FontCache::clearCaches):
              (WebCore::FontCache::getFontDataForCharacters):
              (WebCore::FontCache::getSimilarFontPlatformData):
              (WebCore::FontCache::getLastResortFallbackFont):
              (WebCore::FontCache::createFontPlatformData):
              * platform/mac/FontData.mm:
              (-[NSFont WebCore]):
              (WidthMap::FontData::xHeight):
              (WidthMap::FontData::smallCapsFontData):
              (WidthMap::computeWidthForSpace):
              (WidthMap::setUpFont):
              (WidthMap::fillStyleWithAttributes):
              (WidthMap::FontData::determinePitch):
              * platform/mac/FontFallbackListMac.mm:
              (WebCore::FontFallbackList::setPlatformFont):
              * platform/mac/FontFamilyMac.mm: Removed.
              * platform/mac/FontMac.mm:
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreFindFont):
              * platform/mac/WebFontCache.h: Added.
              * platform/mac/WebFontCache.mm: Added.
              (acceptableChoice):
              (betterChoice):
              (+[WebFontCache fontWithFamily:traits:size:]):
              * platform/mac/WebTextRendererFactory.h: Removed.
              * platform/mac/WebTextRendererFactory.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3aa3c4ca
  29. 15 May, 2006 2 commits
    • thatcher's avatar
      64-bit build fixes. · bab0cbc3
      thatcher authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bab0cbc3
    • hyatt's avatar
      Remove the .forPrinter boolean from FontPlatformData. After the initial · 4b57e91c
      hyatt authored
              acquisition of an NSFont, the font is then adjusted to printer or screen
              when put into a FontPlatformData.  Then it can simply be used in the hash
              lookup to get a FontData.
      
              Reviewed by mjs
      
              * platform/Font.cpp:
              (WebCore::WidthIterator::advance):
              * platform/FontData.h:
              * platform/FontDescription.h:
              (WebCore::FontDescription::bold):
              * platform/FontPlatformData.h:
              (WebCore::FontPlatformData::syntheticOblique):
              * platform/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/mac/FontData.mm:
              (WebCore::FontData::smallCapsFontData):
              (WebCore::getSmallCapsFontData):
              (WebCore::setUpFont):
              * platform/mac/FontMac.mm:
              (WebCore::ATSULayoutParameters::initialize):
              * platform/mac/WebTextRendererFactory.h:
              * platform/mac/WebTextRendererFactory.mm:
              (-[WebTextRendererFactory rendererWithFont:]):
              (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b57e91c
  30. 14 May, 2006 1 commit
    • hyatt's avatar
      Bug 8895. Rework font substitution and fallback. Lift the concept of · cc6e7696
      hyatt authored
              substitution and fallback out of FontData and up into the FontFallbackList.
              See the bug for details of issues fixed in the fallback code.
      
              Reviewed by darin
      
              * WebCore.xcodeproj/project.pbxproj:
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advance):
              (WebCore::Font::primaryFont):
              (WebCore::Font::fontDataAt):
              (WebCore::Font::fontDataForCharacters):
              (WebCore::Font::ascent):
              (WebCore::Font::descent):
              (WebCore::Font::lineSpacing):
              (WebCore::Font::xHeight):
              (WebCore::Font::isFixedPitch):
              * platform/Font.h:
              (WebCore::Font::getNSFont):
              * platform/FontCache.h: Added.
              * platform/FontData.h:
              (WebCore::FontData::pitch):
              (WebCore::FontData::getNSFont):
              (WebCore::):
              * platform/FontFallbackList.cpp: Added.
              (WebCore::m_pitch):
              (WebCore::FontFallbackList::~FontFallbackList):
              (WebCore::FontFallbackList::invalidate):
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
              * platform/FontFallbackList.h:
              (WebCore::FontFallbackList::isFixedPitch):
              (WebCore::FontFallbackList::primaryFont):
              * platform/FontFamily.h:
              * platform/mac/FontCacheMac.mm: Added.
              (WebCore::FontCache::getFontData):
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/mac/FontData.mm:
              (WebCore::FontData::containsCharacters):
              * platform/mac/FontMac.mm:
              (WebCore::ATSULayoutParameters::initialize):
              * platform/mac/WebTextRendererFactory.h:
              * platform/mac/WebTextRendererFactory.mm:
              (-[WebTextRendererFactory fallbackFontWithTraits:size:]):
              (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
              * platform/win/FontWin.cpp:
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::primaryFont):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc6e7696
  31. 13 May, 2006 1 commit
    • hyatt's avatar
      Bug 8880, remove the remaining drawing/hit testing code from · a624128a
      hyatt authored
              FontData.
      
              Reviewed by tim h
      
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advanceOneCharacter):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::selectionRectForSimpleText):
              (WebCore::Font::offsetForPosition):
              (WebCore::Font::offsetForPositionForSimpleText):
              * platform/Font.h:
              (WebCore::TextRun::makeComplete):
              * platform/FontData.h:
              * platform/GlyphBuffer.h:
              (WebCore::GlyphBuffer::clear):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForComplexText):
              (WebCore::Font::offsetForPositionForComplexText):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a624128a
  32. 12 May, 2006 2 commits
    • hyatt's avatar
      Bug 8877. Change form controls and the bridge entry points from the · 29e8eac4
      hyatt authored
              Safari UI to use Font instead of FontData.
      
              Reviewed by mjs
      
              * bridge/mac/WebCoreStringTruncator.mm:
              (stringWidth):
              (truncateString):
              (+[WebCoreStringTruncator widthOfString:font:]):
              (+[WebCoreStringTruncator clear]):
              * kwq/KWQComboBox.mm:
              (QComboBox::sizeHint):
              * kwq/KWQLineEdit.mm:
              (QLineEdit::sizeForCharacterWidth):
              * kwq/KWQListBox.mm:
              (itemTextRenderer):
              (groupLabelTextRenderer):
              (QListBox::sizeForNumberOfLines):
              (QListBox::clearCachedTextRenderers):
              (-[KWQTableView drawRow:clipRect:]):
              * platform/Font.cpp:
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              * platform/Font.h:
              (WebCore::TextStyle::disableRoundingHacks):
              (WebCore::TextStyle::setRTL):
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/FontPlatformData.h:
              (WebCore::FontPlatformData::syntheticOblique):
              * platform/Pen.h:
              * platform/mac/FontData.mm:
              (WebCore::FontData::smallCapsFontData):
              (WebCore::findSubstituteRenderer):
              * platform/mac/FontMac.mm:
              (WebCore::FontFallbackList::setPlatformFont):
              (WebCore::m_wordSpacing):
              (WebCore::Font::drawComplexText):
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreDrawTextAtPoint):
              (WebCoreTextFloatWidth):
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawText):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::positionForOffset):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29e8eac4
    • hyatt's avatar
      Bug 8864. Lift WebCoreTextStyle up into the API (as TextStyle). · 5678a616
      hyatt authored
              Reviewed by mjs
      
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advance):
              (WebCore::Font::width):
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::floatWidthForSimpleText):
              * platform/Font.h:
              (WebCore::TextStyle::m_attemptFontSubstitution):
              (WebCore::TextStyle::tabWidth):
              (WebCore::TextStyle::xPos):
              (WebCore::TextStyle::padding):
              (WebCore::TextStyle::rtl):
              (WebCore::TextStyle::ltr):
              (WebCore::TextStyle::directionalOverride):
              (WebCore::TextStyle::applyRunRounding):
              (WebCore::TextStyle::applyWordRounding):
              (WebCore::TextStyle::attemptFontSubstitution):
              (WebCore::Font::operator==):
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText):
              (WebCore::GraphicsContext::drawHighlightForText):
              * platform/GraphicsContext.h:
              * platform/mac/FontMac.mm:
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawComplexText):
              (WebCore::Font::floatWidthForComplexText):
              (WebCore::Font::offsetForPosition):
              * 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/RenderText.cpp:
              (WebCore::RenderText::widthFromCache):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::width):
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::calcMinMaxWidth):
              * rendering/render_line.cpp:
              (WebCore::EllipsisBox::paint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5678a616
  33. 11 May, 2006 3 commits
    • hyatt's avatar
      Remove the misspelling drawing code from Font and FontData. Implement it · a19cbc48
      hyatt authored
              natively in GraphicContext instead.
      
              Reviewed by maciej
      
              * platform/FontData.h:
              * platform/GraphicsContext.cpp:
              * platform/GraphicsContext.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawLineForMisspelling):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::drawLineForMisspelling):
              * platform/win/FontWin.cpp:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintSpellingMarker):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a19cbc48
    • hyatt's avatar
      Remove drawLineForText from the Font API. Implement it natively in · e9911eaa
      hyatt authored
              the two GraphicsContexts (CG and Cairo) instead.
      
              Reviewed by maciej
      
              * platform/Font.h:
              * platform/FontData.h:
              * platform/GraphicsContext.cpp:
              * platform/GraphicsContext.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawLineForText):
              * platform/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::drawLineForText):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawLineForText):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintDecorations):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9911eaa
    • hyatt's avatar
      Fix a regression from the TextRun landing. Delete the characters in · 10407bd5
      hyatt authored
              the adjustedRun, not the ones in the original run!
      
              Reviewed by beth
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      10407bd5