Skip to content

Commit

Permalink
Simplify SVGElement::addToPropertyMap
Browse files Browse the repository at this point in the history
Shaves a few instructions off (most prominently a call to the QualifiedName
destructor.)

Review URL: https://codereview.chromium.org/1883773003

Cr-Commit-Position: refs/heads/master@{#387024}
  • Loading branch information
fs authored and Commit bot committed Apr 13, 2016
1 parent 40658cf commit 607a5ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions third_party/WebKit/Source/core/svg/SVGElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,7 @@ AnimatedPropertyType SVGElement::animatedPropertyTypeForCSSAttribute(const Quali

void SVGElement::addToPropertyMap(SVGAnimatedPropertyBase* property)
{
QualifiedName attributeName = property->attributeName();
m_attributeToPropertyMap.set(attributeName, property);
m_attributeToPropertyMap.set(property->attributeName(), property);
}

SVGAnimatedPropertyBase* SVGElement::propertyFromAttribute(const QualifiedName& attributeName) const
Expand Down

0 comments on commit 607a5ce

Please sign in to comment.