OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/LengthPropertyFunctions.h" | 5 #include "core/animation/LengthPropertyFunctions.h" |
6 | 6 |
7 #include "core/style/ComputedStyle.h" | 7 #include "core/style/ComputedStyle.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 return true; | 162 return true; |
163 case CSSPropertyMaxWidth: | 163 case CSSPropertyMaxWidth: |
164 result = style.maxWidth(); | 164 result = style.maxWidth(); |
165 return true; | 165 return true; |
166 case CSSPropertyMinHeight: | 166 case CSSPropertyMinHeight: |
167 result = style.minHeight(); | 167 result = style.minHeight(); |
168 return true; | 168 return true; |
169 case CSSPropertyMinWidth: | 169 case CSSPropertyMinWidth: |
170 result = style.minWidth(); | 170 result = style.minWidth(); |
171 return true; | 171 return true; |
172 case CSSPropertyMotionOffset: | 172 case CSSPropertyOffsetDistance: |
173 result = style.motionOffset(); | 173 result = style.offsetDistance(); |
174 return true; | 174 return true; |
175 case CSSPropertyPaddingBottom: | 175 case CSSPropertyPaddingBottom: |
176 result = style.paddingBottom(); | 176 result = style.paddingBottom(); |
177 return true; | 177 return true; |
178 case CSSPropertyPaddingLeft: | 178 case CSSPropertyPaddingLeft: |
179 result = style.paddingLeft(); | 179 result = style.paddingLeft(); |
180 return true; | 180 return true; |
181 case CSSPropertyPaddingRight: | 181 case CSSPropertyPaddingRight: |
182 result = style.paddingRight(); | 182 result = style.paddingRight(); |
183 return true; | 183 return true; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 return true; | 347 return true; |
348 case CSSPropertyMaxWidth: | 348 case CSSPropertyMaxWidth: |
349 style.setMaxWidth(value); | 349 style.setMaxWidth(value); |
350 return true; | 350 return true; |
351 case CSSPropertyMinHeight: | 351 case CSSPropertyMinHeight: |
352 style.setMinHeight(value); | 352 style.setMinHeight(value); |
353 return true; | 353 return true; |
354 case CSSPropertyMinWidth: | 354 case CSSPropertyMinWidth: |
355 style.setMinWidth(value); | 355 style.setMinWidth(value); |
356 return true; | 356 return true; |
357 case CSSPropertyMotionOffset: | 357 case CSSPropertyOffsetDistance: |
358 style.setMotionOffset(value); | 358 style.setOffsetDistance(value); |
359 return true; | 359 return true; |
360 case CSSPropertyPaddingBottom: | 360 case CSSPropertyPaddingBottom: |
361 style.setPaddingBottom(value); | 361 style.setPaddingBottom(value); |
362 return true; | 362 return true; |
363 case CSSPropertyPaddingLeft: | 363 case CSSPropertyPaddingLeft: |
364 style.setPaddingLeft(value); | 364 style.setPaddingLeft(value); |
365 return true; | 365 return true; |
366 case CSSPropertyPaddingRight: | 366 case CSSPropertyPaddingRight: |
367 style.setPaddingRight(value); | 367 style.setPaddingRight(value); |
368 return true; | 368 return true; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 case CSSPropertyWebkitTransformOriginZ: | 438 case CSSPropertyWebkitTransformOriginZ: |
439 case CSSPropertyWordSpacing: | 439 case CSSPropertyWordSpacing: |
440 return false; | 440 return false; |
441 | 441 |
442 default: | 442 default: |
443 return false; | 443 return false; |
444 } | 444 } |
445 } | 445 } |
446 | 446 |
447 } // namespace blink | 447 } // namespace blink |
OLD | NEW |