diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGAltGlyphDefElement.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/svg/SVGAltGlyphDefElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGAltGlyphDefElement.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebCore/svg/SVGAltGlyphDefElement.cpp b/Source/WebCore/svg/SVGAltGlyphDefElement.cpp index 099c40f67..91f8879f3 100644 --- a/Source/WebCore/svg/SVGAltGlyphDefElement.cpp +++ b/Source/WebCore/svg/SVGAltGlyphDefElement.cpp @@ -19,7 +19,7 @@ #include "config.h" -#if ENABLE(SVG) && ENABLE(SVG_FONTS) +#if ENABLE(SVG_FONTS) #include "SVGAltGlyphDefElement.h" #include "ElementIterator.h" @@ -35,9 +35,9 @@ inline SVGAltGlyphDefElement::SVGAltGlyphDefElement(const QualifiedName& tagName ASSERT(hasTagName(SVGNames::altGlyphDefTag)); } -PassRefPtr<SVGAltGlyphDefElement> SVGAltGlyphDefElement::create(const QualifiedName& tagName, Document& document) +Ref<SVGAltGlyphDefElement> SVGAltGlyphDefElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(new SVGAltGlyphDefElement(tagName, document)); + return adoptRef(*new SVGAltGlyphDefElement(tagName, document)); } bool SVGAltGlyphDefElement::hasValidGlyphElements(Vector<String>& glyphNames) const @@ -90,11 +90,11 @@ bool SVGAltGlyphDefElement::hasValidGlyphElements(Vector<String>& glyphNames) co bool foundFirstAltGlyphItem = false; for (auto& child : childrenOfType<SVGElement>(*this)) { - if (!foundFirstAltGlyphItem && isSVGGlyphRefElement(child)) { + if (!foundFirstAltGlyphItem && is<SVGGlyphRefElement>(child)) { fountFirstGlyphRef = true; String referredGlyphName; - if (toSVGGlyphRefElement(child).hasValidGlyphElement(referredGlyphName)) + if (downcast<SVGGlyphRefElement>(child).hasValidGlyphElement(referredGlyphName)) glyphNames.append(referredGlyphName); else { // As the spec says "If any of the referenced glyphs are unavailable, @@ -104,12 +104,12 @@ bool SVGAltGlyphDefElement::hasValidGlyphElements(Vector<String>& glyphNames) co glyphNames.clear(); return false; } - } else if (!fountFirstGlyphRef && isSVGAltGlyphItemElement(child)) { + } else if (!fountFirstGlyphRef && is<SVGAltGlyphItemElement>(child)) { foundFirstAltGlyphItem = true; // As the spec says "The first 'altGlyphItem' in which all referenced glyphs // are available is chosen." - if (toSVGAltGlyphItemElement(child).hasValidGlyphElements(glyphNames) && !glyphNames.isEmpty()) + if (downcast<SVGAltGlyphItemElement>(child).hasValidGlyphElements(glyphNames) && !glyphNames.isEmpty()) return true; } } |