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

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

Issue 53143002: Avoid calling SVGFontFaceElement::rebuildFontFace() for non font-face specific attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | 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 46a3b3aefff69dc8a0427ff16f4debe330b3649b..6b8865da1700a7e07469b1c1653527907188060e 100644
--- a/Source/core/svg/SVGFontFaceElement.cpp
+++ b/Source/core/svg/SVGFontFaceElement.cpp
@@ -62,7 +62,7 @@ PassRefPtr<SVGFontFaceElement> SVGFontFaceElement::create(const QualifiedName& t
return adoptRef(new SVGFontFaceElement(tagName, document));
}
-static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName& attrName)
+static CSSPropertyID cssPropertyIdForFontFaceAttributeName(const QualifiedName& attrName)
{
if (!attrName.namespaceURI().isNull())
return CSSPropertyInvalid;
@@ -112,7 +112,7 @@ static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName& attrN
void SVGFontFaceElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
- CSSPropertyID propId = cssPropertyIdForSVGAttributeName(name);
+ CSSPropertyID propId = cssPropertyIdForFontFaceAttributeName(name);
if (propId > 0) {
m_fontFaceRule->mutableProperties()->setProperty(propId, value, false);
rebuildFontFace();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698