2007-02-01 Nicholas Shanks <webkit@nickshanks.com>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Feb 2007 07:43:25 +0000 (07:43 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Feb 2007 07:43:25 +0000 (07:43 +0000)
commit6fa0ad31394941ea65a1c6bbe63493319b18d82e
treee4ae25de8640fa37ca9e838b30d0b13a59856bb6
parent7ed08a4ffabfc0240f3c2c6866570efe99d00396
2007-02-01  Nicholas Shanks  <webkit@nickshanks.com>

        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: https://svn.webkit.org/repository/webkit/trunk@19350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/css/computed-style-expected.txt
LayoutTests/fast/css/font-stretch-expected.checksum [new file with mode: 0644]
LayoutTests/fast/css/font-stretch-expected.png [new file with mode: 0644]
LayoutTests/fast/css/font-stretch-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/font-stretch.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/CSSComputedStyleDeclaration.cpp
WebCore/css/cssparser.cpp
WebCore/css/cssstyleselector.cpp
WebCore/platform/FontCache.cpp
WebCore/platform/FontDescription.h
WebCore/platform/mac/FontCacheMac.mm
WebCore/platform/mac/WebFontCache.mm
WebKit/ChangeLog
WebKit/WebInspector/webInspector/inspector.js
WebKit/WebView/WebHTMLView.mm