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

Side by Side Diff: Source/platform/transforms/TransformOperation.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 Perspective, 50 Perspective,
51 Interpolated, 51 Interpolated,
52 Identity, None 52 Identity, None
53 }; 53 };
54 54
55 virtual ~TransformOperation() { } 55 virtual ~TransformOperation() { }
56 56
57 virtual bool operator==(const TransformOperation&) const = 0; 57 virtual bool operator==(const TransformOperation&) const = 0;
58 bool operator!=(const TransformOperation& o) const { return !(*this == o); } 58 bool operator!=(const TransformOperation& o) const { return !(*this == o); }
59 59
60 virtual bool isIdentity() const = 0;
61
62 virtual void apply(TransformationMatrix&, const FloatSize& borderBoxSize) co nst = 0; 60 virtual void apply(TransformationMatrix&, const FloatSize& borderBoxSize) co nst = 0;
63 61
64 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) = 0; 62 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) = 0;
65 63
66 virtual OperationType type() const = 0; 64 virtual OperationType type() const = 0;
67 bool isSameType(const TransformOperation& other) const { return other.type() == type(); } 65 bool isSameType(const TransformOperation& other) const { return other.type() == type(); }
68 virtual bool canBlendWith(const TransformOperation& other) const = 0; 66 virtual bool canBlendWith(const TransformOperation& other) const = 0;
69 67
70 bool is3DOperation() const 68 bool is3DOperation() const
71 { 69 {
72 OperationType opType = type(); 70 OperationType opType = type();
73 return opType == ScaleZ 71 return opType == ScaleZ
74 || opType == Scale3D 72 || opType == Scale3D
75 || opType == TranslateZ 73 || opType == TranslateZ
76 || opType == Translate3D 74 || opType == Translate3D
77 || opType == RotateX 75 || opType == RotateX
78 || opType == RotateY 76 || opType == RotateY
79 || opType == Rotate3D 77 || opType == Rotate3D
80 || opType == Matrix3D 78 || opType == Matrix3D
81 || opType == Perspective 79 || opType == Perspective
82 || opType == Interpolated; 80 || opType == Interpolated;
83 } 81 }
84 82
85 virtual bool dependsOnBoxSize() const { return false; } 83 virtual bool dependsOnBoxSize() const { return false; }
86 }; 84 };
87 85
88 } // namespace blink 86 } // namespace blink
89 87
90 #endif // TransformOperation_h 88 #endif // TransformOperation_h
OLDNEW
« no previous file with comments | « Source/platform/transforms/SkewTransformOperation.h ('k') | Source/platform/transforms/TranslateTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698