2010-11-22 James Robinson <jamesr@chromium.org>
authorjamesr@google.com <jamesr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 23:04:10 +0000 (23:04 +0000)
committerjamesr@google.com <jamesr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 23:04:10 +0000 (23:04 +0000)
commit748683330d82973b674acdf3f58269dac640fdc5
treeec13eeeae07a67b547a9128c013218417505710f
parent62267ed9f0d80a9a163a6401c410da2d6202b413
2010-11-22  James Robinson  <jamesr@chromium.org>

        Reviewed by Dimitri Glazkov.

        [chromium] font-size:0 text runs should have zero width
        https://bugs.webkit.org/show_bug.cgi?id=49871

        Expands test to check width in addition to height.

        * fast/text/font-size-zero-expected.txt:
        * fast/text/font-size-zero.html:
        * fast/text/script-tests/font-size-zero.js:
2010-11-22  James Robinson  <jamesr@chromium.org>

        Reviewed by Dimitri Glazkov.

        [chromium] font-size:0 text runs should have zero width
        https://bugs.webkit.org/show_bug.cgi?id=49871

        Returns 0 from platformWidthForGlyph if the specified font size is 0.

        Test: fast/text/font-size-zero.html

        * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
        (WebCore::SimpleFontData::platformWidthForGlyph):
        * platform/graphics/chromium/SimpleFontDataLinux.cpp:
        (WebCore::SimpleFontData::platformWidthForGlyph):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/font-size-zero-expected.txt
LayoutTests/fast/text/font-size-zero.html
LayoutTests/fast/text/script-tests/font-size-zero.js
WebCore/ChangeLog
WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp
WebCore/platform/graphics/chromium/SimpleFontDataLinux.cpp