1. 30 Nov, 2007 1 commit
  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. 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
  4. 14 May, 2007 1 commit
    • bdash's avatar
      2007-05-14 Mitz Pettel <mitz@webkit.org> · 08074659
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13711
                REGRESSION - Bookmark Bar text rendering changed
      
              No test possible since this patch affects only Safari chrome.
      
              * platform/Font.cpp:
              (WebCore::Font::Font): Initialize m_isPlatformFont according to whether
              the Font object is derived from a FontPlatformData or not.
              * platform/Font.h:
              (WebCore::Font::isPlatformFont): Added. Returns whether this Font was
              derived from a platform font.
              * platform/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters): Changed to not enable
              synthetic bold and italic in the fallback fonts if the original font
              was derived from a platform font.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08074659
  5. 06 May, 2007 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 18b1efea
      darin authored
              - fix <rdar://problem/4585593> REGRESSION: Some 2-byte characters in printed page
                header are drawn with too-large font and clipped
      
              Doesn't affect text within web pages, so no layout test.
      
              * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters):
              Base the substitute font on the FontPlatformData rather than the FontDescription.
              Before, it was a mix of both. This works properly for fonts where we have no
              FontDescription and is also more internally consistent.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18b1efea
  6. 21 Feb, 2007 1 commit
  7. 05 Feb, 2007 1 commit
    • bdash's avatar
      2007-02-06 Mark Rowe <mrowe@apple.com> · 339debb5
      bdash authored
              Roll out incomplete support for font-stretch (r19350) at Dave Hyatt's request.
              See http://bugs.webkit.org/show_bug.cgi?id=12530#c9 for more info.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyDeclarations):
              (WebCore::CSSStyleSelector::applyProperty):
              * platform/FontCache.cpp:
              (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
              (WebCore::FontPlatformDataCacheKey::operator==):
              (WebCore::computeHash):
              (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
              (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
              (WebCore::FontCache::getCachedFontPlatformData):
              * platform/FontDescription.h:
              (WebCore::FontDescription::FontDescription):
              (WebCore::FontDescription::weight):
              (WebCore::FontDescription::setWeight):
              (WebCore::FontDescription::operator==):
              * platform/mac/FontCacheMac.mm:
              (WebCore::FontCache::createFontPlatformData):
              * platform/mac/WebFontCache.mm:
              (acceptableChoice):
              (betterChoice):
              (+[WebFontCache fontWithFamily:traits:size:]):
      
      2007-02-06  Mark Rowe  <mrowe@apple.com>
      
              Roll out incomplete support for font-stretch (r19350) at Dave Hyatt's request.
              See http://bugs.webkit.org/show_bug.cgi?id=12530#c9 for more info.
      
              * WebInspector/webInspector/inspector.js:
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _addToStyle:fontA:fontB:]):
      
      2007-02-06  Mark Rowe  <mrowe@apple.com>
      
              Roll out incomplete support for font-stretch (r19350) at Dave Hyatt's request.
              See http://bugs.webkit.org/show_bug.cgi?id=12530#c9 for more info.
      
              * fast/css/computed-style-expected.txt:
              * fast/css/font-stretch-expected.checksum: Removed.
              * fast/css/font-stretch-expected.png: Removed.
              * fast/css/font-stretch-expected.txt: Removed.
              * fast/css/font-stretch.html: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19421 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      339debb5
  8. 02 Feb, 2007 1 commit
    • bdash's avatar
      2007-02-01 Nicholas Shanks <webkit@nickshanks.com> · 64ac78c2
      bdash authored
              Reviewed by Mark.
      
              Add support for CSS2 font-stretch property.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyDeclarations):
              (WebCore::CSSStyleSelector::applyProperty):
              * platform/FontCache.cpp:
              (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
              (WebCore::FontPlatformDataCacheKey::operator==):
              (WebCore::computeHash):
              (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
              (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
              (WebCore::FontCache::getCachedFontPlatformData):
              * platform/FontDescription.h:
              (WebCore::):
              (WebCore::FontDescription::FontDescription):
              (WebCore::FontDescription::stretch):
              (WebCore::FontDescription::narrowerStretch):
              (WebCore::FontDescription::widerStretch):
              (WebCore::FontDescription::setStretch):
              (WebCore::FontDescription::operator==):
              * platform/mac/FontCacheMac.mm:
              (WebCore::FontCache::createFontPlatformData):
              * platform/mac/WebFontCache.mm:
              (acceptableChoice):
              (betterChoice):
              (+[WebFontCache fontWithFamily:traits:size:]):
      
      2007-02-01  Nicholas Shanks  <webkit@nickshanks.com>
      
              Reviewed by Mark.
      
              CSS2 font-stretch property; uses American Typewriter and Helvetica Neue fonts,
              requiring Regular, Condensed, Bold and Bold Condensed faces.
      
              * fast/css/computed-style-expected.txt: Updated.
              * fast/css/font-stretch-expected.checksum: Added.
              * fast/css/font-stretch-expected.png: Added.
              * fast/css/font-stretch-expected.txt: Added.
              * fast/css/font-stretch.html: Added.
      
      2007-02-01  Nicholas Shanks  <webkit@nickshanks.com>
      
              Reviewed by Mark.
      
              Add support for CSS2 font-stretch property.
      
              * WebInspector/webInspector/inspector.js:
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _addToStyle:fontA:fontB:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64ac78c2
  9. 03 Nov, 2006 1 commit
    • adele's avatar
      Reviewed by Oliver. · 5b06f5fc
      adele authored
              Removed DeprecatedRenderSelect and ListBox classes.
      
              * WebCore.xcodeproj/project.pbxproj:
              * css/html4.css:
              * html/HTMLOptionElement.h:
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::recalcStyle):
              (WebCore::HTMLSelectElement::isKeyboardFocusable):
              (WebCore::HTMLSelectElement::isMouseFocusable):
              (WebCore::HTMLSelectElement::createRenderer):
              (WebCore::HTMLSelectElement::setRecalcListItems):
              (WebCore::HTMLSelectElement::notifyOptionSelected):
              (WebCore::HTMLSelectElement::defaultEventHandler):
              (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
              (WebCore::HTMLSelectElement::updateListBoxSelection):
              * html/HTMLSelectElement.h:
              * platform/ListBox.h: Removed.
              * platform/mac/FontCacheMac.mm:
              * platform/mac/ListBoxMac.mm: Removed.
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/DeprecatedRenderSelect.cpp: Removed.
              * rendering/DeprecatedRenderSelect.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17585 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b06f5fc
  10. 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
  11. 29 Jul, 2006 1 commit
    • weinig's avatar
      JavaScriptCore: · ab5f09e0
      weinig authored
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10080
                Adopt pedantic changes from the Unity project to improve 
                cross-compiler compatibility
      
                Changes include:
                * Removing trailing semicolon from namespace braces.
                * Removing trailing comma from last enum declaration.
                * Updating to match style guidelines.
                * Adding missing newline to the end of the file.
                * Turning on gcc warning for missing newline at the end of a source file
                  (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
                * Alphabetical sorting of Xcode source list files. 
                * Replace use of non-portable variable-size array with Vector.
                * Use C-style comments instead of C++ comments in files that might
                  be included by either C or C++ files.
      
              * API/JSCallbackConstructor.cpp:
              (KJS::JSCallbackConstructor::construct):
              * API/JSCallbackFunction.cpp:
              (KJS::JSCallbackFunction::callAsFunction):
              * API/JSCallbackObject.cpp:
              (KJS::JSCallbackObject::construct):
              (KJS::JSCallbackObject::callAsFunction):
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * JavaScriptCorePrefix.h:
              * bindings/jni/jni_class.cpp:
              (JavaClass::fieldNamed):
              * bindings/jni/jni_class.h:
              * bindings/jni/jni_instance.cpp:
              (JavaInstance::JavaInstance):
              (JavaInstance::valueOf):
              * bindings/jni/jni_objc.mm:
              (KJS::Bindings::dispatchJNICall):
              * bindings/jni/jni_runtime.cpp:
              (JavaParameter::JavaParameter):
              (JavaArray::JavaArray):
              * bindings/jni/jni_runtime.h:
              * bindings/jni/jni_utility.h:
              * bindings/objc/objc_instance.h:
              * bindings/runtime_array.h:
              * kjs/collector.h:
              * kjs/config.h:
              * kjs/ustring.cpp:
              * wtf/Platform.h:
      
      JavaScriptGlue:
      
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10080
                Adopt pedantic changes from the Unity project to improve 
                cross-compiler compatibility
      
                Changes include:
                * Turning on gcc warning for missing newline at the end of a source file
                  (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
      
              * JavaScriptGlue.xcodeproj/project.pbxproj:
      
      WebCore:
      
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10080
                Adopt pedantic changes from the Unity project to improve 
                cross-compiler compatibility
      
                Changes include:
                * Removing trailing semicolon from namespace braces.
                * Removing trailing comma from last enum declaration.
                * Updating to match style guidelines.
                * Adding missing newline to the end of the file.
                * Turning on gcc warning for missing newline at the end of a source file
                  (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
                * Alphabetical sorting of Xcode source list files.
                * Use abs() function from <math.h> instead of ABS() macro.
                * Use C-style comments instead of C++ comments in files that might
                  be included by either C or C++ files.
                * Use -numeric_limits<double>::infinity() instead of -HUGE_VAL.
      
              * WebCore+SVG/DOMList.h:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCorePrefix.h:
              * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_domnode.h:
              (KJS::DOMNode::):
              * bindings/objc/DOMCSS.h:
              (-[DOMCSSValue enum]):
              * bindings/objc/DOMCore.h:
              (-[DOMImplementation createDocument:::]):
              * bindings/objc/DOMEvents.h:
              (-[DOMOverflowEvent enum]):
              * bindings/objc/DOMRange.h:
              * bindings/objc/DOMTraversal.h:
              * bindings/objc/DOMXPath.h:
              (-[DOMXPathNSResolver lookupNamespaceURI:]):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreKeyboardAccess.h:
              * css/makeprop:
              * css/makevalues:
              * dom/ChildNodeList.h:
              * dom/DocPtr.h:
              * dom/Document.h:
              (WebCore::Document::):
              * dom/DocumentMarker.h:
              (WebCore::DocumentMarker::):
              (WebCore::DocumentMarker::operator==):
              (WebCore::DocumentMarker::operator!=):
              * dom/EventTargetNode.h:
              * dom/KeyboardEvent.h:
              (WebCore::KeyboardEvent::):
              * dom/NameNodeList.h:
              (WebCore::NameNodeList::rootNodeChildrenChanged):
              * dom/QualifiedName.cpp:
              * editing/TypingCommand.h:
              (WebCore::TypingCommand::):
              * editing/UnlinkCommand.h:
              (WebCore::UnlinkCommand::editingAction):
              * html/FormDataList.h:
              (WebCore::FormDataListItem::FormDataListItem):
              (WebCore::FormDataList::appendData):
              * html/HTMLBlockquoteElement.h:
              * html/HTMLDivElement.h:
              * html/HTMLFormElement.h:
              * html/HTMLHRElement.h:
              * html/HTMLHeadingElement.h:
              * html/HTMLMarqueeElement.h:
              * html/HTMLParagraphElement.h:
              * html/HTMLPlugInElement.h:
              * html/HTMLPreElement.h:
              * html/HTMLTokenizer.h:
              (WebCore::HTMLTokenizer::State::):
              * icon/IconDatabase.cpp:
              * icon/SQLStatement.cpp:
              * kcanvas/KCanvasFilters.h:
              (WebCore::):
              (WebCore::KCanvasPoint3F::KCanvasPoint3F):
              (WebCore::KCanvasFilter::KCanvasFilter):
              (WebCore::KCanvasFilter::~KCanvasFilter):
              (WebCore::KCanvasFilterEffect::~KCanvasFilterEffect):
              (WebCore::KCComponentTransferFunction::KCComponentTransferFunction):
              (WebCore::KCanvasFEConvolveMatrix::KCanvasFEConvolveMatrix):
              (WebCore::KCLightSource::KCLightSource):
              (WebCore::KCDistantLightSource::KCDistantLightSource):
              (WebCore::KCPointLightSource::KCPointLightSource):
              (WebCore::KCSpotLightSource::KCSpotLightSource):
              (WebCore::KCanvasFEDiffuseLighting::KCanvasFEDiffuseLighting):
              (WebCore::KCanvasFEDisplacementMap::KCanvasFEDisplacementMap):
              (WebCore::KCanvasFEImage::KCanvasFEImage):
              (WebCore::KCanvasFESpecularLighting::KCanvasFESpecularLighting):
              * kcanvas/RenderSVGImage.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
              * ksvg2/css/SVGRenderStyle.h:
              (WebCore::SVGRenderStyle::InheritedFlags::):
              (WebCore::SVGRenderStyle::NonInheritedFlags::):
              * ksvg2/css/SVGRenderStyleDefs.h:
              (WebCore::):
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/ksvg.h:
              (WebCore::):
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/scripts/make_names.pl:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimatedAngle.h:
              * ksvg2/svg/SVGAnimatedBoolean.h:
              * ksvg2/svg/SVGAnimatedColor.h:
              * ksvg2/svg/SVGAnimatedEnumeration.h:
              * ksvg2/svg/SVGAnimatedInteger.h:
              * ksvg2/svg/SVGAnimatedLength.h:
              * ksvg2/svg/SVGAnimatedLengthList.h:
              * ksvg2/svg/SVGAnimatedNumber.h:
              * ksvg2/svg/SVGAnimatedNumberList.h:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h:
              * ksvg2/svg/SVGAnimatedRect.h:
              * ksvg2/svg/SVGAnimatedString.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimatedTransformList.h:
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::calculateCurrentValueItem):
              (SVGAnimationElement::calculateRelativeTimePercentage):
              * ksvg2/svg/SVGAnimationElement.h:
              (WebCore::):
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDOMImplementation.h:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGElement.h:
              (WebCore::SVGElement::rendererIsNeeded):
              (WebCore::svg_dynamic_cast):
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGHelper.h:
              (WebCore::):
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMatrix.h:
              * ksvg2/svg/SVGNumber.h:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRect.h:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.h:
              (WebCore::SVGStyledElement::rendererIsNeeded):
              (WebCore::SVGStyledElement::canvasResource):
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.h:
              * ksvg2/svg/svgpathparser.h:
              * page/Frame.h:
              (WebCore::):
              * platform/AffineTransform.h:
              * platform/FontCache.cpp:
              (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
              * platform/FontData.cpp:
              (WebCore::FontData::FontData):
              * platform/FontData.h:
              * platform/TextBox.h:
              (WebCore::TextBox::):
              * platform/Timer.cpp:
              (WebCore::TimerBase::heapPop):
              * platform/mac/FontCacheMac.mm:
              * platform/mac/GlyphMapMac.cpp:
              * platform/mac/WebFontCache.mm:
              (betterChoice):
              * rendering/DeprecatedRenderSelect.cpp:
              (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
              * rendering/EllipsisBox.h:
              * rendering/RenderBR.h:
              (WebCore::RenderBR::renderName):
              (WebCore::RenderBR::width):
              * rendering/RenderBlock.h:
              (WebCore::):
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.h:
              (WebCore::RenderFlow::RenderFlow):
              * rendering/RenderFrame.cpp:
              * rendering/bidi.h:
              * rendering/break_lines.cpp:
      
      WebKit:
      
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10080
                Adopt pedantic changes from the Unity project to improve 
                cross-compiler compatibility
      
                Changes include:
                * Adding missing newline to the end of the file.
                * Turning on gcc warning for missing newline at the end of a source file
                  (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
      
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebResourcePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab5f09e0
  12. 09 Jul, 2006 2 commits
    • darin's avatar
      Reviewed by Tim Hatcher. · f4b05b29
      darin authored
              - put more into the WebCore namespace
              - removed unused code for plain text fields
      
              Put more classes, class templates, enums, functions, and constants into
              the WebCore namespace, including all the headers in the platform directory.
      
              Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
      
              Added some "WebCore::" qualifiers in a few places.
      
              Removed "uses WebCore::" in headers that we said we'd remove "when
              everything is in the WebCore namespace".
      
              * bindings/js/JSDOMParser.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bridge/History.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/FormDataMac.h:
              * bridge/mac/FormDataMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              * bridge/mac/WebCoreSettings.h:
              * css/CSSGrammar.y:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/MediaList.cpp:
              * css/cssstyleselector.h:
              * dom/Clipboard.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/XMLTokenizer.cpp:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/CompositeEditCommand.cpp:
              * editing/CompositeEditCommand.h:
              * editing/CreateLinkCommand.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/FormatBlockCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/IndentOutdentCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertListCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertTextCommand.cpp:
              * editing/InsertTextCommand.h:
              * editing/JSEditor.cpp:
              * editing/JSEditor.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.cpp:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.h:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/WrapContentsInDummySpanCommand.h:
              * editing/markup.cpp:
              * editing/markup.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLBodyElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDocument.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLLabelElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTablePartElement.cpp:
              * icon/IconDatabase.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGContainer.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/svgpathparser.cpp:
              * ksvg2/svg/svgpathparser.h:
              * loader/Cache.h:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.h:
              * page/FrameView.h:
              * page/Page.h:
              * page/Settings.h:
              * platform/AffineTransform.cpp:
              * platform/AffineTransform.h:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/CookieJar.h:
              * platform/DeprecatedCString.cpp:
              * platform/DeprecatedCString.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedPtrQueue.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FileButton.h:
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              * platform/IntSize.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/ListBox.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/Pen.h:
              * platform/PopUpButton.h:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SSLKeyGenerator.h:
              * platform/ScrollBar.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/Slider.h:
              * platform/StringImpl.h:
              * platform/TextBox.h:
              * platform/TextField.h:
              * platform/TextStream.cpp:
              * platform/TextStream.h:
              * platform/TransferJob.h:
              * platform/TransferJobClient.h:
              * platform/Widget.h:
              * platform/cg/AffineTransformCG.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/DeprecatedStringListMac.mm:
              * platform/mac/FontCacheMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/ListBoxMac.mm:
              * platform/mac/PopUpButtonMac.mm:
              * platform/mac/SSLKeyGeneratorMac.mm:
              * platform/mac/TextBoxMac.mm:
              * platform/mac/TextFieldMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.h:
              * rendering/bidi.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4b05b29
    • 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
  13. 22 May, 2006 2 commits
  14. 18 May, 2006 1 commit
  15. 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
  16. 15 May, 2006 1 commit
    • 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
  17. 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