| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 bool hasEmptyViewBox() const { return m_viewBox->currentValue()->isValid() &
& m_viewBox->currentValue()->value().isEmpty(); } | 67 bool hasEmptyViewBox() const { return m_viewBox->currentValue()->isValid() &
& m_viewBox->currentValue()->value().isEmpty(); } |
| 68 | 68 |
| 69 // JS API | 69 // JS API |
| 70 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); } | 70 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); } |
| 71 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() const { return m_prese
rveAspectRatio.get(); } | 71 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() const { return m_prese
rveAspectRatio.get(); } |
| 72 | 72 |
| 73 virtual void trace(Visitor*); | 73 virtual void trace(Visitor*); |
| 74 | 74 |
| 75 protected: | 75 protected: |
| 76 explicit SVGFitToViewBox(SVGElement*, PropertyMapPolicy = PropertyMapPolicyA
dd); | 76 SVGFitToViewBox(); |
| 77 |
| 78 void initialize(SVGElement* contextElement, PropertyMapPolicy = PropertyMapP
olicyAdd); |
| 79 |
| 77 void updateViewBox(const FloatRect&); | 80 void updateViewBox(const FloatRect&); |
| 78 void clearViewBox() { m_viewBox = nullptr; } | 81 void clearViewBox() { m_viewBox = nullptr; } |
| 79 void clearPreserveAspectRatio() { m_preserveAspectRatio = nullptr; } | 82 void clearPreserveAspectRatio() { m_preserveAspectRatio = nullptr; } |
| 80 | 83 |
| 81 private: | 84 private: |
| 82 RefPtrWillBeMember<SVGAnimatedRect> m_viewBox; | 85 RefPtrWillBeMember<SVGAnimatedRect> m_viewBox; |
| 83 RefPtrWillBeMember<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 86 RefPtrWillBeMember<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace blink | 89 } // namespace blink |
| 87 | 90 |
| 88 #endif // SVGFitToViewBox_h | 91 #endif // SVGFitToViewBox_h |
| OLD | NEW |