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

Unified Diff: Source/core/svg/SVGFontElement.cpp

Issue 18278003: Introduce isSVGFontElement() and isSVGImageElement(), and use them (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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/svg/SVGFontElement.h ('k') | Source/core/svg/SVGFontFaceElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontElement.cpp
diff --git a/Source/core/svg/SVGFontElement.cpp b/Source/core/svg/SVGFontElement.cpp
index 1ebcdbf888abc0722103f0a36b9d6567a0deb45c..ae907f7daaad5d7afcef99b5a04f409b7ba1011f 100644
--- a/Source/core/svg/SVGFontElement.cpp
+++ b/Source/core/svg/SVGFontElement.cpp
@@ -47,7 +47,7 @@ inline SVGFontElement::SVGFontElement(const QualifiedName& tagName, Document* do
, m_missingGlyph(0)
, m_isGlyphCacheValid(false)
{
- ASSERT(hasTagName(SVGNames::fontTag));
+ ASSERT(isSVGFontElement(this));
ScriptWrappable::init(this);
registerAnimatedPropertiesForSVGFontElement();
« no previous file with comments | « Source/core/svg/SVGFontElement.h ('k') | Source/core/svg/SVGFontFaceElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698