| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class PLATFORM_EXPORT SkewTransformOperation : public TransformOperation { | 32 class PLATFORM_EXPORT SkewTransformOperation : public TransformOperation { |
| 33 public: | 33 public: |
| 34 static PassRefPtr<SkewTransformOperation> create(double angleX, double angle
Y, OperationType type) | 34 static PassRefPtr<SkewTransformOperation> create(double angleX, double angle
Y, OperationType type) |
| 35 { | 35 { |
| 36 return adoptRef(new SkewTransformOperation(angleX, angleY, type)); | 36 return adoptRef(new SkewTransformOperation(angleX, angleY, type)); |
| 37 } | 37 } |
| 38 | 38 |
| 39 double angleX() const { return m_angleX; } | 39 double angleX() const { return m_angleX; } |
| 40 double angleY() const { return m_angleY; } | 40 double angleY() const { return m_angleY; } |
| 41 | 41 |
| 42 virtual bool isCompatibleType(const TransformOperation& other) const; |
| 42 private: | 43 private: |
| 43 virtual bool isIdentity() const OVERRIDE { return !m_angleX && !m_angleY; } | 44 virtual bool isIdentity() const OVERRIDE { return !m_angleX && !m_angleY; } |
| 44 virtual OperationType type() const OVERRIDE { return m_type; } | 45 virtual OperationType type() const OVERRIDE { return m_type; } |
| 45 | 46 |
| 46 virtual bool operator==(const TransformOperation& o) const OVERRIDE | 47 virtual bool operator==(const TransformOperation& o) const OVERRIDE |
| 47 { | 48 { |
| 48 if (!isSameType(o)) | 49 if (!isSameType(o)) |
| 49 return false; | 50 return false; |
| 50 const SkewTransformOperation* s = static_cast<const SkewTransformOperati
on*>(&o); | 51 const SkewTransformOperation* s = static_cast<const SkewTransformOperati
on*>(&o); |
| 51 return m_angleX == s->m_angleX && m_angleY == s->m_angleY; | 52 return m_angleX == s->m_angleX && m_angleY == s->m_angleY; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 66 } | 67 } |
| 67 | 68 |
| 68 double m_angleX; | 69 double m_angleX; |
| 69 double m_angleY; | 70 double m_angleY; |
| 70 OperationType m_type; | 71 OperationType m_type; |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace WebCore | 74 } // namespace WebCore |
| 74 | 75 |
| 75 #endif // SkewTransformOperation_h | 76 #endif // SkewTransformOperation_h |
| OLD | NEW |