| 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 "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
| 11 #include "wtf/RefPtr.h" | 11 #include "wtf/RefPtr.h" |
| 12 | 12 |
| 13 class SkImageFilter; | 13 class SkImageFilter; |
| 14 class SkMatrix; | 14 class SkMatrix; |
| 15 class SkPicture; | |
| 16 | 15 |
| 17 namespace blink { | 16 namespace blink { |
| 18 | 17 |
| 19 class FloatRect; | 18 class FloatRect; |
| 20 | 19 |
| 21 // A reflection, as created by -webkit-box-reflect. Consists of: | 20 // A reflection, as created by -webkit-box-reflect. Consists of: |
| 22 // * a direction (either vertical or horizontal) | 21 // * a direction (either vertical or horizontal) |
| 23 // * an offset to be applied to the reflection after flipping about the | 22 // * an offset to be applied to the reflection after flipping about the |
| 24 // x- or y-axis, according to the direction | 23 // x- or y-axis, according to the direction |
| 25 // * a mask image, which will be applied to the reflection before the | 24 // * a mask image, which will be applied to the reflection before the |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 64 } |
| 66 | 65 |
| 67 inline bool operator!=(const BoxReflection& a, const BoxReflection& b) | 66 inline bool operator!=(const BoxReflection& a, const BoxReflection& b) |
| 68 { | 67 { |
| 69 return !(a == b); | 68 return !(a == b); |
| 70 } | 69 } |
| 71 | 70 |
| 72 } // namespace blink | 71 } // namespace blink |
| 73 | 72 |
| 74 #endif // BoxReflection_h | 73 #endif // BoxReflection_h |
| OLD | NEW |