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

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

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.h
diff --git a/Source/core/rendering/style/SVGRenderStyleDefs.h b/Source/core/rendering/style/SVGRenderStyleDefs.h
index 2c0ee620c100a71ba5175805621f01ceb22fe577..dec202259d6a5c9393378c1b4e9e3b382f92bd39 100644
--- a/Source/core/rendering/style/SVGRenderStyleDefs.h
+++ b/Source/core/rendering/style/SVGRenderStyleDefs.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 @@ namespace blink {
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 // SVGRenderStyleDefs_h

Powered by Google App Engine
This is Rietveld 408576698