diff options
author | Liang Qi <liang.qi@qt.io> | 2016-05-27 09:58:08 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-05-27 09:58:33 +0200 |
commit | 01fa9be55572ddb3f69befc68475ed09241eabdf (patch) | |
tree | 03e177b36123aaf32b287eda215014e08b3d269b /Source/WebCore/svg/SVGPolyElement.cpp | |
parent | 2e8517924b70a778463e463873eb3d8d0b623eed (diff) | |
parent | a750b262b856178eee47d546944bd095662dccf7 (diff) | |
download | qtwebkit-01fa9be55572ddb3f69befc68475ed09241eabdf.tar.gz |
Merge remote-tracking branch 'origin/5.6.1' into 5.7.05.7.0
Change-Id: Id8fd457ab1eb501f8f5622cb5f7d88c352e3758f
Diffstat (limited to 'Source/WebCore/svg/SVGPolyElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGPolyElement.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebCore/svg/SVGPolyElement.cpp b/Source/WebCore/svg/SVGPolyElement.cpp index fd5c652f1..977234d5e 100644 --- a/Source/WebCore/svg/SVGPolyElement.cpp +++ b/Source/WebCore/svg/SVGPolyElement.cpp @@ -88,8 +88,8 @@ void SVGPolyElement::parseAttribute(const QualifiedName& name, const AtomicStrin if (!pointsListFromSVGData(newList, value)) document()->accessSVGExtensions()->reportError("Problem parsing points=\"" + value + "\""); - if (SVGAnimatedProperty* wrapper = SVGAnimatedProperty::lookupWrapper<SVGPolyElement, SVGAnimatedPointList>(this, pointsPropertyInfo())) - static_cast<SVGAnimatedPointList*>(wrapper)->detachListWrappers(newList.size()); + if (RefPtr<SVGAnimatedProperty> wrapper = SVGAnimatedProperty::lookupWrapper<SVGPolyElement, SVGAnimatedPointList>(this, pointsPropertyInfo())) + static_pointer_cast<SVGAnimatedPointList>(wrapper)->detachListWrappers(newList.size()); m_points.value = newList; return; @@ -147,16 +147,16 @@ PassRefPtr<SVGAnimatedProperty> SVGPolyElement::lookupOrCreatePointsWrapper(SVGE (ownerType, pointsPropertyInfo(), ownerType->m_points.value); } -SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::points() +RefPtr<SVGListPropertyTearOff<SVGPointList> > SVGPolyElement::points() { m_points.shouldSynchronize = true; - return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cast<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal()); + return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cast<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal().get()); } -SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints() +RefPtr<SVGListPropertyTearOff<SVGPointList> > SVGPolyElement::animatedPoints() { m_points.shouldSynchronize = true; - return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cast<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal()); + return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cast<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal().get()); } } |