| 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 24 matching lines...) Expand all Loading... |
| 35 #include "bindings/v8/ScriptWrappable.h" | 35 #include "bindings/v8/ScriptWrappable.h" |
| 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 WebCore { | 39 namespace WebCore { |
| 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 NewSVGPropertyTearOff, as its instances are never t
ied 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 public: | 47 public: |
| 48 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value) | 48 static PassRefPtr<SVGMatrixTearOff> create(const AffineTransform& value) |
| 49 { | 49 { |
| 50 return adoptRef(new SVGMatrixTearOff(value)); | 50 return adoptRef(new SVGMatrixTearOff(value)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target) | 53 static PassRefPtr<SVGMatrixTearOff> create(SVGTransformTearOff* target) |
| 54 { | 54 { |
| 55 return adoptRef(new SVGMatrixTearOff(target)); | 55 return adoptRef(new SVGMatrixTearOff(target)); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 AffineTransform m_staticValue; | 97 AffineTransform m_staticValue; |
| 98 | 98 |
| 99 // FIXME: oilpan: This is raw-ptr to avoid reference cycles. Should be Membe
r in oilpan. | 99 // FIXME: oilpan: This is raw-ptr to avoid reference cycles. Should be Membe
r in oilpan. |
| 100 SVGTransformTearOff* m_contextTransform; | 100 SVGTransformTearOff* m_contextTransform; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace WebCore | 103 } // namespace WebCore |
| 104 | 104 |
| 105 #endif // SVGMatrixTearOff_h_ | 105 #endif // SVGMatrixTearOff_h_ |
| OLD | NEW |