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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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/SVGTransformTearOff.h ('k') | Source/core/svg/SVGURIReference.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/svg/SVGTransformTearOff.h" 32 #include "core/svg/SVGTransformTearOff.h"
33 33
34 #include "bindings/core/v8/ExceptionState.h" 34 #include "bindings/core/v8/ExceptionState.h"
35 #include "core/dom/ExceptionCode.h" 35 #include "core/dom/ExceptionCode.h"
36 #include "core/svg/SVGElement.h"
36 37
37 namespace blink { 38 namespace blink {
38 39
39 SVGTransformTearOff::SVGTransformTearOff(PassRefPtr<SVGTransform> target, SVGEle ment* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedNa me& attributeName) 40 SVGTransformTearOff::SVGTransformTearOff(PassRefPtrWillBeRawPtr<SVGTransform> ta rget, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName)
40 : SVGPropertyTearOff<SVGTransform>(target, contextElement, propertyIsAnimVal , attributeName) 41 : SVGPropertyTearOff<SVGTransform>(target, contextElement, propertyIsAnimVal , attributeName)
41 { 42 {
42 } 43 }
43 44
44 SVGTransformTearOff::~SVGTransformTearOff() 45 SVGTransformTearOff::~SVGTransformTearOff()
45 { 46 {
46 } 47 }
47 48
49 void SVGTransformTearOff::trace(Visitor* visitor)
50 {
51 visitor->trace(m_matrixTearoff);
52 SVGPropertyTearOff<SVGTransform>::trace(visitor);
53 }
54
48 SVGMatrixTearOff* SVGTransformTearOff::matrix() 55 SVGMatrixTearOff* SVGTransformTearOff::matrix()
49 { 56 {
50 if (!m_matrixTearoff) { 57 if (!m_matrixTearoff) {
51 m_matrixTearoff = SVGMatrixTearOff::create(this); 58 m_matrixTearoff = SVGMatrixTearOff::create(this);
52 } 59 }
53 60
54 return m_matrixTearoff.get(); 61 return m_matrixTearoff.get();
55 } 62 }
56 63
57 void SVGTransformTearOff::setMatrix(PassRefPtr<SVGMatrixTearOff> matrix, Excepti onState& exceptionState) 64 void SVGTransformTearOff::setMatrix(PassRefPtrWillBeRawPtr<SVGMatrixTearOff> mat rix, ExceptionState& exceptionState)
58 { 65 {
59 if (isImmutable()) { 66 if (isImmutable()) {
60 exceptionState.throwDOMException(NoModificationAllowedError, "The attrib ute is read-only."); 67 exceptionState.throwDOMException(NoModificationAllowedError, "The attrib ute is read-only.");
61 return; 68 return;
62 } 69 }
63 70
64 target()->setMatrix(matrix->value()); 71 target()->setMatrix(matrix->value());
65 commitChange(); 72 commitChange();
66 } 73 }
67 74
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 if (isImmutable()) { 121 if (isImmutable()) {
115 exceptionState.throwDOMException(NoModificationAllowedError, "The attrib ute is read-only."); 122 exceptionState.throwDOMException(NoModificationAllowedError, "The attrib ute is read-only.");
116 return; 123 return;
117 } 124 }
118 125
119 target()->setSkewY(y); 126 target()->setSkewY(y);
120 commitChange(); 127 commitChange();
121 } 128 }
122 129
123 } 130 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTransformTearOff.h ('k') | Source/core/svg/SVGURIReference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698