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

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

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/SVGLayoutStyle.cpp ('k') | Source/core/layout/style/SVGLayoutStyleDefs.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/style/SVGLayoutStyleDefs.h
diff --git a/Source/core/layout/style/SVGLayoutStyleDefs.h b/Source/core/layout/style/SVGLayoutStyleDefs.h
index 572d8bf65d86ba8178a2e35a6c38d3a44fd9bc8c..0608e20ff5ea8ea19e03ba5166d64288ad8607b7 100644
--- a/Source/core/layout/style/SVGLayoutStyleDefs.h
+++ b/Source/core/layout/style/SVGLayoutStyleDefs.h
@@ -30,6 +30,7 @@
#include "core/svg/SVGLength.h"
#include "core/svg/SVGLengthList.h"
+#include "platform/Length.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefCounted.h"
@@ -259,6 +260,23 @@ private:
StyleInheritedResourceData(const StyleInheritedResourceData&);
};
+// Positioning and sizing properties.
+class StyleLayoutData : public RefCounted<StyleLayoutData> {
+ public:
+ static PassRefPtr<StyleLayoutData> create() { return adoptRef(new StyleLayoutData); }
+ PassRefPtr<StyleLayoutData> copy() const;
+ bool operator==(const StyleLayoutData&) const;
+ bool operator!=(const StyleLayoutData& other) const
+ {
+ return !(*this == other);
+ }
+ Length x;
+ Length y;
+ private:
+ StyleLayoutData();
+ StyleLayoutData(const StyleLayoutData&);
+ };
+
} // namespace blink
#endif // SVGLayoutStyleDefs_h
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyle.cpp ('k') | Source/core/layout/style/SVGLayoutStyleDefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698