OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 return SVGURIReference::fragmentIdentifierFromIRIString(target, element.tree
Scope()); | 161 return SVGURIReference::fragmentIdentifierFromIRIString(target, element.tree
Scope()); |
162 } | 162 } |
163 | 163 |
164 static inline bool svgPaintTypeHasURL(SVGPaintType paintType) | 164 static inline bool svgPaintTypeHasURL(SVGPaintType paintType) |
165 { | 165 { |
166 switch (paintType) { | 166 switch (paintType) { |
167 case SVG_PAINTTYPE_URI_NONE: | 167 case SVG_PAINTTYPE_URI_NONE: |
168 case SVG_PAINTTYPE_URI_CURRENTCOLOR: | 168 case SVG_PAINTTYPE_URI_CURRENTCOLOR: |
169 case SVG_PAINTTYPE_URI_RGBCOLOR: | 169 case SVG_PAINTTYPE_URI_RGBCOLOR: |
170 case SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR: | |
171 case SVG_PAINTTYPE_URI: | 170 case SVG_PAINTTYPE_URI: |
172 return true; | 171 return true; |
173 default: | 172 default: |
174 break; | 173 break; |
175 } | 174 } |
176 return false; | 175 return false; |
177 } | 176 } |
178 | 177 |
179 static inline RenderSVGResourceContainer* paintingResourceFromSVGPaint(TreeScope
& treeScope, const SVGPaintType& paintType, const String& paintUri, AtomicString
& id, bool& hasPendingResource) | 178 static inline RenderSVGResourceContainer* paintingResourceFromSVGPaint(TreeScope
& treeScope, const SVGPaintType& paintType, const String& paintUri, AtomicString
& id, bool& hasPendingResource) |
180 { | 179 { |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) | 706 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) |
708 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); | 707 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); |
709 } | 708 } |
710 | 709 |
711 if (m_linkedResource) | 710 if (m_linkedResource) |
712 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); | 711 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); |
713 } | 712 } |
714 #endif | 713 #endif |
715 | 714 |
716 } | 715 } |
OLD | NEW |