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

Unified Diff: Source/core/fetch/FontResource.cpp

Issue 268803005: Replace SVGDocument by XMLDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add rootElement() variant Created 6 years, 7 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
« no previous file with comments | « Source/core/fetch/FontResource.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/FontResource.cpp
diff --git a/Source/core/fetch/FontResource.cpp b/Source/core/fetch/FontResource.cpp
index 05db84052fe1b02dc0f573ac6592967a918e6796..f764aa7723aad28514b7f0c7d3fd9353c848f8a0 100644
--- a/Source/core/fetch/FontResource.cpp
+++ b/Source/core/fetch/FontResource.cpp
@@ -37,8 +37,8 @@
#if ENABLE(SVG_FONTS)
#include "SVGNames.h"
+#include "core/dom/XMLDocument.h"
#include "core/html/HTMLCollection.h"
-#include "core/svg/SVGDocument.h"
#include "core/svg/SVGFontElement.h"
#endif
@@ -113,7 +113,7 @@ bool FontResource::ensureSVGFontData()
{
if (!m_externalSVGDocument && !errorOccurred() && !isLoading()) {
if (m_data) {
- m_externalSVGDocument = SVGDocument::create();
+ m_externalSVGDocument = XMLDocument::createSVG();
OwnPtr<TextResourceDecoder> decoder = TextResourceDecoder::create("application/xml");
String svgSource = decoder->decode(m_data->data(), m_data->size());
« no previous file with comments | « Source/core/fetch/FontResource.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698