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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGMatrixTearOff.h

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 years, 7 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
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 26 matching lines...) Expand all
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "platform/transforms/AffineTransform.h" 38 #include "platform/transforms/AffineTransform.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class SVGTransformTearOff; 42 class SVGTransformTearOff;
43 43
44 // SVGMatrixTearOff wraps a AffineTransform for Javascript. 44 // SVGMatrixTearOff wraps a AffineTransform for Javascript.
45 // Its instance can either hold a static value, or this can be teared off from | SVGTransform.matrix|. 45 // Its instance can either hold a static value, or this can be teared off from | SVGTransform.matrix|.
46 // This does not derive from SVGPropertyTearOff, as its instances are never tied to an animated property nor an XML attribute. 46 // This does not derive from SVGPropertyTearOff, as its instances are never tied to an animated property nor an XML attribute.
47 class CORE_EXPORT SVGMatrixTearOff final : public GarbageCollectedFinalized<SVGM atrixTearOff>, public ScriptWrappable { 47 class CORE_EXPORT SVGMatrixTearOff final : public GarbageCollected<SVGMatrixTear Off>, public ScriptWrappable {
48 DEFINE_WRAPPERTYPEINFO(); 48 DEFINE_WRAPPERTYPEINFO();
49 public: 49 public:
50 static SVGMatrixTearOff* create(const AffineTransform& value) 50 static SVGMatrixTearOff* create(const AffineTransform& value)
51 { 51 {
52 return new SVGMatrixTearOff(value); 52 return new SVGMatrixTearOff(value);
53 } 53 }
54 54
55 static SVGMatrixTearOff* create(SVGTransformTearOff* target) 55 static SVGMatrixTearOff* create(SVGTransformTearOff* target)
56 { 56 {
57 return new SVGMatrixTearOff(target); 57 return new SVGMatrixTearOff(target);
58 } 58 }
59 59
60 ~SVGMatrixTearOff();
61
62 double a() { return value().a(); } 60 double a() { return value().a(); }
63 double b() { return value().b(); } 61 double b() { return value().b(); }
64 double c() { return value().c(); } 62 double c() { return value().c(); }
65 double d() { return value().d(); } 63 double d() { return value().d(); }
66 double e() { return value().e(); } 64 double e() { return value().e(); }
67 double f() { return value().f(); } 65 double f() { return value().f(); }
68 66
69 void setA(double, ExceptionState&); 67 void setA(double, ExceptionState&);
70 void setB(double, ExceptionState&); 68 void setB(double, ExceptionState&);
71 void setC(double, ExceptionState&); 69 void setC(double, ExceptionState&);
(...skipping 27 matching lines...) Expand all
99 void commitChange(); 97 void commitChange();
100 98
101 AffineTransform m_staticValue; 99 AffineTransform m_staticValue;
102 100
103 Member<SVGTransformTearOff> m_contextTransform; 101 Member<SVGTransformTearOff> m_contextTransform;
104 }; 102 };
105 103
106 } // namespace blink 104 } // namespace blink
107 105
108 #endif // SVGMatrixTearOff_h 106 #endif // SVGMatrixTearOff_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/PatternAttributes.h ('k') | third_party/WebKit/Source/core/svg/SVGMatrixTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698