Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: Source/core/svg/SVGLocatable.cpp

Issue 24469004: Amusingly deprecate the generic version of 'ExceptionState::throwDOMException'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGLengthContext.cpp ('k') | Source/core/svg/SVGMatrix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLengthContext.cpp ('k') | Source/core/svg/SVGMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698