| 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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 AffineTransform SVGGraphicsElement::getCTM(StyleUpdateStrategy styleUpdateStrate
gy) | 93 AffineTransform SVGGraphicsElement::getCTM(StyleUpdateStrategy styleUpdateStrate
gy) |
| 94 { | 94 { |
| 95 return computeCTM(NearestViewportScope, styleUpdateStrategy); | 95 return computeCTM(NearestViewportScope, styleUpdateStrategy); |
| 96 } | 96 } |
| 97 | 97 |
| 98 AffineTransform SVGGraphicsElement::getScreenCTM(StyleUpdateStrategy styleUpdate
Strategy) | 98 AffineTransform SVGGraphicsElement::getScreenCTM(StyleUpdateStrategy styleUpdate
Strategy) |
| 99 { | 99 { |
| 100 return computeCTM(ScreenScope, styleUpdateStrategy); | 100 return computeCTM(ScreenScope, styleUpdateStrategy); |
| 101 } | 101 } |
| 102 | 102 |
| 103 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGGraphicsElement::getCTMFromJavascrip
t() | 103 RawPtr<SVGMatrixTearOff> SVGGraphicsElement::getCTMFromJavascript() |
| 104 { | 104 { |
| 105 return SVGMatrixTearOff::create(getCTM()); | 105 return SVGMatrixTearOff::create(getCTM()); |
| 106 } | 106 } |
| 107 | 107 |
| 108 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGGraphicsElement::getScreenCTMFromJav
ascript() | 108 RawPtr<SVGMatrixTearOff> SVGGraphicsElement::getScreenCTMFromJavascript() |
| 109 { | 109 { |
| 110 return SVGMatrixTearOff::create(getScreenCTM()); | 110 return SVGMatrixTearOff::create(getScreenCTM()); |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool SVGGraphicsElement::hasAnimatedLocalTransform() const | 113 bool SVGGraphicsElement::hasAnimatedLocalTransform() const |
| 114 { | 114 { |
| 115 const ComputedStyle* style = layoutObject() ? layoutObject()->style() : null
ptr; | 115 const ComputedStyle* style = layoutObject() ? layoutObject()->style() : null
ptr; |
| 116 | 116 |
| 117 // Each of these is used in SVGGraphicsElement::calculateAnimatedLocalTransf
orm to create an animated local transform. | 117 // Each of these is used in SVGGraphicsElement::calculateAnimatedLocalTransf
orm to create an animated local transform. |
| 118 return (style && style->hasTransform()) || !m_transform->currentValue()->isE
mpty() || hasSVGRareData(); | 118 return (style && style->hasTransform()) || !m_transform->currentValue()->isE
mpty() || hasSVGRareData(); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 { | 215 { |
| 216 document().updateLayoutIgnorePendingStylesheets(); | 216 document().updateLayoutIgnorePendingStylesheets(); |
| 217 | 217 |
| 218 // FIXME: Eventually we should support getBBox for detached elements. | 218 // FIXME: Eventually we should support getBBox for detached elements. |
| 219 if (!layoutObject()) | 219 if (!layoutObject()) |
| 220 return FloatRect(); | 220 return FloatRect(); |
| 221 | 221 |
| 222 return layoutObject()->objectBoundingBox(); | 222 return layoutObject()->objectBoundingBox(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 PassRefPtrWillBeRawPtr<SVGRectTearOff> SVGGraphicsElement::getBBoxFromJavascript
() | 225 RawPtr<SVGRectTearOff> SVGGraphicsElement::getBBoxFromJavascript() |
| 226 { | 226 { |
| 227 return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, PropertyIsNotAn
imVal); | 227 return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, PropertyIsNotAn
imVal); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace blink | 230 } // namespace blink |
| OLD | NEW |