Title: [146623] branches/chromium/1410
- Revision
- 146623
- Author
- [email protected]
- Date
- 2013-03-22 09:41:54 -0700 (Fri, 22 Mar 2013)
Log Message
Merge 146129 "Variant of non-primary fell-back SVGFont causes cr..."
> Variant of non-primary fell-back SVGFont causes crash.
> https://bugs.webkit.org/show_bug.cgi?id=112367
>
> Reviewed by Stephen Chenney.
>
> Source/WebCore:
>
> Don't go to PlatformFontData path for SimpleFontData::createScaledFontData()
> for SVG fonts.
>
> Test: svg/css/font-face-variant-crash.html
>
> * platform/graphics/SimpleFontData.cpp:
> (WebCore::SimpleFontData::~SimpleFontData):
> (WebCore::SimpleFontData::createScaledFontData): Don't go to PlatformFontData path for SVG fonts.
> (WebCore):
> * platform/graphics/SimpleFontData.h:
> (SimpleFontData): Added createScaledFontData and renamed the original createScaledFontData to platformCreateScaledFontData.
> BTW, Removed unreferenced commonInit.
> * platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Renamed from createScaledFontData.
> * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
> * platform/graphics/freetype/SimpleFontDataFreeType.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
> * platform/graphics/mac/SimpleFontDataMac.mm:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
> * platform/graphics/qt/SimpleFontDataQt.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
> * platform/graphics/skia/SimpleFontDataSkia.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
> * platform/graphics/win/SimpleFontDataWin.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
> * platform/graphics/wince/SimpleFontDataWinCE.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
> * platform/graphics/wx/SimpleFontDataWx.cpp:
> (WebCore::SimpleFontData::platformCreateScaledFontData): Ditto.
>
> LayoutTests:
>
> * resources/SpaceOnly.otf: Added. A font containing only the space glyph for testing font fallback.
> * svg/css/font-face-variant-crash-expected.txt: Added.
> * svg/css/font-face-variant-crash.html: Added.
>
[email protected]
Modified Paths
Added Paths
Diff
Copied: branches/chromium/1410/LayoutTests/resources/SpaceOnly.otf (from rev 146129, trunk/LayoutTests/resources/SpaceOnly.otf) (0 => 146623)
--- branches/chromium/1410/LayoutTests/resources/SpaceOnly.otf (rev 0)
+++ branches/chromium/1410/LayoutTests/resources/SpaceOnly.otf 2013-03-22 16:41:54 UTC (rev 146623)
@@ -0,0 +1,5 @@
+OTTO \x80 @CFF \xBCP\x8D \x88 \xE9DSIG t FFTMdYDN | OS/2U\xFF_\xDA 0 `PfEd\xD1\xCC{\xB3 \x98 ,cmap
+\xC6 $ Bhead\xF9\xEE} \xCC 6hhea|# $hmtx\xD0 \xC4 maxp P ( name\xB0\xCB
+ \x90 \x91post\xFF\x86 3 h \xB9\x9DI_<\xF5 \xE8 \xCDg\xECL \xCDg\xECL \xFF8 Z\xE8 P \xE8\xF4 \x8A\xBC \x8C\x8A\xBC \xE0 1 PfEd \xC0 \xFF8 Z \xAE D \x8A \xE3 \xFB %N \x88 \xB4 \xD9 \x88 \xCF \xED J t \x92 \xC5 C r e a t e d b y X i a n z h u W a n g w i t h F o n t F o r g e 2 . 0 ( h t t p : / / f o n t f o r g e . s f . n e t ) Created by Xianzhu Wang with FontForge 2.0 (http://fontforge.sf.net) U n t i t l e d 1 Untitled1 M e d i u m Medium F o n t F o r g e 2 . 0 : U n t i t l e d 1 : 1 4 - 3 - 2 0 1 3 FontForge 2.0 : Untitled1 : 14-3-2013 U n t i t l e d 1 Untitled1 V e r s i o n 0 0 1 . 0 0 0 Version 001.000 U n t i t l e d 1 Untitled1 <