summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp')
-rw-r--r--WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp b/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp
index f3d8b86..deebd31 100644
--- a/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp
+++ b/WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp
@@ -98,9 +98,6 @@ void SimpleFontData::platformCharWidthInit()
void SimpleFontData::platformDestroy()
{
- // We don't hash this on Win32, so it's effectively owned by us.
- delete m_smallCapsFontData;
- m_smallCapsFontData = 0;
}
SimpleFontData* SimpleFontData::smallCapsFontData(const FontDescription& fontDescription) const
@@ -114,7 +111,7 @@ SimpleFontData* SimpleFontData::smallCapsFontData(const FontDescription& fontDes
winFont.lfHeight = -lroundf(smallCapsSize);
HFONT hfont = CreateFontIndirect(&winFont);
m_smallCapsFontData =
- new SimpleFontData(FontPlatformData(hfont, smallCapsSize));
+ new SimpleFontData(FontPlatformData(hfont, smallCapsSize), isCustomFont(), false);
}
return m_smallCapsFontData;
}