diff options
author | Russell Brenner <russellbrenner@google.com> | 2011-03-03 18:29:26 -0800 |
---|---|---|
committer | Russell Brenner <russellbrenner@google.com> | 2011-03-16 15:36:43 -0700 |
commit | cbcc214ef5f642d9b14ee5a542cc573441e6fb43 (patch) | |
tree | c431491220edac23d44239525d361c3a885c71cf /WebCore/platform/graphics/android/GraphicsLayerAndroid.h | |
parent | 49fff159362adc0289fe593ac113a8d0a0671edf (diff) | |
download | external_webkit-cbcc214ef5f642d9b14ee5a542cc573441e6fb43.zip external_webkit-cbcc214ef5f642d9b14ee5a542cc573441e6fb43.tar.gz external_webkit-cbcc214ef5f642d9b14ee5a542cc573441e6fb43.tar.bz2 |
Fix crash in WebCore::GlyphPageTreeNode::getChild
Using existing Skia APIs, FontCache::createFontPlatformData can detect
when the retrieved font is the Skia default and will reject that choice,
allowing WebCore to try the next font on the CSS fallback list. If the
requested family is a generic family, e.g. "serif" or "monotype", the
Skia default will be accepted.
A prior attempt at this fix was not properly handling bold and italic
stylings, which could eventually lead to dangling references to freed
font data used for layout while custom fonts were loading, causing
segfaults in getChild and elsewhere during page rendering.
Bug: 3469204
Bug: 2720133
Change-Id: I3a9e746e18fd27848d0c4b9e1232392df33254a6
Diffstat (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.h')
0 files changed, 0 insertions, 0 deletions