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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 { | 50 { |
51 StringToUnitTable table; | 51 StringToUnitTable table; |
52 table.set(String("em"), CSSPrimitiveValue::UnitType::Ems); | 52 table.set(String("em"), CSSPrimitiveValue::UnitType::Ems); |
53 table.set(String("ex"), CSSPrimitiveValue::UnitType::Exs); | 53 table.set(String("ex"), CSSPrimitiveValue::UnitType::Exs); |
54 table.set(String("px"), CSSPrimitiveValue::UnitType::Pixels); | 54 table.set(String("px"), CSSPrimitiveValue::UnitType::Pixels); |
55 table.set(String("cm"), CSSPrimitiveValue::UnitType::Centimeters); | 55 table.set(String("cm"), CSSPrimitiveValue::UnitType::Centimeters); |
56 table.set(String("mm"), CSSPrimitiveValue::UnitType::Millimeters); | 56 table.set(String("mm"), CSSPrimitiveValue::UnitType::Millimeters); |
57 table.set(String("in"), CSSPrimitiveValue::UnitType::Inches); | 57 table.set(String("in"), CSSPrimitiveValue::UnitType::Inches); |
58 table.set(String("pt"), CSSPrimitiveValue::UnitType::Points); | 58 table.set(String("pt"), CSSPrimitiveValue::UnitType::Points); |
59 table.set(String("pc"), CSSPrimitiveValue::UnitType::Picas); | 59 table.set(String("pc"), CSSPrimitiveValue::UnitType::Picas); |
60 table.set(String(""), CSSPrimitiveValue::UnitType::UserUnits); | |
61 table.set(String("deg"), CSSPrimitiveValue::UnitType::Degrees); | 60 table.set(String("deg"), CSSPrimitiveValue::UnitType::Degrees); |
62 table.set(String("rad"), CSSPrimitiveValue::UnitType::Radians); | 61 table.set(String("rad"), CSSPrimitiveValue::UnitType::Radians); |
63 table.set(String("grad"), CSSPrimitiveValue::UnitType::Gradians); | 62 table.set(String("grad"), CSSPrimitiveValue::UnitType::Gradians); |
64 table.set(String("ms"), CSSPrimitiveValue::UnitType::Milliseconds); | 63 table.set(String("ms"), CSSPrimitiveValue::UnitType::Milliseconds); |
65 table.set(String("s"), CSSPrimitiveValue::UnitType::Seconds); | 64 table.set(String("s"), CSSPrimitiveValue::UnitType::Seconds); |
66 table.set(String("hz"), CSSPrimitiveValue::UnitType::Hertz); | 65 table.set(String("hz"), CSSPrimitiveValue::UnitType::Hertz); |
67 table.set(String("khz"), CSSPrimitiveValue::UnitType::Kilohertz); | 66 table.set(String("khz"), CSSPrimitiveValue::UnitType::Kilohertz); |
68 table.set(String("dpi"), CSSPrimitiveValue::UnitType::DotsPerInch); | 67 table.set(String("dpi"), CSSPrimitiveValue::UnitType::DotsPerInch); |
69 table.set(String("dpcm"), CSSPrimitiveValue::UnitType::DotsPerCentimeter); | 68 table.set(String("dpcm"), CSSPrimitiveValue::UnitType::DotsPerCentimeter); |
70 table.set(String("dppx"), CSSPrimitiveValue::UnitType::DotsPerPixel); | 69 table.set(String("dppx"), CSSPrimitiveValue::UnitType::DotsPerPixel); |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 case UnitType::Calc: | 774 case UnitType::Calc: |
776 visitor->trace(m_value.calc); | 775 visitor->trace(m_value.calc); |
777 break; | 776 break; |
778 default: | 777 default: |
779 break; | 778 break; |
780 } | 779 } |
781 CSSValue::traceAfterDispatch(visitor); | 780 CSSValue::traceAfterDispatch(visitor); |
782 } | 781 } |
783 | 782 |
784 } // namespace blink | 783 } // namespace blink |
OLD | NEW |