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

Unified Diff: experimental/svg/model/SkSVGAttribute.h

Issue 2222793002: [SVGDom] Add <svg> viewBox support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: typo Created 4 years, 4 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 | « no previous file | experimental/svg/model/SkSVGAttribute.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/svg/model/SkSVGAttribute.h
diff --git a/experimental/svg/model/SkSVGAttribute.h b/experimental/svg/model/SkSVGAttribute.h
index 64465b13c978f5720c3b26a8c216f80040c6a155..d05737b69fea6ce78dc186d92f7da650cd20f6ce 100644
--- a/experimental/svg/model/SkSVGAttribute.h
+++ b/experimental/svg/model/SkSVGAttribute.h
@@ -11,12 +11,15 @@
#include "SkSVGTypes.h"
#include "SkTLazy.h"
+class SkSVGRenderContext;
+
enum class SkSVGAttribute {
kD,
kFill,
kHeight,
kStroke,
kTransform,
+ kViewBox,
kWidth,
kX,
kY,
@@ -24,21 +27,19 @@ enum class SkSVGAttribute {
kUnknown,
};
-class SkSVGRenderContext;
-
class SkSVGPresentationAttributes {
public:
SkSVGPresentationAttributes();
- void setFill(const SkSVGColor&);
- void setStroke(const SkSVGColor&);
+ void setFill(const SkSVGColorType&);
+ void setStroke(const SkSVGColorType&);
- void applyTo(SkTCopyOnFirstWrite<SkSVGRenderContext>&) const;
+ void applyTo(SkSVGRenderContext*) const;
private:
// Color only for now.
- SkSVGColor fFill;
- SkSVGColor fStroke;
+ SkSVGColorType fFill;
+ SkSVGColorType fStroke;
unsigned fFillIsSet : 1;
unsigned fStrokeIsSet : 1;
« no previous file with comments | « no previous file | experimental/svg/model/SkSVGAttribute.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698