| 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 25 matching lines...) Expand all Loading... |
| 36 static PassRefPtr<TranslateTransformOperation> create(const Length& tx, cons
t Length& ty, OperationType type) | 36 static PassRefPtr<TranslateTransformOperation> create(const Length& tx, cons
t Length& ty, OperationType type) |
| 37 { | 37 { |
| 38 return adoptRef(new TranslateTransformOperation(tx, ty, 0, type)); | 38 return adoptRef(new TranslateTransformOperation(tx, ty, 0, type)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 static PassRefPtr<TranslateTransformOperation> create(const Length& tx, cons
t Length& ty, double tz, OperationType type) | 41 static PassRefPtr<TranslateTransformOperation> create(const Length& tx, cons
t Length& ty, double tz, OperationType type) |
| 42 { | 42 { |
| 43 return adoptRef(new TranslateTransformOperation(tx, ty, tz, type)); | 43 return adoptRef(new TranslateTransformOperation(tx, ty, tz, type)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 virtual bool isCompatibleType(const TransformOperation& other) const; |
| 47 |
| 46 double x(const FloatSize& borderBoxSize) const { return floatValueForLength(
m_x, borderBoxSize.width()); } | 48 double x(const FloatSize& borderBoxSize) const { return floatValueForLength(
m_x, borderBoxSize.width()); } |
| 47 double y(const FloatSize& borderBoxSize) const { return floatValueForLength(
m_y, borderBoxSize.height()); } | 49 double y(const FloatSize& borderBoxSize) const { return floatValueForLength(
m_y, borderBoxSize.height()); } |
| 48 | 50 |
| 49 Length x() const { return m_x; } | 51 Length x() const { return m_x; } |
| 50 Length y() const { return m_y; } | 52 Length y() const { return m_y; } |
| 51 double z() const { return m_z; } | 53 double z() const { return m_z; } |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 virtual bool isIdentity() const OVERRIDE { return !floatValueForLength(m_x,
1) && !floatValueForLength(m_y, 1) && !m_z; } | 56 virtual bool isIdentity() const OVERRIDE { return !floatValueForLength(m_x,
1) && !floatValueForLength(m_y, 1) && !m_z; } |
| 55 | 57 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 86 | 88 |
| 87 Length m_x; | 89 Length m_x; |
| 88 Length m_y; | 90 Length m_y; |
| 89 double m_z; | 91 double m_z; |
| 90 OperationType m_type; | 92 OperationType m_type; |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace WebCore | 95 } // namespace WebCore |
| 94 | 96 |
| 95 #endif // TranslateTransformOperation_h | 97 #endif // TranslateTransformOperation_h |
| OLD | NEW |