| 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 25 matching lines...) Expand all Loading... |
| 36 #include "platform/transforms/AffineTransform.h" | 36 #include "platform/transforms/AffineTransform.h" |
| 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 DEFINE_WRAPPERTYPEINFO(); |
| 48 public: | 48 public: |
| 49 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value) | 49 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value) |
| 50 { | 50 { |
| 51 return adoptRef(new SVGMatrixTearOff(value)); | 51 return adoptRef(new SVGMatrixTearOff(value)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target) | 54 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target) |
| 55 { | 55 { |
| 56 return adoptRef(new SVGMatrixTearOff(target)); | 56 return adoptRef(new SVGMatrixTearOff(target)); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 AffineTransform m_staticValue; | 98 AffineTransform m_staticValue; |
| 99 | 99 |
| 100 // 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. |
| 101 SVGTransformTearOff* m_contextTransform; | 101 SVGTransformTearOff* m_contextTransform; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace blink | 104 } // namespace blink |
| 105 | 105 |
| 106 #endif // SVGMatrixTearOff_h | 106 #endif // SVGMatrixTearOff_h |
| OLD | NEW |