| Index: Source/core/svg/SVGFontFaceElement.cpp
|
| diff --git a/Source/core/svg/SVGFontFaceElement.cpp b/Source/core/svg/SVGFontFaceElement.cpp
|
| index 00a07308cb7579a0356f3d2c2e6917340f3d72c3..ca09588fbaa13e90640fe4ef7823568809033ada 100644
|
| --- a/Source/core/svg/SVGFontFaceElement.cpp
|
| +++ b/Source/core/svg/SVGFontFaceElement.cpp
|
| @@ -265,7 +265,7 @@ String SVGFontFaceElement::fontFamily() const
|
| SVGFontElement* SVGFontFaceElement::associatedFontElement() const
|
| {
|
| ASSERT(parentNode() == m_fontElement);
|
| - ASSERT(!parentNode() || parentNode()->hasTagName(SVGNames::fontTag));
|
| + ASSERT(!parentNode() || isSVGFontElement(parentNode()));
|
| return m_fontElement;
|
| }
|
|
|
| @@ -284,7 +284,7 @@ void SVGFontFaceElement::rebuildFontFace()
|
| srcElement = static_cast<SVGFontFaceSrcElement*>(child);
|
| }
|
|
|
| - bool describesParentFont = parentNode()->hasTagName(SVGNames::fontTag);
|
| + bool describesParentFont = isSVGFontElement(parentNode());
|
| RefPtr<CSSValueList> list;
|
|
|
| if (describesParentFont) {
|
|
|