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

Side by Side Diff: Source/WebCore/svg/SVGPaint.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/svg/SVGColor.cpp ('k') | Source/WebCore/svg/SVGPaint.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) 2006 Samuel Weinig <sam.weinig@gmial.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmial.com>
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 const SVGPaintType& paintType() const { return m_paintType; } 82 const SVGPaintType& paintType() const { return m_paintType; }
83 String uri() const { return m_uri; } 83 String uri() const { return m_uri; }
84 84
85 void setUri(const String&); 85 void setUri(const String&);
86 void setPaint(unsigned short paintType, const String& uri, const String& rgb Color, const String& iccColor, ExceptionCode&); 86 void setPaint(unsigned short paintType, const String& uri, const String& rgb Color, const String& iccColor, ExceptionCode&);
87 87
88 bool matchesTargetURI(const String& referenceId); 88 bool matchesTargetURI(const String& referenceId);
89 89
90 static SVGPaint* defaultFill();
91 static SVGPaint* defaultStroke();
92
90 private: 93 private:
91 friend class CSSComputedStyleDeclaration; 94 friend class CSSComputedStyleDeclaration;
92 95
93 static PassRefPtr<SVGPaint> create(const SVGPaintType& type, const String& u ri, const Color& color) 96 static PassRefPtr<SVGPaint> create(const SVGPaintType& type, const String& u ri, const Color& color)
94 { 97 {
95 RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(type, uri)); 98 RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(type, uri));
96 paint->setColor(color); 99 paint->setColor(color);
97 return paint.release(); 100 return paint.release();
98 } 101 }
99 102
100 private: 103 private:
101 SVGPaint(const SVGPaintType&, String uri = String()); 104 SVGPaint(const SVGPaintType&, String uri = String());
102 105
103 virtual bool isSVGPaint() const { return true; } 106 virtual bool isSVGPaint() const { return true; }
104 virtual String cssText() const; 107 virtual String cssText() const;
105 108
106 SVGPaintType m_paintType; 109 SVGPaintType m_paintType;
107 String m_uri; 110 String m_uri;
108 }; 111 };
109 112
110 } // namespace WebCore 113 } // namespace WebCore
111 114
112 #endif // ENABLE(SVG) 115 #endif // ENABLE(SVG)
113 #endif // SVGPaint_h 116 #endif // SVGPaint_h
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGColor.cpp ('k') | Source/WebCore/svg/SVGPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698