Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1323)

Unified Diff: Source/core/rendering/style/SVGRenderStyleDefs.cpp

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanup Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698