| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights |
| 4 * reserved. | 4 * reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "core/css/CSSCalculationValue.h" | 24 #include "core/css/CSSCalculationValue.h" |
| 25 #include "core/css/CSSHelper.h" | 25 #include "core/css/CSSHelper.h" |
| 26 #include "core/css/CSSMarkup.h" | 26 #include "core/css/CSSMarkup.h" |
| 27 #include "core/css/CSSToLengthConversionData.h" | 27 #include "core/css/CSSToLengthConversionData.h" |
| 28 #include "core/css/CSSValuePool.h" | 28 #include "core/css/CSSValuePool.h" |
| 29 #include "platform/LayoutUnit.h" | 29 #include "platform/LayoutUnit.h" |
| 30 #include "wtf/SizeAssertions.h" | 30 #include "wtf/SizeAssertions.h" |
| 31 #include "wtf/StdLibExtras.h" | 31 #include "wtf/StdLibExtras.h" |
| 32 | 32 |
| 33 using namespace WTF; | |
| 34 | |
| 35 namespace blink { | 33 namespace blink { |
| 36 | 34 |
| 37 namespace { | 35 namespace { |
| 38 | 36 |
| 39 // Max/min values for CSS, needs to slightly smaller/larger than the true | 37 // Max/min values for CSS, needs to slightly smaller/larger than the true |
| 40 // max/min values to allow for rounding without overflowing. | 38 // max/min values to allow for rounding without overflowing. |
| 41 // Subtract two (rather than one) to allow for values to be converted to float | 39 // Subtract two (rather than one) to allow for values to be converted to float |
| 42 // and back without exceeding the LayoutUnit::max. | 40 // and back without exceeding the LayoutUnit::max. |
| 43 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2; | 41 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2; |
| 44 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2; | 42 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2; |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 case UnitType::Calc: | 706 case UnitType::Calc: |
| 709 visitor->trace(m_value.calc); | 707 visitor->trace(m_value.calc); |
| 710 break; | 708 break; |
| 711 default: | 709 default: |
| 712 break; | 710 break; |
| 713 } | 711 } |
| 714 CSSValue::traceAfterDispatch(visitor); | 712 CSSValue::traceAfterDispatch(visitor); |
| 715 } | 713 } |
| 716 | 714 |
| 717 } // namespace blink | 715 } // namespace blink |
| OLD | NEW |