| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "core/style/TextSizeAdjust.h" | 54 #include "core/style/TextSizeAdjust.h" |
| 55 #include "core/svg/SVGURIReference.h" | 55 #include "core/svg/SVGURIReference.h" |
| 56 #include "platform/fonts/FontCache.h" | 56 #include "platform/fonts/FontCache.h" |
| 57 #include "platform/transforms/RotateTransformOperation.h" | 57 #include "platform/transforms/RotateTransformOperation.h" |
| 58 #include "platform/transforms/ScaleTransformOperation.h" | 58 #include "platform/transforms/ScaleTransformOperation.h" |
| 59 #include "platform/transforms/TranslateTransformOperation.h" | 59 #include "platform/transforms/TranslateTransformOperation.h" |
| 60 #include <algorithm> | 60 #include <algorithm> |
| 61 | 61 |
| 62 namespace blink { | 62 namespace blink { |
| 63 | 63 |
| 64 using namespace cssvalue; |
| 65 |
| 64 namespace { | 66 namespace { |
| 65 | 67 |
| 66 static GridLength convertGridTrackBreadth(const StyleResolverState& state, | 68 static GridLength convertGridTrackBreadth(const StyleResolverState& state, |
| 67 const CSSValue& value) { | 69 const CSSValue& value) { |
| 68 // Fractional unit. | 70 // Fractional unit. |
| 69 if (value.isPrimitiveValue() && toCSSPrimitiveValue(value).isFlex()) | 71 if (value.isPrimitiveValue() && toCSSPrimitiveValue(value).isFlex()) |
| 70 return GridLength(toCSSPrimitiveValue(value).getDoubleValue()); | 72 return GridLength(toCSSPrimitiveValue(value).getDoubleValue()); |
| 71 | 73 |
| 72 if (value.isIdentifierValue() && | 74 if (value.isIdentifierValue() && |
| 73 toCSSIdentifierValue(value).getValueID() == CSSValueMinContent) | 75 toCSSIdentifierValue(value).getValueID() == CSSValueMinContent) |
| (...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1402 } | 1404 } |
| 1403 | 1405 |
| 1404 const CSSValue& StyleBuilderConverter::convertRegisteredPropertyValue( | 1406 const CSSValue& StyleBuilderConverter::convertRegisteredPropertyValue( |
| 1405 const StyleResolverState& state, | 1407 const StyleResolverState& state, |
| 1406 const CSSValue& value) { | 1408 const CSSValue& value) { |
| 1407 return computeRegisteredPropertyValue(state.cssToLengthConversionData(), | 1409 return computeRegisteredPropertyValue(state.cssToLengthConversionData(), |
| 1408 value); | 1410 value); |
| 1409 } | 1411 } |
| 1410 | 1412 |
| 1411 } // namespace blink | 1413 } // namespace blink |
| OLD | NEW |