WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Jan 2008 06:13:21 +0000 (06:13 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Jan 2008 06:13:21 +0000 (06:13 +0000)
commit5e703a436403ca4cf1682f52cbdde8d8affe1c25
treeda796d3ff266365b0294f256ba85b25d63a28c27
parent6b9a43f9c2b61787f7724f31d7af586c580d0970
WebCore:

        Reviewed by Dave Hyatt.

        - fix for @font-face rules with unicode-range: always use a local font where not
          explicitly overlaid.

        Test: fast/css/font-face-implicit-local-font.html

        * css/CSSFontSelector.cpp:
        (WebCore::CSSFontSelector::addFontFaceRule): Changed to insert an implicit
        @font-face rule with the local font the matches the family and description before
        any explicit @font-face rules that overlay specific ranges of the same font.
        * css/CSSSegmentedFontFace.h:
        (WebCore::CSSSegmentedFontFace::numRanges): Addded.

LayoutTests:

        Reviewed by Dave Hyatt.

        - add test for @font-face rules with unicode-range: always use a local
          font where not explicitly overlaid.

        * fast/css/font-face-implicit-local-font.html: Added.
        * platform/mac-leopard/fast/css/font-face-implicit-local-font-expected.checksum: Added.
        * platform/mac-leopard/fast/css/font-face-implicit-local-font-expected.png: Added.
        * platform/mac/fast/css/font-face-implicit-local-font-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/font-face-implicit-local-font.html [new file with mode: 0644]
LayoutTests/platform/mac-leopard/fast/css/font-face-implicit-local-font-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac-leopard/fast/css/font-face-implicit-local-font-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/css/font-face-implicit-local-font-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/CSSFontSelector.cpp
WebCore/css/CSSSegmentedFontFace.h