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

Side by Side Diff: Source/platform/transforms/IdentityTransformOperation.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
« no previous file with comments | « no previous file | Source/platform/transforms/InterpolatedTransformOperation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 { 35 {
36 return adoptRef(new IdentityTransformOperation()); 36 return adoptRef(new IdentityTransformOperation());
37 } 37 }
38 38
39 virtual bool canBlendWith(const TransformOperation& other) const 39 virtual bool canBlendWith(const TransformOperation& other) const
40 { 40 {
41 return isSameType(other); 41 return isSameType(other);
42 } 42 }
43 43
44 private: 44 private:
45 virtual bool isIdentity() const OVERRIDE FINAL { return true; }
46 virtual OperationType type() const OVERRIDE { return Identity; } 45 virtual OperationType type() const OVERRIDE { return Identity; }
47 46
48 virtual bool operator==(const TransformOperation& o) const OVERRIDE 47 virtual bool operator==(const TransformOperation& o) const OVERRIDE
49 { 48 {
50 return isSameType(o); 49 return isSameType(o);
51 } 50 }
52 51
53 virtual void apply(TransformationMatrix&, const FloatSize&) const OVERRIDE { } 52 virtual void apply(TransformationMatrix&, const FloatSize&) const OVERRIDE { }
54 53
55 virtual PassRefPtr<TransformOperation> blend(const TransformOperation*, doub le, bool = false) OVERRIDE 54 virtual PassRefPtr<TransformOperation> blend(const TransformOperation*, doub le, bool = false) OVERRIDE
56 { 55 {
57 return this; 56 return this;
58 } 57 }
59 58
60 IdentityTransformOperation() 59 IdentityTransformOperation()
61 { 60 {
62 } 61 }
63 62
64 }; 63 };
65 64
66 } // namespace blink 65 } // namespace blink
67 66
68 #endif // IdentityTransformOperation_h 67 #endif // IdentityTransformOperation_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/transforms/InterpolatedTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698