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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 1778743003: Make <custom-ident> not insert quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win_chromium_rel_ng Created 4 years, 9 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
Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index 4e1efafc567c08355306dbf1f255b5a7a7bf2005..934aad812a7358ea383885f2e102f4275a2ec3f4 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -143,9 +143,9 @@ static FontDescription::GenericFamilyType convertGenericFamily(CSSValueID valueI
static bool convertFontFamilyName(StyleResolverState& state, CSSValue& value,
FontDescription::GenericFamilyType& genericFamily, AtomicString& familyName)
{
- if (value.isCustomIdentValue()) {
+ if (value.isFontFamilyValue()) {
genericFamily = FontDescription::NoFamily;
- familyName = AtomicString(toCSSCustomIdentValue(value).value());
+ familyName = AtomicString(toCSSFontFamilyValue(value).value());
} else if (state.document().settings()) {
genericFamily = convertGenericFamily(toCSSPrimitiveValue(value).getValueID());
familyName = state.fontBuilder().genericFontFamilyName(genericFamily);
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.cpp ('k') | third_party/WebKit/Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698