diff options
author | Russell Brenner <russellbrenner@google.com> | 2011-03-03 15:57:01 -0800 |
---|---|---|
committer | Russell Brenner <russellbrenner@google.com> | 2011-03-04 20:23:19 -0800 |
commit | 26293c75113cb08e4392ef98da92d6fb1c65b40c (patch) | |
tree | 82d9e96515d0492852c07fc42f922923a52382af /WebCore/css/CSSSelectorList.h | |
parent | 0c89354f714f107e2d15577c9e415adbe5f03b29 (diff) | |
download | external_webkit-26293c75113cb08e4392ef98da92d6fb1c65b40c.zip external_webkit-26293c75113cb08e4392ef98da92d6fb1c65b40c.tar.gz external_webkit-26293c75113cb08e4392ef98da92d6fb1c65b40c.tar.bz2 |
Fixed 3469204: Crash using downloaded fonts
This change is still pending upstream, but is being applied here now to
make it into M1 before lockdown. Track the WebKit change at:
https://bugs.webkit.org/show_bug.cgi?id=54758
When font downloading completes, CSSFontFaceSource::fontLoaded() and
CSSSegmentedFontFace::fontLoaded() called pruneTable() to reclaim
GlyphPageTreeNode memory. On Android, downloading and rendering are on
different threads and these GlyphPageTreeNodes may still be in use on
the UI thread.
This change defers freeing those GlyphPageTreeNodes until
CSSFontFaceSource and CSSSegmentedFontFace are destroyed, which occurs
on the UI thread in response to Document::scheduleForcedStyleRecalc(),
which was called by CSSFontSelector::fontLoaded().
Change-Id: Ica74e5be92c00b8c761f5d29a2310c46e62fd9eb
Diffstat (limited to 'WebCore/css/CSSSelectorList.h')
0 files changed, 0 insertions, 0 deletions