| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 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) 2009 Google, Inc. All rights reserved. | 4 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 return ctm; | 97 return ctm; |
| 98 } | 98 } |
| 99 | 99 |
| 100 AffineTransform SVGLocatable::getTransformToElement(SVGElement* target, Exceptio
nState& es, StyleUpdateStrategy styleUpdateStrategy) | 100 AffineTransform SVGLocatable::getTransformToElement(SVGElement* target, Exceptio
nState& es, StyleUpdateStrategy styleUpdateStrategy) |
| 101 { | 101 { |
| 102 AffineTransform ctm = getCTM(styleUpdateStrategy); | 102 AffineTransform ctm = getCTM(styleUpdateStrategy); |
| 103 | 103 |
| 104 if (target && target->isSVGGraphicsElement()) { | 104 if (target && target->isSVGGraphicsElement()) { |
| 105 AffineTransform targetCTM = toSVGGraphicsElement(target)->getCTM(styleUp
dateStrategy); | 105 AffineTransform targetCTM = toSVGGraphicsElement(target)->getCTM(styleUp
dateStrategy); |
| 106 if (!targetCTM.isInvertible()) { | 106 if (!targetCTM.isInvertible()) { |
| 107 es.throwDOMException(InvalidStateError); | 107 es.throwUninformativeAndGenericDOMException(InvalidStateError); |
| 108 return ctm; | 108 return ctm; |
| 109 } | 109 } |
| 110 ctm = targetCTM.inverse() * ctm; | 110 ctm = targetCTM.inverse() * ctm; |
| 111 } | 111 } |
| 112 | 112 |
| 113 return ctm; | 113 return ctm; |
| 114 } | 114 } |
| 115 | 115 |
| 116 } | 116 } |
| OLD | NEW |