| 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 ImageSlicePropertyFunctions_h | 5 #ifndef ImageSlicePropertyFunctions_h |
| 6 #define ImageSlicePropertyFunctions_h | 6 #define ImageSlicePropertyFunctions_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/style/ComputedStyle.h" | 9 #include "core/style/ComputedStyle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 // This struct doesn't retain ownership of the slices, treat it like a reference
. | 13 // This struct doesn't retain ownership of the slices, treat it like a |
| 14 // reference. |
| 14 struct ImageSlice { | 15 struct ImageSlice { |
| 15 ImageSlice(const LengthBox& slices, bool fill) : slices(slices), fill(fill) {} | 16 ImageSlice(const LengthBox& slices, bool fill) : slices(slices), fill(fill) {} |
| 16 | 17 |
| 17 const LengthBox& slices; | 18 const LengthBox& slices; |
| 18 bool fill; | 19 bool fill; |
| 19 }; | 20 }; |
| 20 | 21 |
| 21 class ImageSlicePropertyFunctions { | 22 class ImageSlicePropertyFunctions { |
| 22 public: | 23 public: |
| 23 static ImageSlice getInitialImageSlice(CSSPropertyID property) { | 24 static ImageSlice getInitialImageSlice(CSSPropertyID property) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 break; | 54 break; |
| 54 default: | 55 default: |
| 55 NOTREACHED(); | 56 NOTREACHED(); |
| 56 } | 57 } |
| 57 } | 58 } |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace blink | 61 } // namespace blink |
| 61 | 62 |
| 62 #endif // ImageSlicePropertyFunctions_h | 63 #endif // ImageSlicePropertyFunctions_h |
| OLD | NEW |