| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org> |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Note: addToPropertyMap is not needed, as SVGViewSpec do not correspond to
an element. | 47 // Note: addToPropertyMap is not needed, as SVGViewSpec do not correspond to
an element. |
| 48 } | 48 } |
| 49 | 49 |
| 50 DEFINE_TRACE(SVGViewSpec) | 50 DEFINE_TRACE(SVGViewSpec) |
| 51 { | 51 { |
| 52 visitor->trace(m_contextElement); | 52 visitor->trace(m_contextElement); |
| 53 visitor->trace(m_transform); | 53 visitor->trace(m_transform); |
| 54 SVGFitToViewBox::trace(visitor); | 54 SVGFitToViewBox::trace(visitor); |
| 55 } | 55 } |
| 56 | 56 |
| 57 DEFINE_TRACE_WRAPPERS(SVGViewSpec) |
| 58 { |
| 59 visitor->traceWrappers(m_contextElement); |
| 60 } |
| 61 |
| 57 bool SVGViewSpec::parseViewSpec(const String& spec) | 62 bool SVGViewSpec::parseViewSpec(const String& spec) |
| 58 { | 63 { |
| 59 if (spec.isEmpty() || !m_contextElement) | 64 if (spec.isEmpty() || !m_contextElement) |
| 60 return false; | 65 return false; |
| 61 if (spec.is8Bit()) { | 66 if (spec.is8Bit()) { |
| 62 const LChar* ptr = spec.characters8(); | 67 const LChar* ptr = spec.characters8(); |
| 63 const LChar* end = ptr + spec.length(); | 68 const LChar* end = ptr + spec.length(); |
| 64 return parseViewSpecInternal(ptr, end); | 69 return parseViewSpecInternal(ptr, end); |
| 65 } | 70 } |
| 66 const UChar* ptr = spec.characters16(); | 71 const UChar* ptr = spec.characters16(); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 ptr++; | 216 ptr++; |
| 212 } | 217 } |
| 213 | 218 |
| 214 if (ptr >= end || *ptr != ')') | 219 if (ptr >= end || *ptr != ')') |
| 215 return false; | 220 return false; |
| 216 | 221 |
| 217 return true; | 222 return true; |
| 218 } | 223 } |
| 219 | 224 |
| 220 } // namespace blink | 225 } // namespace blink |
| OLD | NEW |