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

Side by Side Diff: Source/core/svg/properties/SVGTransformListPropertyTearOff.h

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/SVGMatrix.h ('k') | Source/core/testing/InternalSettings.cpp » ('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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 23 matching lines...) Expand all
34 static PassRefPtr<SVGListPropertyTearOff<SVGTransformList> > create(Animated ListPropertyTearOff* animatedProperty, SVGPropertyRole role, SVGTransformList& v alues, ListWrapperCache& wrappers) 34 static PassRefPtr<SVGListPropertyTearOff<SVGTransformList> > create(Animated ListPropertyTearOff* animatedProperty, SVGPropertyRole role, SVGTransformList& v alues, ListWrapperCache& wrappers)
35 { 35 {
36 ASSERT(animatedProperty); 36 ASSERT(animatedProperty);
37 return adoptRef(new SVGTransformListPropertyTearOff(animatedProperty, ro le, values, wrappers)); 37 return adoptRef(new SVGTransformListPropertyTearOff(animatedProperty, ro le, values, wrappers));
38 } 38 }
39 39
40 PassRefPtr<SVGPropertyTearOff<SVGTransform> > createSVGTransformFromMatrix(S VGPropertyTearOff<SVGMatrix>* matrix, ExceptionCode& ec) 40 PassRefPtr<SVGPropertyTearOff<SVGTransform> > createSVGTransformFromMatrix(S VGPropertyTearOff<SVGMatrix>* matrix, ExceptionCode& ec)
41 { 41 {
42 ASSERT(m_values); 42 ASSERT(m_values);
43 if (!matrix) { 43 if (!matrix) {
44 ec = TYPE_MISMATCH_ERR; 44 ec = TypeMismatchError;
45 return 0; 45 return 0;
46 } 46 }
47 return SVGPropertyTearOff<SVGTransform>::create(m_values->createSVGTrans formFromMatrix(matrix->propertyReference())); 47 return SVGPropertyTearOff<SVGTransform>::create(m_values->createSVGTrans formFromMatrix(matrix->propertyReference()));
48 } 48 }
49 49
50 PassRefPtr<SVGPropertyTearOff<SVGTransform> > consolidate(ExceptionCode& ec) 50 PassRefPtr<SVGPropertyTearOff<SVGTransform> > consolidate(ExceptionCode& ec)
51 { 51 {
52 ASSERT(m_values); 52 ASSERT(m_values);
53 ASSERT(m_wrappers); 53 ASSERT(m_wrappers);
54 if (!canAlterList(ec)) 54 if (!canAlterList(ec))
(...skipping 16 matching lines...) Expand all
71 private: 71 private:
72 SVGTransformListPropertyTearOff(AnimatedListPropertyTearOff* animatedPropert y, SVGPropertyRole role, SVGTransformList& values, ListWrapperCache& wrappers) 72 SVGTransformListPropertyTearOff(AnimatedListPropertyTearOff* animatedPropert y, SVGPropertyRole role, SVGTransformList& values, ListWrapperCache& wrappers)
73 : SVGListPropertyTearOff<SVGTransformList>(animatedProperty, role, value s, wrappers) 73 : SVGListPropertyTearOff<SVGTransformList>(animatedProperty, role, value s, wrappers)
74 { 74 {
75 } 75 }
76 }; 76 };
77 77
78 } 78 }
79 79
80 #endif // SVGListPropertyTearOff_h 80 #endif // SVGListPropertyTearOff_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMatrix.h ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698