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; |