Index: third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp b/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp |
index fe0e9a4b7ec3bf3978e09526ae4d09cbeb96b015..7730e90f9f67c61b59134eaba08605f463731466 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp |
@@ -116,6 +116,9 @@ void SVGMarkerElement::childrenChanged(const ChildrenChange& change) |
void SVGMarkerElement::setOrientToAuto() |
{ |
+ if (Attribute* orientAttribute = ensureUniqueElementData().attributes().find(SVGNames::orientAttr)) |
fs
2016/02/19 10:33:13
This will not do the right thing if this method is
Shanmuga Pandi
2016/02/19 11:30:29
Yes. you are right.. I got it..
In case 'orient' a
fs
2016/02/19 12:38:35
Yes, calling setAttribute would be preferable to m
Shanmuga Pandi
2016/02/19 14:46:44
Acknowledged.
Shanmuga Pandi
2016/02/22 06:45:07
Done.
|
+ orientAttribute->setValue("auto"); |
rwlbuis
2016/02/17 22:38:02
Have you considered using setAttribute?
fs
2016/02/19 10:33:13
Using setAttribute would likely work fine in these
Shanmuga Pandi
2016/02/19 11:30:29
Hmm..
The part here "markerElement.orientType.bas
fs
2016/02/19 12:38:35
My point is that doing that will show the same iss
Shanmuga Pandi
2016/02/19 14:46:44
Yes. Copy-Paste problem... It will go through SVGA
|
+ |
m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); |
invalidateSVGAttributes(); |
svgAttributeBaseValChanged(SVGNames::orientAttr); |
@@ -125,6 +128,9 @@ void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> |
{ |
ASSERT(angle); |
RefPtrWillBeRawPtr<SVGAngle> target = angle->target(); |
+ if (Attribute* orientAttribute = ensureUniqueElementData().attributes().find(SVGNames::orientAttr)) |
+ orientAttribute->setValue(AtomicString(target->valueAsString())); |
+ |
m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), target->valueInSpecifiedUnits()); |
invalidateSVGAttributes(); |
svgAttributeBaseValChanged(SVGNames::orientAttr); |