diff options
author | Steve Block <steveblock@google.com> | 2011-05-18 13:36:51 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-05-24 15:38:28 +0100 |
commit | 2fc2651226baac27029e38c9d6ef883fa32084db (patch) | |
tree | e396d4bf89dcce6ed02071be66212495b1df1dec /Source/WebCore/svg/SVGTextPositioningElement.cpp | |
parent | b3725cedeb43722b3b175aaeff70552e562d2c94 (diff) | |
download | external_webkit-2fc2651226baac27029e38c9d6ef883fa32084db.zip external_webkit-2fc2651226baac27029e38c9d6ef883fa32084db.tar.gz external_webkit-2fc2651226baac27029e38c9d6ef883fa32084db.tar.bz2 |
Merge WebKit at r78450: Initial merge by git.
Change-Id: I6d3e5f1f868ec266a0aafdef66182ddc3f265dc1
Diffstat (limited to 'Source/WebCore/svg/SVGTextPositioningElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGTextPositioningElement.cpp | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/Source/WebCore/svg/SVGTextPositioningElement.cpp b/Source/WebCore/svg/SVGTextPositioningElement.cpp index 544d192..a96f0cb 100644 --- a/Source/WebCore/svg/SVGTextPositioningElement.cpp +++ b/Source/WebCore/svg/SVGTextPositioningElement.cpp @@ -161,31 +161,15 @@ void SVGTextPositioningElement::synchronizeProperty(const QualifiedName& attrNam synchronizeRotate(); } -static inline bool listContainsRelativeValue(const SVGLengthList& list) +void SVGTextPositioningElement::fillPassedAttributeToPropertyTypeMap(AttributeToPropertyTypeMap& attributeToPropertyTypeMap) { - unsigned size = list.size(); - for (unsigned i = 0; i < size; ++i) { - const SVGLength& length = list.at(i); - if (length.isRelative()) - return true; - } - - return false; -} + SVGTextContentElement::fillPassedAttributeToPropertyTypeMap(attributeToPropertyTypeMap); -bool SVGTextPositioningElement::selfHasRelativeLengths() const -{ - if (SVGTextContentElement::selfHasRelativeLengths()) - return true; - if (listContainsRelativeValue(x())) - return true; - if (listContainsRelativeValue(y())) - return true; - if (listContainsRelativeValue(dx())) - return true; - if (listContainsRelativeValue(dy())) - return true; - return false; + attributeToPropertyTypeMap.set(SVGNames::xAttr, AnimatedNumberList); + attributeToPropertyTypeMap.set(SVGNames::yAttr, AnimatedNumberList); + attributeToPropertyTypeMap.set(SVGNames::dxAttr, AnimatedNumberList); + attributeToPropertyTypeMap.set(SVGNames::dyAttr, AnimatedNumberList); + attributeToPropertyTypeMap.set(SVGNames::rotateAttr, AnimatedNumberList); } SVGTextPositioningElement* SVGTextPositioningElement::elementFromRenderer(RenderObject* renderer) |