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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 case CSSPropertyPerspective: | 284 case CSSPropertyPerspective: |
285 if (!style.hasPerspective()) | 285 if (!style.hasPerspective()) |
286 return false; | 286 return false; |
287 result = Length(style.perspective(), Fixed); | 287 result = Length(style.perspective(), Fixed); |
288 return true; | 288 return true; |
289 case CSSPropertyStrokeWidth: | 289 case CSSPropertyStrokeWidth: |
290 DCHECK(!isZoomedLength(CSSPropertyStrokeWidth)); | 290 DCHECK(!isZoomedLength(CSSPropertyStrokeWidth)); |
291 result = style.strokeWidth().length(); | 291 result = style.strokeWidth().length(); |
292 return true; | 292 return true; |
293 case CSSPropertyVerticalAlign: | 293 case CSSPropertyVerticalAlign: |
294 if (style.verticalAlign() != VerticalAlignLength) | 294 if (style.verticalAlign() != EVerticalAlign::Length) |
295 return false; | 295 return false; |
296 result = style.getVerticalAlignLength(); | 296 result = style.getVerticalAlignLength(); |
297 return true; | 297 return true; |
298 case CSSPropertyColumnWidth: | 298 case CSSPropertyColumnWidth: |
299 if (style.hasAutoColumnWidth()) | 299 if (style.hasAutoColumnWidth()) |
300 return false; | 300 return false; |
301 result = Length(style.columnWidth(), Fixed); | 301 result = Length(style.columnWidth(), Fixed); |
302 return true; | 302 return true; |
303 default: | 303 default: |
304 return false; | 304 return false; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 case CSSPropertyWebkitTransformOriginZ: | 440 case CSSPropertyWebkitTransformOriginZ: |
441 case CSSPropertyWordSpacing: | 441 case CSSPropertyWordSpacing: |
442 return false; | 442 return false; |
443 | 443 |
444 default: | 444 default: |
445 return false; | 445 return false; |
446 } | 446 } |
447 } | 447 } |
448 | 448 |
449 } // namespace blink | 449 } // namespace blink |
OLD | NEW |