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

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

Powered by Google App Engine
This is Rietveld 408576698