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

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

Issue 551183003: Remove unused TransformOperation::isIdentity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 23 matching lines...) Expand all
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 virtual bool canBlendWith(const TransformOperation& other) const;
43 private: 43 private:
44 virtual bool isIdentity() const OVERRIDE { return !m_angleX && !m_angleY; }
45 virtual OperationType type() const OVERRIDE { return m_type; } 44 virtual OperationType type() const OVERRIDE { return m_type; }
46 45
47 virtual bool operator==(const TransformOperation& o) const OVERRIDE 46 virtual bool operator==(const TransformOperation& o) const OVERRIDE
48 { 47 {
49 if (!isSameType(o)) 48 if (!isSameType(o))
50 return false; 49 return false;
51 const SkewTransformOperation* s = static_cast<const SkewTransformOperati on*>(&o); 50 const SkewTransformOperation* s = static_cast<const SkewTransformOperati on*>(&o);
52 return m_angleX == s->m_angleX && m_angleY == s->m_angleY; 51 return m_angleX == s->m_angleX && m_angleY == s->m_angleY;
53 } 52 }
54 53
(...skipping 12 matching lines...) Expand all
67 } 66 }
68 67
69 double m_angleX; 68 double m_angleX;
70 double m_angleY; 69 double m_angleY;
71 OperationType m_type; 70 OperationType m_type;
72 }; 71 };
73 72
74 } // namespace blink 73 } // namespace blink
75 74
76 #endif // SkewTransformOperation_h 75 #endif // SkewTransformOperation_h
OLDNEW
« no previous file with comments | « Source/platform/transforms/ScaleTransformOperation.h ('k') | Source/platform/transforms/TransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698