summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSFontFaceSource.cpp
diff options
context:
space:
mode:
authorRussell Brenner <russellbrenner@google.com>2011-03-14 13:57:47 -0700
committerRussell Brenner <russellbrenner@google.com>2011-03-14 15:45:07 -0700
commit366835cb6750a97a5e29e0abcc6e3e6705411a72 (patch)
treec0b691be2e3d57dd68ee3263ed2a92888da091af /WebCore/css/CSSFontFaceSource.cpp
parent615fcf00641400b4851396f3ac5525818c4aa33a (diff)
downloadexternal_webkit-366835cb6750a97a5e29e0abcc6e3e6705411a72.zip
external_webkit-366835cb6750a97a5e29e0abcc6e3e6705411a72.tar.gz
external_webkit-366835cb6750a97a5e29e0abcc6e3e6705411a72.tar.bz2
Custom font was appearing all white in Books
This is a strategic rollback of a previous change: https://android-git.corp.google.com/g/#change,99977 Although that change fixes a browser crash, it introduces a problematic UI situation in Books. The browser crash is rare, but keeps some web pages from being usable. Nonetheless, upon failure, the browser will shutdown and can be relaunched for other sites. Another potential point of failure for this crash has been identified, with a solution to follow in a separate CL. From discussion with Bart it was decided that the rare browser crash is less problematic than the usability problem incurred with a book containing blank pages, and so, regardless of whether or not the resulting browser crash is fixed, this change needs to be rolled back. With any luck, however, both issues will be fixed. (See also http://b/3469204.) Bug: 4064041 Change-Id: I3416f9e9ae728a99dd84d3df8b0f8d0c0876dbad
Diffstat (limited to 'WebCore/css/CSSFontFaceSource.cpp')
-rw-r--r--WebCore/css/CSSFontFaceSource.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/WebCore/css/CSSFontFaceSource.cpp b/WebCore/css/CSSFontFaceSource.cpp
index aa09b05..d5dc6ec 100644
--- a/WebCore/css/CSSFontFaceSource.cpp
+++ b/WebCore/css/CSSFontFaceSource.cpp
@@ -92,12 +92,7 @@ bool CSSFontFaceSource::isValid() const
void CSSFontFaceSource::fontLoaded(CachedFont*)
{
- // On Android, rendering and font loading occur on separate threads, so
- // pruning from here can leave dangling refs to deleted GlyphPageTreeNodes.
- // Pruning will still occur via ~CSSSegmentedFontFace, when it's safe.
-#if !PLATFORM(ANDROID)
- pruneTable();
-#endif
+ pruneTable();
if (m_face)
m_face->fontLoaded(this);
}