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

Unified Diff: third_party/WebKit/Source/core/css/FontFaceSet.cpp

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: one extra missing include Created 4 years 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: third_party/WebKit/Source/core/css/FontFaceSet.cpp
diff --git a/third_party/WebKit/Source/core/css/FontFaceSet.cpp b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
index 0be1e5fce9b81441a5415cbc8c0afca1ffc54465..ef0c67c02fee4a61a702eb2a39af2c34249192f4 100644
--- a/third_party/WebKit/Source/core/css/FontFaceSet.cpp
+++ b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
@@ -445,7 +445,8 @@ bool FontFaceSet::resolveFontStyle(const String& fontString, Font& font) {
// CanvasRenderingContext2D.
MutableStylePropertySet* parsedStyle =
MutableStylePropertySet::create(HTMLStandardMode);
- CSSParser::parseValue(parsedStyle, CSSPropertyFont, fontString, true, 0);
+ CSSParser::parseValue(parsedStyle, CSSPropertyFont, fontString, true,
+ static_cast<StyleSheetContents*>(nullptr));
rune 2016/12/19 20:34:17 Do you need the static_cast?
Bret 2016/12/20 01:26:58 No, reverted. Sorry, this was left over from me sp
if (parsedStyle->isEmpty())
return false;

Powered by Google App Engine
This is Rietveld 408576698