| 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 * * Redistributions of source code must retain the above copyright | 4 * * Redistributions of source code must retain the above copyright |
| 5 * notice, this list of conditions and the following disclaimer. | 5 * notice, this list of conditions and the following disclaimer. |
| 6 * * Redistributions in binary form must reproduce the above | 6 * * Redistributions in binary form must reproduce the above |
| 7 * copyright notice, this list of conditions and the following disclaimer | 7 * copyright notice, this list of conditions and the following disclaimer |
| 8 * in the documentation and/or other materials provided with the | 8 * in the documentation and/or other materials provided with the |
| 9 * distribution. | 9 * distribution. |
| 10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 return Length(MinIntrinsic); | 554 return Length(MinIntrinsic); |
| 555 case CSSValueMinContent: | 555 case CSSValueMinContent: |
| 556 case CSSValueWebkitMinContent: | 556 case CSSValueWebkitMinContent: |
| 557 return Length(MinContent); | 557 return Length(MinContent); |
| 558 case CSSValueMaxContent: | 558 case CSSValueMaxContent: |
| 559 case CSSValueWebkitMaxContent: | 559 case CSSValueWebkitMaxContent: |
| 560 return Length(MaxContent); | 560 return Length(MaxContent); |
| 561 case CSSValueWebkitFillAvailable: | 561 case CSSValueWebkitFillAvailable: |
| 562 return Length(FillAvailable); | 562 return Length(FillAvailable); |
| 563 case CSSValueWebkitFitContent: | 563 case CSSValueWebkitFitContent: |
| 564 case CSSValueFitContent: |
| 564 return Length(FitContent); | 565 return Length(FitContent); |
| 565 case CSSValueAuto: | 566 case CSSValueAuto: |
| 566 return Length(Auto); | 567 return Length(Auto); |
| 567 default: | 568 default: |
| 568 ASSERT_NOT_REACHED(); | 569 ASSERT_NOT_REACHED(); |
| 569 return Length(); | 570 return Length(); |
| 570 } | 571 } |
| 571 } | 572 } |
| 572 | 573 |
| 573 Length StyleBuilderConverter::convertLengthMaxSizing(StyleResolverState& state,
CSSValue* value) | 574 Length StyleBuilderConverter::convertLengthMaxSizing(StyleResolverState& state,
CSSValue* value) |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale
3D); | 957 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale
3D); |
| 957 } | 958 } |
| 958 | 959 |
| 959 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style
ResolverState& state, CSSValue* value) | 960 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style
ResolverState& state, CSSValue* value) |
| 960 { | 961 { |
| 961 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 962 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
| 962 return primitiveValue->getValueID() == CSSValueFromImage ? RespectImageOrien
tation : DoNotRespectImageOrientation; | 963 return primitiveValue->getValueID() == CSSValueFromImage ? RespectImageOrien
tation : DoNotRespectImageOrientation; |
| 963 } | 964 } |
| 964 | 965 |
| 965 } // namespace blink | 966 } // namespace blink |
| OLD | NEW |