| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 69     if (!m_contextElement) | 69     if (!m_contextElement) | 
| 70         return 0; | 70         return 0; | 
| 71     Element* element = m_contextElement->treeScope().getElementById(AtomicString
     (m_viewTargetString)); | 71     Element* element = m_contextElement->treeScope().getElementById(AtomicString
     (m_viewTargetString)); | 
| 72     if (!element || !element->isSVGElement()) | 72     if (!element || !element->isSVGElement()) | 
| 73         return 0; | 73         return 0; | 
| 74     return toSVGElement(element); | 74     return toSVGElement(element); | 
| 75 } | 75 } | 
| 76 | 76 | 
| 77 void SVGViewSpec::detachContextElement() | 77 void SVGViewSpec::detachContextElement() | 
| 78 { | 78 { | 
| 79     m_transform = 0; | 79     m_transform = nullptr; | 
| 80     clearViewBox(); | 80     clearViewBox(); | 
| 81     clearPreserveAspectRatio(); | 81     clearPreserveAspectRatio(); | 
| 82     m_contextElement = 0; | 82     m_contextElement = 0; | 
| 83 } | 83 } | 
| 84 | 84 | 
| 85 void SVGViewSpec::reset() | 85 void SVGViewSpec::reset() | 
| 86 { | 86 { | 
| 87     resetZoomAndPan(); | 87     resetZoomAndPan(); | 
| 88     m_transform->baseValue()->clear(); | 88     m_transform->baseValue()->clear(); | 
| 89     updateViewBox(FloatRect()); | 89     updateViewBox(FloatRect()); | 
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 191         const LChar* ptr = spec.characters8(); | 191         const LChar* ptr = spec.characters8(); | 
| 192         const LChar* end = ptr + spec.length(); | 192         const LChar* end = ptr + spec.length(); | 
| 193         return parseViewSpecInternal(ptr, end); | 193         return parseViewSpecInternal(ptr, end); | 
| 194     } | 194     } | 
| 195     const UChar* ptr = spec.characters16(); | 195     const UChar* ptr = spec.characters16(); | 
| 196     const UChar* end = ptr + spec.length(); | 196     const UChar* end = ptr + spec.length(); | 
| 197     return parseViewSpecInternal(ptr, end); | 197     return parseViewSpecInternal(ptr, end); | 
| 198 } | 198 } | 
| 199 | 199 | 
| 200 } | 200 } | 
| OLD | NEW | 
|---|