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

Unified Diff: Source/core/css/FontFace.cpp

Issue 1225553002: CSSValue Immediates: Make CSSPrimitiveValue a container (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 5 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/css/Counter.h ('k') | Source/core/css/Pair.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/FontFace.cpp
diff --git a/Source/core/css/FontFace.cpp b/Source/core/css/FontFace.cpp
index c7e204e691b35edd2b93e51fa7960f141ece4737..7404133588ae3aeb73671b8dacb5db59e07750bd 100644
--- a/Source/core/css/FontFace.cpp
+++ b/Source/core/css/FontFace.cpp
@@ -278,7 +278,7 @@ bool FontFace::setFamilyValue(CSSValueList* familyList)
if (familyList->length() != 1)
return false;
- CSSPrimitiveValue& familyValue = toCSSPrimitiveValue(familyList->item(0));
+ CSSPrimitiveValue familyValue = toCSSPrimitiveValue(familyList->item(0));
AtomicString family;
if (familyValue.isCustomIdent()) {
family = AtomicString(familyValue.getStringValue());
@@ -405,7 +405,7 @@ FontTraits FontFace::traits() const
if (!m_style->isPrimitiveValue())
return 0;
- switch (toCSSPrimitiveValue(m_style)->getValueID()) {
+ switch (toCSSPrimitiveValue(*m_style).getValueID()) {
case CSSValueNormal:
style = FontStyleNormal;
break;
@@ -423,7 +423,7 @@ FontTraits FontFace::traits() const
if (!m_weight->isPrimitiveValue())
return 0;
- switch (toCSSPrimitiveValue(m_weight)->getValueID()) {
+ switch (toCSSPrimitiveValue(*m_weight).getValueID()) {
case CSSValueBold:
case CSSValue700:
weight = FontWeight700;
« no previous file with comments | « Source/core/css/Counter.h ('k') | Source/core/css/Pair.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698