Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 97402) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -574,7 +574,7 @@ |
(*m_userSheets)[i]->clearOwnerNode(); |
} |
- deleteRetiredCustomFonts(); |
+ deleteCustomFonts(); |
m_weakReference->clear(); |
@@ -1564,15 +1564,6 @@ |
element->recalcStyle(change); |
} |
- // FIXME: Disabling the deletion of retired custom font data until |
- // we fix all the stale style bugs (68804, 68624, etc). These bugs |
- // indicate problems where some styles were not updated in recalcStyle, |
- // thereby retaining stale copy of font data. To prevent that, we |
- // disable this code for now and only delete retired custom font data |
- // in Document destructor. |
- // Now that all RenderStyles that pointed to retired fonts have been updated, the fonts can safely be deleted. |
- // deleteRetiredCustomFonts(); |
- |
#if USE(ACCELERATED_COMPOSITING) |
if (view()) { |
bool layoutPending = view()->layoutPending() || renderer()->needsLayout(); |
@@ -1709,18 +1700,18 @@ |
return style.release(); |
} |
-void Document::retireCustomFont(FontData* fontData) |
+void Document::registerCustomFont(FontData* fontData) |
{ |
- m_retiredCustomFonts.append(adoptPtr(fontData)); |
+ m_customFonts.append(adoptPtr(fontData)); |
} |
-void Document::deleteRetiredCustomFonts() |
+void Document::deleteCustomFonts() |
{ |
- size_t size = m_retiredCustomFonts.size(); |
+ size_t size = m_customFonts.size(); |
for (size_t i = 0; i < size; ++i) |
- GlyphPageTreeNode::pruneTreeCustomFontData(m_retiredCustomFonts[i].get()); |
+ GlyphPageTreeNode::pruneTreeCustomFontData(m_customFonts[i].get()); |
- m_retiredCustomFonts.clear(); |
+ m_customFonts.clear(); |
} |
bool Document::isPageBoxVisible(int pageIndex) |