summaryrefslogtreecommitdiffstats
path: root/webkit/pending
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 18:48:41 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 18:48:41 +0000
commit10e048e2fdd9563e34fcfbe4e77bdd113a4308cc (patch)
treecf03167c7cbf79ca18db33e480294e4dd0c94ce2 /webkit/pending
parentd23b9a6c93357c0217d2f393e812232759a8dbc0 (diff)
downloadchromium_src-10e048e2fdd9563e34fcfbe4e77bdd113a4308cc.zip
chromium_src-10e048e2fdd9563e34fcfbe4e77bdd113a4308cc.tar.gz
chromium_src-10e048e2fdd9563e34fcfbe4e77bdd113a4308cc.tar.bz2
It's causing regressions.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/pending')
-rw-r--r--webkit/pending/SimpleFontData.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/webkit/pending/SimpleFontData.cpp b/webkit/pending/SimpleFontData.cpp
index bbdd46d..9f4037b 100644
--- a/webkit/pending/SimpleFontData.cpp
+++ b/webkit/pending/SimpleFontData.cpp
@@ -30,7 +30,6 @@
#include "config.h"
#include "SimpleFontData.h"
-#include "Font.h"
#include "FontMetrics.h"
#if ENABLE(SVG_FONTS)
@@ -150,17 +149,6 @@ float SimpleFontData::widthForGlyph(UChar32 c, Glyph glyph) const
}
#endif
- // Some characters should be zero width and we want to ignore whatever
- // crazy stuff the font may have (or not defined). If the font doesn't
- // define it, we don't want to measure the width of the "invalid character"
- // box, for example.
- //
- // TODO(brettw): we should have Font::treatAsZeroWidthSpace return true for
- // zero width spaces (U+200B) just like Font::treatAsSpace will return true
- // for spaces. Then the additional OR is not necessary.
- if (Font::treatAsZeroWidthSpace(c) || c == 0x200b)
- return 0.0f;
-
if (width != cGlyphWidthUnknown)
return width;