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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 table.set(String("dpcm"), CSSPrimitiveValue::CSS_DPCM); | 75 table.set(String("dpcm"), CSSPrimitiveValue::CSS_DPCM); |
76 table.set(String("dppx"), CSSPrimitiveValue::CSS_DPPX); | 76 table.set(String("dppx"), CSSPrimitiveValue::CSS_DPPX); |
77 table.set(String("vw"), CSSPrimitiveValue::CSS_VW); | 77 table.set(String("vw"), CSSPrimitiveValue::CSS_VW); |
78 table.set(String("vh"), CSSPrimitiveValue::CSS_VH); | 78 table.set(String("vh"), CSSPrimitiveValue::CSS_VH); |
79 table.set(String("vmin"), CSSPrimitiveValue::CSS_VMIN); | 79 table.set(String("vmin"), CSSPrimitiveValue::CSS_VMIN); |
80 table.set(String("vmax"), CSSPrimitiveValue::CSS_VMAX); | 80 table.set(String("vmax"), CSSPrimitiveValue::CSS_VMAX); |
81 table.set(String("rem"), CSSPrimitiveValue::CSS_REMS); | 81 table.set(String("rem"), CSSPrimitiveValue::CSS_REMS); |
82 table.set(String("fr"), CSSPrimitiveValue::CSS_FR); | 82 table.set(String("fr"), CSSPrimitiveValue::CSS_FR); |
83 table.set(String("turn"), CSSPrimitiveValue::CSS_TURN); | 83 table.set(String("turn"), CSSPrimitiveValue::CSS_TURN); |
84 table.set(String("ch"), CSSPrimitiveValue::CSS_CHS); | 84 table.set(String("ch"), CSSPrimitiveValue::CSS_CHS); |
85 table.set(String("__qem"), CSSPrimitiveValue::CSS_QEM); | |
85 return table; | 86 return table; |
86 } | 87 } |
87 | 88 |
88 StringToUnitTable& unitTable() | 89 StringToUnitTable& unitTable() |
89 { | 90 { |
90 DEFINE_STATIC_LOCAL(StringToUnitTable, unitTable, (createStringToUnitTable() )); | 91 DEFINE_STATIC_LOCAL(StringToUnitTable, unitTable, (createStringToUnitTable() )); |
91 return unitTable; | 92 return unitTable; |
92 } | 93 } |
93 | 94 |
94 } // namespace | 95 } // namespace |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
432 break; | 433 break; |
433 case CSS_SHAPE: | 434 case CSS_SHAPE: |
434 // We must not call deref() when oilpan is enabled because m_value.shape is traced. | 435 // We must not call deref() when oilpan is enabled because m_value.shape is traced. |
435 #if !ENABLE(OILPAN) | 436 #if !ENABLE(OILPAN) |
436 m_value.shape->deref(); | 437 m_value.shape->deref(); |
437 #endif | 438 #endif |
438 break; | 439 break; |
439 case CSS_NUMBER: | 440 case CSS_NUMBER: |
440 case CSS_PERCENTAGE: | 441 case CSS_PERCENTAGE: |
441 case CSS_EMS: | 442 case CSS_EMS: |
443 case CSS_QEM: | |
442 case CSS_EXS: | 444 case CSS_EXS: |
443 case CSS_REMS: | 445 case CSS_REMS: |
444 case CSS_CHS: | 446 case CSS_CHS: |
445 case CSS_PX: | 447 case CSS_PX: |
446 case CSS_CM: | 448 case CSS_CM: |
447 case CSS_MM: | 449 case CSS_MM: |
448 case CSS_IN: | 450 case CSS_IN: |
449 case CSS_PT: | 451 case CSS_PT: |
450 case CSS_PC: | 452 case CSS_PC: |
451 case CSS_DEG: | 453 case CSS_DEG: |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
850 | 852 |
851 const char* CSSPrimitiveValue::unitTypeToString(UnitType type) | 853 const char* CSSPrimitiveValue::unitTypeToString(UnitType type) |
852 { | 854 { |
853 switch (type) { | 855 switch (type) { |
854 case CSS_NUMBER: | 856 case CSS_NUMBER: |
855 return ""; | 857 return ""; |
856 case CSS_PERCENTAGE: | 858 case CSS_PERCENTAGE: |
857 return "%"; | 859 return "%"; |
858 case CSS_EMS: | 860 case CSS_EMS: |
859 return "em"; | 861 return "em"; |
862 case CSS_QEM: | |
863 return "__qem"; | |
Timothy Loh
2015/06/10 00:55:03
ASSERT_NOT_REACHED()?
| |
860 case CSS_EXS: | 864 case CSS_EXS: |
861 return "ex"; | 865 return "ex"; |
862 case CSS_REMS: | 866 case CSS_REMS: |
863 return "rem"; | 867 return "rem"; |
864 case CSS_CHS: | 868 case CSS_CHS: |
865 return "ch"; | 869 return "ch"; |
866 case CSS_PX: | 870 case CSS_PX: |
867 return "px"; | 871 return "px"; |
868 case CSS_CM: | 872 case CSS_CM: |
869 return "cm"; | 873 return "cm"; |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1135 visitor->trace(m_value.shape); | 1139 visitor->trace(m_value.shape); |
1136 break; | 1140 break; |
1137 default: | 1141 default: |
1138 break; | 1142 break; |
1139 } | 1143 } |
1140 #endif | 1144 #endif |
1141 CSSValue::traceAfterDispatch(visitor); | 1145 CSSValue::traceAfterDispatch(visitor); |
1142 } | 1146 } |
1143 | 1147 |
1144 } // namespace blink | 1148 } // namespace blink |
OLD | NEW |