1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_OFFSET_ROTATION_H_
6 #define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_OFFSET_ROTATION_H_
7 
8 #include "third_party/blink/renderer/core/style/computed_style_constants.h"
9 
10 namespace blink {
11 
12 struct StyleOffsetRotation {
StyleOffsetRotationStyleOffsetRotation13   StyleOffsetRotation(float angle, OffsetRotationType type)
14       : angle(angle), type(type) {}
15 
16   bool operator==(const StyleOffsetRotation& other) const {
17     return angle == other.angle && type == other.type;
18   }
19   bool operator!=(const StyleOffsetRotation& other) const {
20     return !(*this == other);
21   }
22 
23   float angle;
24   OffsetRotationType type;
25 };
26 
27 }  // namespace blink
28 
29 #endif  // THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_OFFSET_ROTATION_H_
30