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

Unified Diff: third_party/WebKit/WebCore/css/CSSFontSelector.cpp

Issue 113469: Enable SVG fonts regardless of whether remoteFontEnabled is on or not. ... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: '' Created 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/css/CSSFontSelector.cpp
===================================================================
--- third_party/WebKit/WebCore/css/CSSFontSelector.cpp (revision 16095)
+++ third_party/WebKit/WebCore/css/CSSFontSelector.cpp (working copy)
@@ -248,7 +248,11 @@
#endif
if (!item->isLocal()) {
+#if ENABLE(SVG_FONTS)
+ if (item->isSupportedFormat() && (foundSVGFont || (m_document && m_document->settings()->remoteFontEnabled()))) {
+#else
if (item->isSupportedFormat() && m_document && m_document->settings()->remoteFontEnabled()) {
+#endif
CachedFont* cachedFont = m_document->docLoader()->requestFont(item->resource());
if (cachedFont) {
#if ENABLE(SVG_FONTS)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698