| Index: third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp b/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp
|
| index 756a211029e404eee1f2db9190077ef2ca7d62ca..99104ce743c7d5d8d75fdb9c50fb7eb0f130b7ba 100644
|
| --- a/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp
|
| +++ b/third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp
|
| @@ -28,6 +28,7 @@
|
| #include "config.h"
|
| #include "core/style/SVGComputedStyleDefs.h"
|
|
|
| +#include "core/style/DataEquivalency.h"
|
| #include "core/style/SVGComputedStyle.h"
|
|
|
| namespace blink {
|
| @@ -201,7 +202,8 @@ bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
|
| }
|
|
|
| StyleLayoutData::StyleLayoutData()
|
| - : cx(SVGComputedStyle::initialCx())
|
| + : d()
|
| + , cx(SVGComputedStyle::initialCx())
|
| , cy(SVGComputedStyle::initialCy())
|
| , x(SVGComputedStyle::initialX())
|
| , y(SVGComputedStyle::initialY())
|
| @@ -213,6 +215,7 @@ StyleLayoutData::StyleLayoutData()
|
|
|
| inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other)
|
| : RefCounted<StyleLayoutData>()
|
| + , d()
|
| , cx(other.cx)
|
| , cy(other.cy)
|
| , x(other.x)
|
| @@ -221,6 +224,8 @@ inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other)
|
| , rx(other.rx)
|
| , ry(other.ry)
|
| {
|
| + if (other.d)
|
| + d = other.d->copy();
|
| }
|
|
|
| PassRefPtr<StyleLayoutData> StyleLayoutData::copy() const
|
| @@ -236,7 +241,8 @@ bool StyleLayoutData::operator==(const StyleLayoutData& other) const
|
| && rx == other.rx
|
| && ry == other.ry
|
| && cx == other.cx
|
| - && cy == other.cy;
|
| + && cy == other.cy
|
| + && dataEquivalent(d, other.d);
|
| }
|
|
|
| }
|
|
|