| 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 "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "platform/transforms/AffineTransform.h" | 37 #include "platform/transforms/AffineTransform.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class ExceptionState; | 41 class ExceptionState; |
| 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 |
| 46 // This does not derive from SVGPropertyTearOff, as its instances are never tied
to an animated property nor an XML attribute. | 46 // |SVGTransform.matrix|. This does not derive from SVGPropertyTearOff, as its |
| 47 // instances are never tied to an animated property nor an XML attribute. |
| 47 class CORE_EXPORT SVGMatrixTearOff final | 48 class CORE_EXPORT SVGMatrixTearOff final |
| 48 : public GarbageCollected<SVGMatrixTearOff>, | 49 : public GarbageCollected<SVGMatrixTearOff>, |
| 49 public ScriptWrappable { | 50 public ScriptWrappable { |
| 50 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
| 51 | 52 |
| 52 public: | 53 public: |
| 53 static SVGMatrixTearOff* create(const AffineTransform& value) { | 54 static SVGMatrixTearOff* create(const AffineTransform& value) { |
| 54 return new SVGMatrixTearOff(value); | 55 return new SVGMatrixTearOff(value); |
| 55 } | 56 } |
| 56 | 57 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void commitChange(); | 101 void commitChange(); |
| 101 | 102 |
| 102 AffineTransform m_staticValue; | 103 AffineTransform m_staticValue; |
| 103 | 104 |
| 104 Member<SVGTransformTearOff> m_contextTransform; | 105 Member<SVGTransformTearOff> m_contextTransform; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace blink | 108 } // namespace blink |
| 108 | 109 |
| 109 #endif // SVGMatrixTearOff_h | 110 #endif // SVGMatrixTearOff_h |
| OLD | NEW |