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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe
rationType() == m_type; } | 45 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe
rationType() == m_type; } |
46 | 46 |
47 virtual bool operator==(const TransformOperation& o) const | 47 virtual bool operator==(const TransformOperation& o) const |
48 { | 48 { |
49 if (!isSameType(o)) | 49 if (!isSameType(o)) |
50 return false; | 50 return false; |
51 const SkewTransformOperation* s = static_cast<const SkewTransformOperati
on*>(&o); | 51 const SkewTransformOperation* s = static_cast<const SkewTransformOperati
on*>(&o); |
52 return m_angleX == s->m_angleX && m_angleY == s->m_angleY; | 52 return m_angleX == s->m_angleX && m_angleY == s->m_angleY; |
53 } | 53 } |
54 | 54 |
55 virtual bool apply(TransformationMatrix& transform, const FloatSize&) const | 55 virtual bool apply(TransformationMatrix& transform, const FloatSize&, Render
View*) const |
56 { | 56 { |
57 transform.skew(m_angleX, m_angleY); | 57 transform.skew(m_angleX, m_angleY); |
58 return false; | 58 return false; |
59 } | 59 } |
60 | 60 |
61 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false); | 61 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false, RenderView* =0); |
62 | 62 |
63 SkewTransformOperation(double angleX, double angleY, OperationType type) | 63 SkewTransformOperation(double angleX, double angleY, OperationType type) |
64 : m_angleX(angleX) | 64 : m_angleX(angleX) |
65 , m_angleY(angleY) | 65 , m_angleY(angleY) |
66 , m_type(type) | 66 , m_type(type) |
67 { | 67 { |
68 } | 68 } |
69 | 69 |
70 double m_angleX; | 70 double m_angleX; |
71 double m_angleY; | 71 double m_angleY; |
72 OperationType m_type; | 72 OperationType m_type; |
73 }; | 73 }; |
74 | 74 |
75 } // namespace WebCore | 75 } // namespace WebCore |
76 | 76 |
77 #endif // SkewTransformOperation_h | 77 #endif // SkewTransformOperation_h |
OLD | NEW |