OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "core/animation/animatable/AnimatableShadow.h" | 49 #include "core/animation/animatable/AnimatableShadow.h" |
50 #include "core/animation/animatable/AnimatableShapeValue.h" | 50 #include "core/animation/animatable/AnimatableShapeValue.h" |
51 #include "core/animation/animatable/AnimatableStrokeDasharrayList.h" | 51 #include "core/animation/animatable/AnimatableStrokeDasharrayList.h" |
52 #include "core/animation/animatable/AnimatableTransform.h" | 52 #include "core/animation/animatable/AnimatableTransform.h" |
53 #include "core/animation/animatable/AnimatableUnknown.h" | 53 #include "core/animation/animatable/AnimatableUnknown.h" |
54 #include "core/animation/animatable/AnimatableVisibility.h" | 54 #include "core/animation/animatable/AnimatableVisibility.h" |
55 #include "core/css/CSSCalculationValue.h" | 55 #include "core/css/CSSCalculationValue.h" |
56 #include "core/css/CSSPrimitiveValue.h" | 56 #include "core/css/CSSPrimitiveValue.h" |
57 #include "core/css/CSSPrimitiveValueMappings.h" | 57 #include "core/css/CSSPrimitiveValueMappings.h" |
58 #include "core/css/CSSPropertyMetadata.h" | 58 #include "core/css/CSSPropertyMetadata.h" |
59 #include "core/layout/style/ComputedStyle.h" | 59 #include "core/style/ComputedStyle.h" |
60 #include "platform/Length.h" | 60 #include "platform/Length.h" |
61 #include "platform/LengthBox.h" | 61 #include "platform/LengthBox.h" |
62 | 62 |
63 namespace blink { | 63 namespace blink { |
64 | 64 |
65 static PassRefPtrWillBeRawPtr<AnimatableValue> createFromLengthWithZoom(const Le
ngth& length, float zoom) | 65 static PassRefPtrWillBeRawPtr<AnimatableValue> createFromLengthWithZoom(const Le
ngth& length, float zoom) |
66 { | 66 { |
67 switch (length.type()) { | 67 switch (length.type()) { |
68 case Fixed: | 68 case Fixed: |
69 case Percent: | 69 case Percent: |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 return createFromLength(style.svgStyle().ry(), style); | 565 return createFromLength(style.svgStyle().ry(), style); |
566 case CSSPropertyZIndex: | 566 case CSSPropertyZIndex: |
567 return createFromDouble(style.zIndex()); | 567 return createFromDouble(style.zIndex()); |
568 default: | 568 default: |
569 ASSERT_NOT_REACHED(); | 569 ASSERT_NOT_REACHED(); |
570 return nullptr; | 570 return nullptr; |
571 } | 571 } |
572 } | 572 } |
573 | 573 |
574 } // namespace blink | 574 } // namespace blink |
OLD | NEW |