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

Unified Diff: Source/core/html/canvas/CanvasFontCache.cpp

Issue 1320013005: Make CSSParserMode parameter not optional for MutableStylePropertySet::create() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 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/html/HTMLTableElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasFontCache.cpp
diff --git a/Source/core/html/canvas/CanvasFontCache.cpp b/Source/core/html/canvas/CanvasFontCache.cpp
index 2673c3339f9ce649fe31b68a8fd363453c53ab9b..a75ec56329a61c7a1d8b3418e75a0cd7061ff63a 100644
--- a/Source/core/html/canvas/CanvasFontCache.cpp
+++ b/Source/core/html/canvas/CanvasFontCache.cpp
@@ -91,7 +91,7 @@ MutableStylePropertySet* CanvasFontCache::parseFont(const String& fontString)
m_fontLRUList.remove(fontString);
m_fontLRUList.add(fontString);
} else {
- parsedStyle = MutableStylePropertySet::create();
+ parsedStyle = MutableStylePropertySet::create(HTMLQuirksMode);
CSSParser::parseValue(parsedStyle.get(), CSSPropertyFont, fontString, true, HTMLStandardMode, 0);
if (parsedStyle->isEmpty())
return nullptr;
« no previous file with comments | « Source/core/html/HTMLTableElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698