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 #include "core/animation/CSSClipInterpolationType.h" | 5 #include "core/animation/CSSClipInterpolationType.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/animation/LengthInterpolationFunctions.h" | 8 #include "core/animation/LengthInterpolationFunctions.h" |
8 #include "core/css/CSSIdentifierValue.h" | 9 #include "core/css/CSSIdentifierValue.h" |
9 #include "core/css/CSSQuadValue.h" | 10 #include "core/css/CSSQuadValue.h" |
10 #include "core/css/resolver/StyleResolverState.h" | 11 #include "core/css/resolver/StyleResolverState.h" |
11 #include "wtf/PtrUtil.h" | 12 #include "wtf/PtrUtil.h" |
12 #include <memory> | |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 struct ClipAutos { | 16 struct ClipAutos { |
17 ClipAutos() | 17 ClipAutos() |
18 : isAuto(true), | 18 : isAuto(true), |
19 isTopAuto(false), | 19 isTopAuto(false), |
20 isRightAuto(false), | 20 isRightAuto(false), |
21 isBottomAuto(false), | 21 isBottomAuto(false), |
22 isLeftAuto(false) {} | 22 isLeftAuto(false) {} |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 *list.get(index), nullptr, state.cssToLengthConversionData(), | 276 *list.get(index), nullptr, state.cssToLengthConversionData(), |
277 ValueRangeAll); | 277 ValueRangeAll); |
278 }; | 278 }; |
279 state.style()->setClip(LengthBox(convertIndex(autos.isTopAuto, ClipTop), | 279 state.style()->setClip(LengthBox(convertIndex(autos.isTopAuto, ClipTop), |
280 convertIndex(autos.isRightAuto, ClipRight), | 280 convertIndex(autos.isRightAuto, ClipRight), |
281 convertIndex(autos.isBottomAuto, ClipBottom), | 281 convertIndex(autos.isBottomAuto, ClipBottom), |
282 convertIndex(autos.isLeftAuto, ClipLeft))); | 282 convertIndex(autos.isLeftAuto, ClipLeft))); |
283 } | 283 } |
284 | 284 |
285 } // namespace blink | 285 } // namespace blink |
OLD | NEW |