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

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

Issue 99019: Disable web-fonts, WebKit side.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 8 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 | third_party/WebKit/WebCore/page/Settings.h » ('j') | 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 14517)
+++ third_party/WebKit/WebCore/css/CSSFontSelector.cpp (working copy)
@@ -248,7 +248,7 @@
#endif
if (!item->isLocal()) {
- if (item->isSupportedFormat() && m_document) {
+ if (item->isSupportedFormat() && m_document && m_document->settings()->remoteFontEnabled()) {
dglazkov 2009/05/15 18:05:57 this check should be: if (item->isSupportedFormat
CachedFont* cachedFont = m_document->docLoader()->requestFont(item->resource());
if (cachedFont) {
#if ENABLE(SVG_FONTS)
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/page/Settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698