2010-04-21 David Yonge-Mallo <davinci@chromium.org>
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Apr 2010 02:48:20 +0000 (02:48 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Apr 2010 02:48:20 +0000 (02:48 +0000)
commit2d9b5421df2f200f4eeab1204341185995cb230b
tree4d8285e496c2d92662ed0971ff970cd6054c0218
parentd0a72029ff08b59c74e062a11380477d4c0e6731
2010-04-21  David Yonge-Mallo  <davinci@chromium.org>

        Reviewed by Dan Bernstein.

        ZWNJ - Display non-printing, invisible character
        https://bugs.webkit.org/show_bug.cgi?id=16131

        Fix the (non)display of glyphs for ZWJ and ZWNJ in simple font code path.

        Tests: fast/text/format-control.html
               fast/text/zero-width-characters.html

        * platform/graphics/Font.h:
        (WebCore::Font::operator!=):
        (WebCore::Font::treatAsZeroWidthSpace): treat ZWNJ and ZWJ as ZWSP.
        * platform/graphics/GlyphPageTreeNode.cpp:
        (WebCore::GlyphPageTreeNode::initializePage): added ZWNJ and ZWJ.
        * platform/text/CharacterNames.h: added ZWNJ and ZWJ.

2010-04-21  David Yonge-Mallo  <davinci@chromium.org>

        Reviewed by Dan Bernstein.

        ZWNJ - Display non-printing, invisible character
        https://bugs.webkit.org/show_bug.cgi?id=16131

        Added tests for the handling of ZWJ and ZWNJ characters in simple font
        path.  These characters have zero width but may change the widths of text
        around them.  Furthermore, their glyphs should not be displayed in
        simple static text.

        * fast/text/format-control.html: Added.
        * fast/text/zero-width-characters.html: modified to test ZWSP, ZWJ, and ZWNJ.
        * platform/mac/fast/text/format-control-expected.checksum: Added.
        * platform/mac/fast/text/format-control-expected.png: Added.
        * platform/mac/fast/text/format-control-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/format-control.html [new file with mode: 0644]
LayoutTests/fast/text/zero-width-characters.html
LayoutTests/platform/mac/fast/text/format-control-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/format-control-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/format-control-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/graphics/Font.h
WebCore/platform/graphics/GlyphPageTreeNode.cpp
WebCore/platform/text/CharacterNames.h