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

Side by Side Diff: Source/core/svg/SVGAngle.h

Issue 539833004: [SVG2] Add support for marker orient="auto-start-reverse". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add dump-render-tree output + fix nit and test Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/core/svg/SVGAngle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 15 matching lines...) Expand all
26 #include "core/svg/properties/SVGPropertyHelper.h" 26 #include "core/svg/properties/SVGPropertyHelper.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class SVGAngle; 30 class SVGAngle;
31 class SVGAngleTearOff; 31 class SVGAngleTearOff;
32 32
33 enum SVGMarkerOrientType { 33 enum SVGMarkerOrientType {
34 SVGMarkerOrientUnknown = 0, 34 SVGMarkerOrientUnknown = 0,
35 SVGMarkerOrientAuto, 35 SVGMarkerOrientAuto,
36 SVGMarkerOrientAngle 36 SVGMarkerOrientAngle,
37 SVGMarkerOrientAutoStartReverse
37 }; 38 };
38 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGMarkerOr ientType>(); 39 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGMarkerOr ientType>();
40 template<> unsigned short getMaxExposedEnumValue<SVGMarkerOrientType>();
39 41
40 class SVGMarkerOrientEnumeration : public SVGEnumeration<SVGMarkerOrientType> { 42 class SVGMarkerOrientEnumeration : public SVGEnumeration<SVGMarkerOrientType> {
41 public: 43 public:
42 static PassRefPtr<SVGMarkerOrientEnumeration> create(SVGAngle* angle) 44 static PassRefPtr<SVGMarkerOrientEnumeration> create(SVGAngle* angle)
43 { 45 {
44 return adoptRef(new SVGMarkerOrientEnumeration(angle)); 46 return adoptRef(new SVGMarkerOrientEnumeration(angle));
45 } 47 }
46 48
47 virtual ~SVGMarkerOrientEnumeration(); 49 virtual ~SVGMarkerOrientEnumeration();
48 50
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 inline PassRefPtr<SVGAngle> toSVGAngle(PassRefPtr<SVGPropertyBase> passBase) 120 inline PassRefPtr<SVGAngle> toSVGAngle(PassRefPtr<SVGPropertyBase> passBase)
119 { 121 {
120 RefPtr<SVGPropertyBase> base = passBase; 122 RefPtr<SVGPropertyBase> base = passBase;
121 ASSERT(base->type() == SVGAngle::classType()); 123 ASSERT(base->type() == SVGAngle::classType());
122 return static_pointer_cast<SVGAngle>(base.release()); 124 return static_pointer_cast<SVGAngle>(base.release());
123 } 125 }
124 126
125 } // namespace blink 127 } // namespace blink
126 128
127 #endif // SVGAngle_h 129 #endif // SVGAngle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderTreeAsText.cpp ('k') | Source/core/svg/SVGAngle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698