| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 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 Google, Inc. | 4 * Copyright (C) 2014 Google, Inc. |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 PassRefPtr<SVGRectTearOff> viewport() const; | 61 PassRefPtr<SVGRectTearOff> viewport() const; |
| 62 | 62 |
| 63 float pixelUnitToMillimeterX() const; | 63 float pixelUnitToMillimeterX() const; |
| 64 float pixelUnitToMillimeterY() const; | 64 float pixelUnitToMillimeterY() const; |
| 65 float screenPixelToMillimeterX() const; | 65 float screenPixelToMillimeterX() const; |
| 66 float screenPixelToMillimeterY() const; | 66 float screenPixelToMillimeterY() const; |
| 67 | 67 |
| 68 bool useCurrentView() const { return m_useCurrentView; } | 68 bool useCurrentView() const { return m_useCurrentView; } |
| 69 SVGViewSpec* currentView(); | 69 SVGViewSpec* currentView(); |
| 70 | 70 |
| 71 enum ConsiderCSSMode { | 71 Length intrinsicWidth() const; |
| 72 RespectCSSProperties, | 72 Length intrinsicHeight() const; |
| 73 IgnoreCSSProperties | |
| 74 }; | |
| 75 | |
| 76 // RenderSVGRoot wants to query the intrinsic size, by only examining the wi
dth/height attributes. | |
| 77 Length intrinsicWidth(ConsiderCSSMode = RespectCSSProperties) const; | |
| 78 Length intrinsicHeight(ConsiderCSSMode = RespectCSSProperties) const; | |
| 79 FloatSize currentViewportSize() const; | 73 FloatSize currentViewportSize() const; |
| 80 FloatRect currentViewBoxRect() const; | 74 FloatRect currentViewBoxRect() const; |
| 81 | 75 |
| 82 float currentScale() const; | 76 float currentScale() const; |
| 83 void setCurrentScale(float scale); | 77 void setCurrentScale(float scale); |
| 84 | 78 |
| 85 FloatPoint currentTranslate() { return m_translation->value(); } | 79 FloatPoint currentTranslate() { return m_translation->value(); } |
| 86 void setCurrentTranslate(const FloatPoint&); | 80 void setCurrentTranslate(const FloatPoint&); |
| 87 PassRefPtr<SVGPointTearOff> currentTranslateFromJavascript(); | 81 PassRefPtr<SVGPointTearOff> currentTranslateFromJavascript(); |
| 88 | 82 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 115 static PassRefPtr<SVGRectTearOff> createSVGRect(); | 109 static PassRefPtr<SVGRectTearOff> createSVGRect(); |
| 116 static PassRefPtr<SVGTransformTearOff> createSVGTransform(); | 110 static PassRefPtr<SVGTransformTearOff> createSVGTransform(); |
| 117 static PassRefPtr<SVGTransformTearOff> createSVGTransformFromMatrix(PassRefP
tr<SVGMatrixTearOff>); | 111 static PassRefPtr<SVGTransformTearOff> createSVGTransformFromMatrix(PassRefP
tr<SVGMatrixTearOff>); |
| 118 | 112 |
| 119 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co
nst; | 113 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co
nst; |
| 120 | 114 |
| 121 void setupInitialView(const String& fragmentIdentifier, Element* anchorNode)
; | 115 void setupInitialView(const String& fragmentIdentifier, Element* anchorNode)
; |
| 122 | 116 |
| 123 Element* getElementById(const AtomicString&) const; | 117 Element* getElementById(const AtomicString&) const; |
| 124 | 118 |
| 125 bool widthAttributeEstablishesViewport() const; | 119 bool hasIntrinsicWidth() const; |
| 126 bool heightAttributeEstablishesViewport() const; | 120 bool hasIntrinsicHeight() const; |
| 127 | 121 |
| 128 SVGAnimatedLength* x() const { return m_x.get(); } | 122 SVGAnimatedLength* x() const { return m_x.get(); } |
| 129 SVGAnimatedLength* y() const { return m_y.get(); } | 123 SVGAnimatedLength* y() const { return m_y.get(); } |
| 130 SVGAnimatedLength* width() const { return m_width.get(); } | 124 SVGAnimatedLength* width() const { return m_width.get(); } |
| 131 SVGAnimatedLength* height() const { return m_height.get(); } | 125 SVGAnimatedLength* height() const { return m_height.get(); } |
| 132 | 126 |
| 133 private: | 127 private: |
| 134 explicit SVGSVGElement(Document&); | 128 explicit SVGSVGElement(Document&); |
| 135 virtual ~SVGSVGElement(); | 129 virtual ~SVGSVGElement(); |
| 136 | 130 |
| 137 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 131 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 132 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 133 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 138 | 134 |
| 139 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 135 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; |
| 140 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 136 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
| 141 | 137 |
| 142 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 138 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 143 virtual void removedFrom(ContainerNode*) OVERRIDE; | 139 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 144 | 140 |
| 145 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 141 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 146 | 142 |
| 147 virtual bool selfHasRelativeLengths() const OVERRIDE; | 143 virtual bool selfHasRelativeLengths() const OVERRIDE; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 169 RefPtr<SMILTimeContainer> m_timeContainer; | 165 RefPtr<SMILTimeContainer> m_timeContainer; |
| 170 RefPtr<SVGPoint> m_translation; | 166 RefPtr<SVGPoint> m_translation; |
| 171 RefPtr<SVGViewSpec> m_viewSpec; | 167 RefPtr<SVGViewSpec> m_viewSpec; |
| 172 | 168 |
| 173 friend class SVGCurrentTranslateTearOff; | 169 friend class SVGCurrentTranslateTearOff; |
| 174 }; | 170 }; |
| 175 | 171 |
| 176 } // namespace WebCore | 172 } // namespace WebCore |
| 177 | 173 |
| 178 #endif | 174 #endif |
| OLD | NEW |