OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BoxReflection_h | 5 #ifndef BoxReflection_h |
6 #define BoxReflection_h | 6 #define BoxReflection_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "third_party/skia/include/core/SkPicture.h" | 9 #include "third_party/skia/include/core/SkPicture.h" |
10 #include "third_party/skia/include/core/SkRefCnt.h" | 10 #include "third_party/skia/include/core/SkRefCnt.h" |
11 | 11 |
12 class SkImageFilter; | |
13 class SkMatrix; | 12 class SkMatrix; |
14 | 13 |
15 namespace blink { | 14 namespace blink { |
16 | 15 |
17 class FloatRect; | 16 class FloatRect; |
18 | 17 |
19 // A reflection, as created by -webkit-box-reflect. Consists of: | 18 // A reflection, as created by -webkit-box-reflect. Consists of: |
20 // * a direction (either vertical or horizontal) | 19 // * a direction (either vertical or horizontal) |
21 // * an offset to be applied to the reflection after flipping about the | 20 // * an offset to be applied to the reflection after flipping about the |
22 // x- or y-axis, according to the direction | 21 // x- or y-axis, according to the direction |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 a.mask() == b.mask(); | 61 a.mask() == b.mask(); |
63 } | 62 } |
64 | 63 |
65 inline bool operator!=(const BoxReflection& a, const BoxReflection& b) { | 64 inline bool operator!=(const BoxReflection& a, const BoxReflection& b) { |
66 return !(a == b); | 65 return !(a == b); |
67 } | 66 } |
68 | 67 |
69 } // namespace blink | 68 } // namespace blink |
70 | 69 |
71 #endif // BoxReflection_h | 70 #endif // BoxReflection_h |
OLD | NEW |