| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 String viewBoxString() const; | 54 String viewBoxString() const; |
| 55 String preserveAspectRatioString() const; | 55 String preserveAspectRatioString() const; |
| 56 String transformString() const; | 56 String transformString() const; |
| 57 String viewTargetString() const { return m_viewTargetString; } | 57 String viewTargetString() const { return m_viewTargetString; } |
| 58 // override SVGZoomAndPan.setZoomAndPan so can throw exception on write | 58 // override SVGZoomAndPan.setZoomAndPan so can throw exception on write |
| 59 void setZoomAndPan(unsigned short value) { } // read only | 59 void setZoomAndPan(unsigned short value) { } // read only |
| 60 void setZoomAndPan(unsigned short value, ExceptionState&); | 60 void setZoomAndPan(unsigned short value, ExceptionState&); |
| 61 | 61 |
| 62 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
| 63 | 63 |
| 64 SVGSVGElement* contextElement() { return m_contextElement.get(); } | 64 SVGSVGElement* contextElement() const { return m_contextElement.get(); } |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 explicit SVGViewSpec(SVGSVGElement*); | 67 explicit SVGViewSpec(SVGSVGElement*); |
| 68 | 68 |
| 69 template<typename CharType> | 69 template<typename CharType> |
| 70 bool parseViewSpecInternal(const CharType* ptr, const CharType* end); | 70 bool parseViewSpecInternal(const CharType* ptr, const CharType* end); |
| 71 | 71 |
| 72 Member<SVGSVGElement> m_contextElement; | 72 Member<SVGSVGElement> m_contextElement; |
| 73 Member<SVGAnimatedTransformList> m_transform; | 73 Member<SVGAnimatedTransformList> m_transform; |
| 74 String m_viewTargetString; | 74 String m_viewTargetString; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 85 preserveAspectRatio()->baseValue()->setMeetOrSlice(inheritFromElement->p
reserveAspectRatio()->currentValue()->meetOrSlice()); | 85 preserveAspectRatio()->baseValue()->setMeetOrSlice(inheritFromElement->p
reserveAspectRatio()->currentValue()->meetOrSlice()); |
| 86 } | 86 } |
| 87 | 87 |
| 88 if (inheritFromElement->hasAttribute(SVGNames::zoomAndPanAttr)) | 88 if (inheritFromElement->hasAttribute(SVGNames::zoomAndPanAttr)) |
| 89 setZoomAndPan(inheritFromElement->zoomAndPan()); | 89 setZoomAndPan(inheritFromElement->zoomAndPan()); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif // SVGViewSpec_h | 94 #endif // SVGViewSpec_h |
| OLD | NEW |