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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 s_tagList.add(SVGNames::radialGradientTag.localName()); | 134 s_tagList.add(SVGNames::radialGradientTag.localName()); |
135 } | 135 } |
136 | 136 |
137 return s_tagList; | 137 return s_tagList; |
138 } | 138 } |
139 | 139 |
140 static inline AtomicString targetReferenceFromResource(SVGElement* element) | 140 static inline AtomicString targetReferenceFromResource(SVGElement* element) |
141 { | 141 { |
142 String target; | 142 String target; |
143 if (element->hasTagName(SVGNames::patternTag)) | 143 if (element->hasTagName(SVGNames::patternTag)) |
144 target = toSVGPatternElement(element)->hrefCurrentValue(); | 144 target = toSVGPatternElement(element)->href()->currentValue()->value(); |
145 else if (element->hasTagName(SVGNames::linearGradientTag) || element->hasTag
Name(SVGNames::radialGradientTag)) | 145 else if (element->hasTagName(SVGNames::linearGradientTag) || element->hasTag
Name(SVGNames::radialGradientTag)) |
146 target = toSVGGradientElement(element)->hrefCurrentValue(); | 146 target = toSVGGradientElement(element)->href()->currentValue()->value(); |
147 else if (element->hasTagName(SVGNames::filterTag)) | 147 else if (element->hasTagName(SVGNames::filterTag)) |
148 target = toSVGFilterElement(element)->hrefCurrentValue(); | 148 target = toSVGFilterElement(element)->href()->currentValue()->value(); |
149 else | 149 else |
150 ASSERT_NOT_REACHED(); | 150 ASSERT_NOT_REACHED(); |
151 | 151 |
152 return SVGURIReference::fragmentIdentifierFromIRIString(target, element->doc
ument()); | 152 return SVGURIReference::fragmentIdentifierFromIRIString(target, element->doc
ument()); |
153 } | 153 } |
154 | 154 |
155 static inline bool svgPaintTypeHasURL(SVGPaint::SVGPaintType paintType) | 155 static inline bool svgPaintTypeHasURL(SVGPaint::SVGPaintType paintType) |
156 { | 156 { |
157 switch (paintType) { | 157 switch (paintType) { |
158 case SVGPaint::SVG_PAINTTYPE_URI_NONE: | 158 case SVGPaint::SVG_PAINTTYPE_URI_NONE: |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) | 700 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) |
701 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); | 701 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); |
702 } | 702 } |
703 | 703 |
704 if (m_linkedResource) | 704 if (m_linkedResource) |
705 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); | 705 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); |
706 } | 706 } |
707 #endif | 707 #endif |
708 | 708 |
709 } | 709 } |
OLD | NEW |