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

Side by Side Diff: Source/WebCore/svg/SVGColor.h

Issue 7002001: Revert 79985 - 2011-03-01 Nikolas Zimmermann <nzimmermann@rim.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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/WebCore/rendering/svg/SVGResources.cpp ('k') | Source/WebCore/svg/SVGColor.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. 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 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 #ifndef SVGColor_h 22 #ifndef SVGColor_h
23 #define SVGColor_h 23 #define SVGColor_h
24 24
25 #if ENABLE(SVG) 25 #if ENABLE(SVG)
26 #include "CSSMutableValue.h" 26 #include "CSSValue.h"
27 #include "Color.h" 27 #include "Color.h"
28 #include <wtf/PassRefPtr.h> 28 #include <wtf/PassRefPtr.h>
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class RGBColor; 32 class RGBColor;
33 33
34 class SVGColor : public CSSMutableValue { 34 class SVGColor : public CSSValue {
35 public: 35 public:
36 enum SVGColorType { 36 enum SVGColorType {
37 SVG_COLORTYPE_UNKNOWN = 0, 37 SVG_COLORTYPE_UNKNOWN = 0,
38 SVG_COLORTYPE_RGBCOLOR = 1, 38 SVG_COLORTYPE_RGBCOLOR = 1,
39 SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2, 39 SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2,
40 SVG_COLORTYPE_CURRENTCOLOR = 3 40 SVG_COLORTYPE_CURRENTCOLOR = 3
41 }; 41 };
42 42
43 static PassRefPtr<SVGColor> createFromString(const String& rgbColor) 43 static PassRefPtr<SVGColor> createFromString(const String& rgbColor)
44 { 44 {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual bool isSVGColor() const { return true; } 83 virtual bool isSVGColor() const { return true; }
84 84
85 Color m_color; 85 Color m_color;
86 SVGColorType m_colorType; 86 SVGColorType m_colorType;
87 }; 87 };
88 88
89 } // namespace WebCore 89 } // namespace WebCore
90 90
91 #endif // ENABLE(SVG) 91 #endif // ENABLE(SVG)
92 #endif // SVGColor_h 92 #endif // SVGColor_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/svg/SVGResources.cpp ('k') | Source/WebCore/svg/SVGColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698