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

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: Also fix FontFace.cpp 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 fd342613ea19d225c64ec20ef1ab92bd34b1ffb6..6a3dfe14843c41b22a7343deb8d1a98587e2f8dd 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -142,9 +142,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);

Powered by Google App Engine
This is Rietveld 408576698