| 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 ASSERT(!isZoomedLength(CSSPropertyStrokeWidth)); | 290 ASSERT(!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() != LENGTH) | 294 if (style.verticalAlign() != VerticalAlignLength) |
| 295 return false; | 295 return false; |
| 296 result = style.verticalAlignLength(); | 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; |
| 305 } | 305 } |
| 306 } | 306 } |
| (...skipping 131 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 |