OLD | NEW |
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 Loading... |
37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class SVGTransformTearOff; | 41 class SVGTransformTearOff; |
42 | 42 |
43 // SVGMatrixTearOff wraps a AffineTransform for Javascript. | 43 // SVGMatrixTearOff wraps a AffineTransform for Javascript. |
44 // Its instance can either hold a static value, or this can be teared off from |
SVGTransform.matrix|. | 44 // Its instance can either hold a static value, or this can be teared off from |
SVGTransform.matrix|. |
45 // This does not derive from SVGPropertyTearOff, as its instances are never tied
to an animated property nor an XML attribute. | 45 // This does not derive from SVGPropertyTearOff, as its instances are never tied
to an animated property nor an XML attribute. |
46 class SVGMatrixTearOff FINAL : public RefCounted<SVGMatrixTearOff>, public Scrip
tWrappable { | 46 class SVGMatrixTearOff FINAL : public RefCounted<SVGMatrixTearOff>, public Scrip
tWrappable { |
| 47 DEFINE_WRAPPERTYPEINFO(); |
47 public: | 48 public: |
48 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value) | 49 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value) |
49 { | 50 { |
50 return adoptRef(new SVGMatrixTearOff(value)); | 51 return adoptRef(new SVGMatrixTearOff(value)); |
51 } | 52 } |
52 | 53 |
53 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target) | 54 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target) |
54 { | 55 { |
55 return adoptRef(new SVGMatrixTearOff(target)); | 56 return adoptRef(new SVGMatrixTearOff(target)); |
56 } | 57 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void commitChange(); | 96 void commitChange(); |
96 | 97 |
97 AffineTransform m_staticValue; | 98 AffineTransform m_staticValue; |
98 | 99 |
99 // FIXME: oilpan: This is raw-ptr to avoid reference cycles. Should be Membe
r in oilpan. | 100 // FIXME: oilpan: This is raw-ptr to avoid reference cycles. Should be Membe
r in oilpan. |
100 SVGTransformTearOff* m_contextTransform; | 101 SVGTransformTearOff* m_contextTransform; |
101 }; | 102 }; |
102 | 103 |
103 } // namespace blink | 104 } // namespace blink |
104 | 105 |
105 #endif // SVGMatrixTearOff_h_ | 106 #endif // SVGMatrixTearOff_h |
OLD | NEW |