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 19 matching lines...) Expand all Loading... |
30 #include "core/css/Counter.h" | 30 #include "core/css/Counter.h" |
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/rendering/style/RenderStyle.h" | 37 #include "core/rendering/style/RenderStyle.h" |
38 #include "platform/Decimal.h" | 38 #include "platform/Decimal.h" |
39 #include "platform/LayoutUnit.h" | 39 #include "platform/LayoutUnit.h" |
| 40 #include "platform/fonts/FontMetrics.h" |
40 #include "wtf/StdLibExtras.h" | 41 #include "wtf/StdLibExtras.h" |
41 #include "wtf/text/StringBuffer.h" | 42 #include "wtf/text/StringBuffer.h" |
42 #include "wtf/text/StringBuilder.h" | 43 #include "wtf/text/StringBuilder.h" |
43 | 44 |
44 using namespace WTF; | 45 using namespace WTF; |
45 | 46 |
46 namespace WebCore { | 47 namespace WebCore { |
47 | 48 |
48 // Max/min values for CSS, needs to slightly smaller/larger than the true max/mi
n values to allow for rounding without overflowing. | 49 // Max/min values for CSS, needs to slightly smaller/larger than the true max/mi
n values to allow for rounding without overflowing. |
49 // Subtract two (rather than one) to allow for values to be converted to float a
nd back without exceeding the LayoutUnit::max. | 50 // Subtract two (rather than one) to allow for values to be converted to float a
nd back without exceeding the LayoutUnit::max. |
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 case CSS_SHAPE: | 1432 case CSS_SHAPE: |
1432 visitor->trace(m_value.shape); | 1433 visitor->trace(m_value.shape); |
1433 break; | 1434 break; |
1434 default: | 1435 default: |
1435 break; | 1436 break; |
1436 } | 1437 } |
1437 CSSValue::traceAfterDispatch(visitor); | 1438 CSSValue::traceAfterDispatch(visitor); |
1438 } | 1439 } |
1439 | 1440 |
1440 } // namespace WebCore | 1441 } // namespace WebCore |
OLD | NEW |