summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/SVGTextPositioningElement.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-18 13:36:51 +0100
committerSteve Block <steveblock@google.com>2011-05-24 15:38:28 +0100
commit2fc2651226baac27029e38c9d6ef883fa32084db (patch)
treee396d4bf89dcce6ed02071be66212495b1df1dec /Source/WebCore/svg/SVGTextPositioningElement.cpp
parentb3725cedeb43722b3b175aaeff70552e562d2c94 (diff)
downloadexternal_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.cpp30
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)