| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 paint->setColor(color); | 79 paint->setColor(color); |
| 80 return paint.release(); | 80 return paint.release(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 static PassRefPtr<SVGPaint> createURIAndNone(const String& uri) | 83 static PassRefPtr<SVGPaint> createURIAndNone(const String& uri) |
| 84 { | 84 { |
| 85 RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(SVG_PAINTTYPE_URI_NONE, u
ri)); | 85 RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(SVG_PAINTTYPE_URI_NONE, u
ri)); |
| 86 return paint.release(); | 86 return paint.release(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 static PassRefPtr<SVGPaint> createURIAndCurrentColor(const String& uri) |
| 90 { |
| 91 RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(SVG_PAINTTYPE_URI_CURRENT
COLOR, uri)); |
| 92 return paint.release(); |
| 93 } |
| 94 |
| 89 const SVGPaintType& paintType() const { return m_paintType; } | 95 const SVGPaintType& paintType() const { return m_paintType; } |
| 90 String uri() const { return m_uri; } | 96 String uri() const { return m_uri; } |
| 91 | 97 |
| 92 void setUri(const String&); | 98 void setUri(const String&); |
| 93 void setPaint(unsigned short paintType, const String& uri, const String& rgb
Color, const String& iccColor, ExceptionState&); | 99 void setPaint(unsigned short paintType, const String& uri, const String& rgb
Color, const String& iccColor, ExceptionState&); |
| 94 | 100 |
| 95 String customCSSText() const; | 101 String customCSSText() const; |
| 96 | 102 |
| 97 PassRefPtr<SVGPaint> cloneForCSSOM() const; | 103 PassRefPtr<SVGPaint> cloneForCSSOM() const; |
| 98 | 104 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 114 | 120 |
| 115 SVGPaintType m_paintType; | 121 SVGPaintType m_paintType; |
| 116 String m_uri; | 122 String m_uri; |
| 117 }; | 123 }; |
| 118 | 124 |
| 119 DEFINE_CSS_VALUE_TYPE_CASTS(SVGPaint, isSVGPaint()); | 125 DEFINE_CSS_VALUE_TYPE_CASTS(SVGPaint, isSVGPaint()); |
| 120 | 126 |
| 121 } // namespace WebCore | 127 } // namespace WebCore |
| 122 | 128 |
| 123 #endif // SVGPaint_h | 129 #endif // SVGPaint_h |
| OLD | NEW |