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 reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv
ed. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "core/css/Pair.h" | 31 #include "core/css/Pair.h" |
32 #include "core/css/RGBColor.h" | 32 #include "core/css/RGBColor.h" |
33 #include "core/css/Rect.h" | 33 #include "core/css/Rect.h" |
34 #include "core/css/StyleSheetContents.h" | 34 #include "core/css/StyleSheetContents.h" |
35 #include "core/dom/ExceptionCode.h" | 35 #include "core/dom/ExceptionCode.h" |
36 #include "core/dom/Node.h" | 36 #include "core/dom/Node.h" |
37 #include "core/dom/WebCoreMemoryInstrumentation.h" | 37 #include "core/dom/WebCoreMemoryInstrumentation.h" |
38 #include "core/platform/LayoutUnit.h" | 38 #include "core/platform/LayoutUnit.h" |
39 #include "core/platform/graphics/Color.h" | 39 #include "core/platform/graphics/Color.h" |
40 #include "core/rendering/style/RenderStyle.h" | 40 #include "core/rendering/style/RenderStyle.h" |
41 #include <wtf/ASCIICType.h> | 41 #include "wtf/DecimalNumber.h" |
42 #include <wtf/DecimalNumber.h> | 42 #include "wtf/StdLibExtras.h" |
43 #include <wtf/StdLibExtras.h> | 43 #include "wtf/text/StringBuffer.h" |
44 #include <wtf/text/StringBuffer.h> | 44 #include "wtf/text/StringBuilder.h" |
45 #include <wtf/text/StringBuilder.h> | |
46 | 45 |
47 using namespace WTF; | 46 using namespace WTF; |
48 | 47 |
49 namespace WebCore { | 48 namespace WebCore { |
50 | 49 |
51 // Max/min values for CSS, needs to slightly smaller/larger than the true max/mi
n values to allow for rounding without overflowing. | 50 // Max/min values for CSS, needs to slightly smaller/larger than the true max/mi
n values to allow for rounding without overflowing. |
52 // Subtract two (rather than one) to allow for values to be converted to float a
nd back without exceeding the LayoutUnit::max. | 51 // Subtract two (rather than one) to allow for values to be converted to float a
nd back without exceeding the LayoutUnit::max. |
53 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2; | 52 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2; |
54 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2; | 53 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2; |
55 | 54 |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 break; | 1321 break; |
1323 case CSS_CALC: | 1322 case CSS_CALC: |
1324 info.addMember(m_value.calc, "value.calc"); | 1323 info.addMember(m_value.calc, "value.calc"); |
1325 break; | 1324 break; |
1326 default: | 1325 default: |
1327 break; | 1326 break; |
1328 } | 1327 } |
1329 } | 1328 } |
1330 | 1329 |
1331 } // namespace WebCore | 1330 } // namespace WebCore |
OLD | NEW |