 Chromium Code Reviews
 Chromium Code Reviews Issue 1158603003:
  CSS Independent Transform Properties  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master
    
  
    Issue 1158603003:
  CSS Independent Transform Properties  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master| 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 23 matching lines...) Expand all Loading... | |
| 34 static PassRefPtr<RotateTransformOperation> create(double angle, OperationTy pe type) | 34 static PassRefPtr<RotateTransformOperation> create(double angle, OperationTy pe type) | 
| 35 { | 35 { | 
| 36 return adoptRef(new RotateTransformOperation(0, 0, 1, angle, type)); | 36 return adoptRef(new RotateTransformOperation(0, 0, 1, angle, type)); | 
| 37 } | 37 } | 
| 38 | 38 | 
| 39 static PassRefPtr<RotateTransformOperation> create(double x, double y, doubl e z, double angle, OperationType type) | 39 static PassRefPtr<RotateTransformOperation> create(double x, double y, doubl e z, double angle, OperationType type) | 
| 40 { | 40 { | 
| 41 return adoptRef(new RotateTransformOperation(x, y, z, angle, type)); | 41 return adoptRef(new RotateTransformOperation(x, y, z, angle, type)); | 
| 42 } | 42 } | 
| 43 | 43 | 
| 44 static PassRefPtr<RotateTransformOperation> create(PassRefPtr<RotateTransfor mOperation> o) | |
| 
Timothy Loh
2015/06/05 00:56:00
unused?
 
soonm
2015/06/10 04:09:32
Removed
 | |
| 45 { | |
| 46 return adoptRef(new RotateTransformOperation(*o)); | |
| 47 } | |
| 48 | |
| 44 double x() const { return m_x; } | 49 double x() const { return m_x; } | 
| 45 double y() const { return m_y; } | 50 double y() const { return m_y; } | 
| 46 double z() const { return m_z; } | 51 double z() const { return m_z; } | 
| 47 double angle() const { return m_angle; } | 52 double angle() const { return m_angle; } | 
| 48 | 53 | 
| 49 FloatPoint3D axis() const; | 54 FloatPoint3D axis() const; | 
| 50 static bool shareSameAxis(const RotateTransformOperation* fromRotation, cons t RotateTransformOperation* toRotation, FloatPoint3D* axis, double* fromAngle, d ouble* toAngle); | 55 static bool shareSameAxis(const RotateTransformOperation* fromRotation, cons t RotateTransformOperation* toRotation, FloatPoint3D* axis, double* fromAngle, d ouble* toAngle); | 
| 51 | 56 | 
| 52 virtual bool canBlendWith(const TransformOperation& other) const; | 57 virtual bool canBlendWith(const TransformOperation& other) const; | 
| 53 virtual OperationType type() const override { return m_type; } | 58 virtual OperationType type() const override { return m_type; } | 
| (...skipping 17 matching lines...) Expand all Loading... | |
| 71 RotateTransformOperation(double x, double y, double z, double angle, Operati onType type) | 76 RotateTransformOperation(double x, double y, double z, double angle, Operati onType type) | 
| 72 : m_x(x) | 77 : m_x(x) | 
| 73 , m_y(y) | 78 , m_y(y) | 
| 74 , m_z(z) | 79 , m_z(z) | 
| 75 , m_angle(angle) | 80 , m_angle(angle) | 
| 76 , m_type(type) | 81 , m_type(type) | 
| 77 { | 82 { | 
| 78 ASSERT(type == RotateX || type == RotateY || type == RotateZ || type == Rotate3D); | 83 ASSERT(type == RotateX || type == RotateY || type == RotateZ || type == Rotate3D); | 
| 79 } | 84 } | 
| 80 | 85 | 
| 86 RotateTransformOperation(const RotateTransformOperation& o) | |
| 
Timothy Loh
2015/06/05 00:56:00
unused?
 
soonm
2015/06/10 04:09:32
Removed
 | |
| 87 : m_x(o.m_x) | |
| 88 , m_y(o.m_y) | |
| 89 , m_z(o.m_z) | |
| 90 , m_angle(o.m_angle) | |
| 91 , m_type(o.m_type) | |
| 92 { | |
| 93 }; | |
| 94 | |
| 81 double m_x; | 95 double m_x; | 
| 82 double m_y; | 96 double m_y; | 
| 83 double m_z; | 97 double m_z; | 
| 84 double m_angle; | 98 double m_angle; | 
| 85 OperationType m_type; | 99 OperationType m_type; | 
| 86 }; | 100 }; | 
| 87 | 101 | 
| 88 } // namespace blink | 102 } // namespace blink | 
| 89 | 103 | 
| 90 #endif // RotateTransformOperation_h | 104 #endif // RotateTransformOperation_h | 
| OLD | NEW |