Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: Source/core/dom/Document.cpp

Issue 198783006: Hold SVGFontFaceElement in SVGDocumentExtensions until StyleRecalc is finished (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed indent Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 456a185280722641c9fec85a2160c1cdc5522d64..b1483af9e92f0bc41cbb63e2c5ba5e23bfbca97d 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1824,6 +1824,10 @@ void Document::updateStyle(StyleRecalcChange change)
if (m_focusedElement && !m_focusedElement->isFocusable())
clearFocusedElementSoon();
+#if ENABLE(SVG_FONTS)
+ if (svgExtensions())
+ accessSVGExtensions().removePendingSVGFontFaceElementsForRemoval();
+#endif
InspectorInstrumentation::didRecalculateStyle(cookie);
}
« no previous file with comments | « LayoutTests/fast/dom/remove-svg-font-face-element-crash-expected.txt ('k') | Source/core/svg/SVGDocumentExtensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698