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

Side by Side Diff: third_party/WebKit/Source/platform/transforms/TransformOperation.h

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase Created 4 years 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 Scale3D, 56 Scale3D,
57 TranslateZ, 57 TranslateZ,
58 Translate3D, 58 Translate3D,
59 RotateX, 59 RotateX,
60 RotateY, 60 RotateY,
61 Rotate3D, 61 Rotate3D,
62 Matrix3D, 62 Matrix3D,
63 Perspective, 63 Perspective,
64 Interpolated, 64 Interpolated,
65 Identity, 65 Identity,
66 RotateAroundOrigin,
66 None 67 None
67 }; 68 };
68 69
69 TransformOperation() {} 70 TransformOperation() {}
70 virtual ~TransformOperation() {} 71 virtual ~TransformOperation() {}
71 72
72 virtual bool operator==(const TransformOperation&) const = 0; 73 virtual bool operator==(const TransformOperation&) const = 0;
73 bool operator!=(const TransformOperation& o) const { return !(*this == o); } 74 bool operator!=(const TransformOperation& o) const { return !(*this == o); }
74 75
75 virtual void apply(TransformationMatrix&, 76 virtual void apply(TransformationMatrix&,
(...skipping 23 matching lines...) Expand all
99 }; 100 };
100 101
101 #define DEFINE_TRANSFORM_TYPE_CASTS(thisType) \ 102 #define DEFINE_TRANSFORM_TYPE_CASTS(thisType) \
102 DEFINE_TYPE_CASTS(thisType, TransformOperation, transform, \ 103 DEFINE_TYPE_CASTS(thisType, TransformOperation, transform, \
103 thisType::isMatchingOperationType(transform->type()), \ 104 thisType::isMatchingOperationType(transform->type()), \
104 thisType::isMatchingOperationType(transform.type())) 105 thisType::isMatchingOperationType(transform.type()))
105 106
106 } // namespace blink 107 } // namespace blink
107 108
108 #endif // TransformOperation_h 109 #endif // TransformOperation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698