OLD | NEW |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 static PassRefPtrWillBeRawPtr<SVGPaint> createURIAndCurrentColor(const Strin
g& uri) | 89 static PassRefPtrWillBeRawPtr<SVGPaint> createURIAndCurrentColor(const Strin
g& uri) |
90 { | 90 { |
91 RefPtrWillBeRawPtr<SVGPaint> paint = adoptRefWillBeRefCountedGarbageColl
ected(new SVGPaint(SVG_PAINTTYPE_URI_CURRENTCOLOR, uri)); | 91 RefPtrWillBeRawPtr<SVGPaint> paint = adoptRefWillBeRefCountedGarbageColl
ected(new SVGPaint(SVG_PAINTTYPE_URI_CURRENTCOLOR, uri)); |
92 return paint.release(); | 92 return paint.release(); |
93 } | 93 } |
94 | 94 |
95 const SVGPaintType& paintType() const { return m_paintType; } | 95 const SVGPaintType& paintType() const { return m_paintType; } |
96 String uri() const { return m_uri; } | 96 String uri() const { return m_uri; } |
97 | 97 |
98 void setUri(const String&); | |
99 void setPaint(unsigned short paintType, const String& uri, const String& rgb
Color, const String& iccColor, ExceptionState&); | |
100 | |
101 String customCSSText() const; | 98 String customCSSText() const; |
102 | 99 |
103 PassRefPtrWillBeRawPtr<SVGPaint> cloneForCSSOM() const; | 100 PassRefPtrWillBeRawPtr<SVGPaint> cloneForCSSOM() const; |
104 | 101 |
105 bool equals(const SVGPaint&) const; | 102 bool equals(const SVGPaint&) const; |
106 | 103 |
107 void traceAfterDispatch(Visitor* visitor) { SVGColor::traceAfterDispatch(vis
itor); } | 104 void traceAfterDispatch(Visitor* visitor) { SVGColor::traceAfterDispatch(vis
itor); } |
108 | 105 |
109 private: | 106 private: |
110 friend class CSSComputedStyleDeclaration; | 107 friend class CSSComputedStyleDeclaration; |
(...skipping 11 matching lines...) Expand all Loading... |
122 | 119 |
123 SVGPaintType m_paintType; | 120 SVGPaintType m_paintType; |
124 String m_uri; | 121 String m_uri; |
125 }; | 122 }; |
126 | 123 |
127 DEFINE_CSS_VALUE_TYPE_CASTS(SVGPaint, isSVGPaint()); | 124 DEFINE_CSS_VALUE_TYPE_CASTS(SVGPaint, isSVGPaint()); |
128 | 125 |
129 } // namespace WebCore | 126 } // namespace WebCore |
130 | 127 |
131 #endif // SVGPaint_h | 128 #endif // SVGPaint_h |
OLD | NEW |