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

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

Issue 68643007: Remove QualifiedName argument from SVGElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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/SVGFontFaceElement.h ('k') | Source/core/svg/SVGFontFaceFormatElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceElement.cpp
diff --git a/Source/core/svg/SVGFontFaceElement.cpp b/Source/core/svg/SVGFontFaceElement.cpp
index 6b8865da1700a7e07469b1c1653527907188060e..9fb4cd4191ce30ab879ba0218032b7a9bbb85c57 100644
--- a/Source/core/svg/SVGFontFaceElement.cpp
+++ b/Source/core/svg/SVGFontFaceElement.cpp
@@ -46,20 +46,19 @@ namespace WebCore {
using namespace SVGNames;
-inline SVGFontFaceElement::SVGFontFaceElement(const QualifiedName& tagName, Document& document)
- : SVGElement(tagName, document)
+inline SVGFontFaceElement::SVGFontFaceElement(Document& document)
+ : SVGElement(font_faceTag, document)
, m_fontFaceRule(StyleRuleFontFace::create())
, m_fontElement(0)
{
- ASSERT(hasTagName(font_faceTag));
ScriptWrappable::init(this);
RefPtr<MutableStylePropertySet> styleDeclaration = MutableStylePropertySet::create(HTMLStandardMode);
m_fontFaceRule->setProperties(styleDeclaration.release());
}
-PassRefPtr<SVGFontFaceElement> SVGFontFaceElement::create(const QualifiedName& tagName, Document& document)
+PassRefPtr<SVGFontFaceElement> SVGFontFaceElement::create(Document& document)
{
- return adoptRef(new SVGFontFaceElement(tagName, document));
+ return adoptRef(new SVGFontFaceElement(document));
}
static CSSPropertyID cssPropertyIdForFontFaceAttributeName(const QualifiedName& attrName)
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.h ('k') | Source/core/svg/SVGFontFaceFormatElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698