Chromium Code Reviews| Index: Source/core/rendering/style/SVGRenderStyleDefs.cpp |
| diff --git a/Source/core/rendering/style/SVGRenderStyleDefs.cpp b/Source/core/rendering/style/SVGRenderStyleDefs.cpp |
| index d569252e1e2c04e6b9f374e28c7b05273ecf3481..164d5155fc382f3fdda992aef9f60d668107697c 100644 |
| --- a/Source/core/rendering/style/SVGRenderStyleDefs.cpp |
| +++ b/Source/core/rendering/style/SVGRenderStyleDefs.cpp |
| @@ -28,7 +28,7 @@ |
| #include "config.h" |
| #include "core/rendering/style/SVGRenderStyleDefs.h" |
| - |
| +#include "core/rendering/style/RenderStyle.h" |
|
fs
2015/02/04 13:24:53
What's this needed for? (If it's needed, it should
Erik Dahlström (inactive)
2015/02/05 16:09:01
Done.
|
| #include "core/rendering/style/SVGRenderStyle.h" |
| namespace blink { |
| @@ -201,4 +201,28 @@ bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot |
| && markerEnd == other.markerEnd; |
| } |
| +StyleLayoutData::StyleLayoutData() |
| +: x(SVGRenderStyle::initialX()) |
|
fs
2015/02/04 13:24:53
Fix indentation.
Erik Dahlström (inactive)
2015/02/05 16:09:01
Done.
|
| +, y(SVGRenderStyle::initialY()) |
| +{ |
| +} |
| + |
| +inline StyleLayoutData::StyleLayoutData(const StyleLayoutData& other) |
| + : RefCounted<StyleLayoutData>() |
| + , x(other.x) |
| + , y(other.y) |
| +{ |
| +} |
| + |
| +PassRefPtr<StyleLayoutData> StyleLayoutData::copy() const |
| +{ |
| + return adoptRef(new StyleLayoutData(*this)); |
| +} |
| + |
| +bool StyleLayoutData::operator==(const StyleLayoutData& other) const |
| +{ |
| + return x == other.x |
| + && y == other.y; |
| +} |
| + |
| } |