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

Unified Diff: Source/core/layout/style/SVGLayoutStyleDefs.cpp

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyleDefs.h ('k') | Source/core/layout/svg/LayoutSVGRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/style/SVGLayoutStyleDefs.cpp
diff --git a/Source/core/layout/style/SVGLayoutStyleDefs.cpp b/Source/core/layout/style/SVGLayoutStyleDefs.cpp
index 4f19c66b6e13ef6b0208c58ad07bb5a5f551db10..8a0bfc441b94bdacef65b62b3fdfd6cc364d2771 100644
--- a/Source/core/layout/style/SVGLayoutStyleDefs.cpp
+++ b/Source/core/layout/style/SVGLayoutStyleDefs.cpp
@@ -26,7 +26,6 @@
*/
#include "config.h"
-
#include "core/layout/style/SVGLayoutStyleDefs.h"
#include "core/layout/style/SVGLayoutStyle.h"
@@ -201,4 +200,28 @@ bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot
&& markerEnd == other.markerEnd;
}
+StyleLayoutData::StyleLayoutData()
+ : x(SVGLayoutStyle::initialX())
+ , y(SVGLayoutStyle::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;
+}
+
}
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyleDefs.h ('k') | Source/core/layout/svg/LayoutSVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698