Remove check for empty devPath
authoragl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Dec 2009 22:24:40 +0000 (22:24 +0000)
committeragl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Dec 2009 22:24:40 +0000 (22:24 +0000)
Removes check for empty devPath since it was causing an assertion failure on
Mac OS X when drawing small fonts within the browser action badges.

BUG=none
TEST=none

Patch by andybons1.

http://codereview.appspot.com/163056

git-svn-id: http://skia.googlecode.com/svn/trunk@450 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkScalerContext.cpp

index 30acff7..413f06c 100644 (file)
@@ -319,7 +319,7 @@ void SkScalerContext::getMetrics(SkGlyph* glyph) {
             SkIRect ir;
             devPath.getBounds().roundOut(&ir);
             
-            if (ir.isEmpty() || !ir.is16Bit()) {
+            if (!ir.is16Bit()) {
                 goto SK_ERROR;
             }
             glyph->fLeft    = ir.fLeft;