| 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 BackgroundBleedAvoidance_h | 5 #ifndef BackgroundBleedAvoidance_h |
| 6 #define BackgroundBleedAvoidance_h | 6 #define BackgroundBleedAvoidance_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 enum BackgroundBleedAvoidance { | 10 enum BackgroundBleedAvoidance { |
| 11 kBackgroundBleedNone, | 11 kBackgroundBleedNone, |
| 12 kBackgroundBleedShrinkBackground, | 12 kBackgroundBleedShrinkBackground, |
| 13 kBackgroundBleedClipOnly, | 13 kBackgroundBleedClipOnly, |
| 14 kBackgroundBleedClipLayer, | 14 kBackgroundBleedClipLayer, |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 inline bool BleedAvoidanceIsClipping(BackgroundBleedAvoidance bleed_avoidance) { |
| 18 return bleed_avoidance == kBackgroundBleedClipOnly || |
| 19 bleed_avoidance == kBackgroundBleedClipLayer; |
| 20 } |
| 21 |
| 17 } // namespace blink | 22 } // namespace blink |
| 18 | 23 |
| 19 #endif // BackgroundBleedAvoidance_h | 24 #endif // BackgroundBleedAvoidance_h |
| OLD | NEW |