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

Unified Diff: Source/core/svg/SVGDocumentExtensions.cpp

Issue 656913006: Remove SVG fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests for landing Created 6 years, 2 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/svg/SVGDocumentExtensions.cpp
diff --git a/Source/core/svg/SVGDocumentExtensions.cpp b/Source/core/svg/SVGDocumentExtensions.cpp
index b563aee408629ddaba803b132b1858d2bfb369b0..ee979790753b103395ebf017294fc7a8fb139415 100644
--- a/Source/core/svg/SVGDocumentExtensions.cpp
+++ b/Source/core/svg/SVGDocumentExtensions.cpp
@@ -28,7 +28,6 @@
#include "core/rendering/RenderView.h"
#include "core/rendering/svg/SVGResourcesCache.h"
#include "core/svg/SVGElementRareData.h"
-#include "core/svg/SVGFontFaceElement.h"
#include "core/svg/SVGSVGElement.h"
#include "core/svg/SVGViewSpec.h"
#include "core/svg/SVGZoomAndPan.h"
@@ -338,30 +337,6 @@ void SVGDocumentExtensions::invalidateSVGRootsWithRelativeLengthDescendents(Subt
(*it)->invalidateRelativeLengthClients(scope);
}
-#if ENABLE(SVG_FONTS)
-void SVGDocumentExtensions::registerSVGFontFaceElement(SVGFontFaceElement* element)
-{
- m_svgFontFaceElements.add(element);
-}
-
-void SVGDocumentExtensions::unregisterSVGFontFaceElement(SVGFontFaceElement* element)
-{
- ASSERT(m_svgFontFaceElements.contains(element));
- m_svgFontFaceElements.remove(element);
-}
-
-void SVGDocumentExtensions::registerPendingSVGFontFaceElementsForRemoval(PassRefPtrWillBeRawPtr<SVGFontFaceElement> font)
-{
- m_pendingSVGFontFaceElementsForRemoval.add(font);
-}
-
-void SVGDocumentExtensions::removePendingSVGFontFaceElementsForRemoval()
-{
- m_pendingSVGFontFaceElementsForRemoval.clear();
-}
-
-#endif
-
bool SVGDocumentExtensions::zoomAndPanEnabled() const
{
if (SVGSVGElement* svg = rootElement(*m_document)) {
@@ -405,10 +380,6 @@ void SVGDocumentExtensions::trace(Visitor* visitor)
#if ENABLE(OILPAN)
visitor->trace(m_document);
visitor->trace(m_timeContainers);
-#if ENABLE(SVG_FONTS)
- visitor->trace(m_svgFontFaceElements);
- visitor->trace(m_pendingSVGFontFaceElementsForRemoval);
-#endif
visitor->trace(m_relativeLengthSVGRoots);
visitor->trace(m_pendingResources);
visitor->trace(m_pendingResourcesForRemoval);

Powered by Google App Engine
This is Rietveld 408576698