Commit 1bf089b6 authored by keishi@chromium.org's avatar keishi@chromium.org

Gardening: Fix tests failing on Win7(dbg) caused by hitting an assert in...

Gardening: Fix tests failing on Win7(dbg) caused by hitting an assert in FontCache::addSideloadedFontForTesting

NOTRY=true
TBR=arv@chromium.org,tkent@chromium.org
BUG=None

Review URL: https://codereview.chromium.org/549013002

git-svn-id: svn://svn.chromium.org/blink/trunk@181532 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent beaee275
...@@ -48,6 +48,8 @@ HashMap<String, RefPtr<SkTypeface> >* FontCache::s_sideloadedFonts = 0; ...@@ -48,6 +48,8 @@ HashMap<String, RefPtr<SkTypeface> >* FontCache::s_sideloadedFonts = 0;
// static // static
void FontCache::addSideloadedFontForTesting(SkTypeface* typeface) void FontCache::addSideloadedFontForTesting(SkTypeface* typeface)
{ {
if (!typeface)
return;
if (!s_sideloadedFonts) if (!s_sideloadedFonts)
s_sideloadedFonts = new HashMap<String, RefPtr<SkTypeface> >; s_sideloadedFonts = new HashMap<String, RefPtr<SkTypeface> >;
SkString name; SkString name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment