Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: Source/platform/transforms/SkewTransformOperation.h

Issue 328333003: Adding Blink-side 3d Box and Bounds calculations to TransformOperations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing android build Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 canBlendWith(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
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
OLDNEW
« no previous file with comments | « Source/platform/transforms/ScaleTransformOperation.cpp ('k') | Source/platform/transforms/SkewTransformOperation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698