OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 switch (primitiveUnit) { | 100 switch (primitiveUnit) { |
101 case CSSPrimitiveValue::CSS_IDENT: | 101 case CSSPrimitiveValue::CSS_IDENT: |
102 case CSSPrimitiveValue::CSS_PROPERTY_ID: | 102 case CSSPrimitiveValue::CSS_PROPERTY_ID: |
103 case CSSPrimitiveValue::CSS_VALUE_ID: | 103 case CSSPrimitiveValue::CSS_VALUE_ID: |
104 return CSSPrimitiveValue::create(string, CSSPrimitiveValue::CSS_PARSER_I
DENTIFIER); | 104 return CSSPrimitiveValue::create(string, CSSPrimitiveValue::CSS_PARSER_I
DENTIFIER); |
105 case CSSPrimitiveValue::CSS_NUMBER: | 105 case CSSPrimitiveValue::CSS_NUMBER: |
106 return CSSPrimitiveValue::create(fValue, isInt ? CSSPrimitiveValue::CSS_
PARSER_INTEGER : CSSPrimitiveValue::CSS_NUMBER); | 106 return CSSPrimitiveValue::create(fValue, isInt ? CSSPrimitiveValue::CSS_
PARSER_INTEGER : CSSPrimitiveValue::CSS_NUMBER); |
107 case CSSPrimitiveValue::CSS_STRING: | 107 case CSSPrimitiveValue::CSS_STRING: |
108 case CSSPrimitiveValue::CSS_URI: | 108 case CSSPrimitiveValue::CSS_URI: |
109 case CSSPrimitiveValue::CSS_PARSER_HEXCOLOR: | 109 case CSSPrimitiveValue::CSS_PARSER_HEXCOLOR: |
| 110 case CSSPrimitiveValue::CSS_PARSER_IDSEL: |
110 return CSSPrimitiveValue::create(string, primitiveUnit); | 111 return CSSPrimitiveValue::create(string, primitiveUnit); |
111 case CSSPrimitiveValue::CSS_PERCENTAGE: | 112 case CSSPrimitiveValue::CSS_PERCENTAGE: |
112 case CSSPrimitiveValue::CSS_EMS: | 113 case CSSPrimitiveValue::CSS_EMS: |
113 case CSSPrimitiveValue::CSS_EXS: | 114 case CSSPrimitiveValue::CSS_EXS: |
114 case CSSPrimitiveValue::CSS_PX: | 115 case CSSPrimitiveValue::CSS_PX: |
115 case CSSPrimitiveValue::CSS_CM: | 116 case CSSPrimitiveValue::CSS_CM: |
116 case CSSPrimitiveValue::CSS_MM: | 117 case CSSPrimitiveValue::CSS_MM: |
117 case CSSPrimitiveValue::CSS_IN: | 118 case CSSPrimitiveValue::CSS_IN: |
118 case CSSPrimitiveValue::CSS_PT: | 119 case CSSPrimitiveValue::CSS_PT: |
119 case CSSPrimitiveValue::CSS_PC: | 120 case CSSPrimitiveValue::CSS_PC: |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 { | 246 { |
246 CSSParserSelector* selector = const_cast<CSSParserSelector*>(this); | 247 CSSParserSelector* selector = const_cast<CSSParserSelector*>(this); |
247 do { | 248 do { |
248 if (selector->pseudoType() == CSSSelector::PseudoHost || selector->pseud
oType() == CSSSelector::PseudoHostContext) | 249 if (selector->pseudoType() == CSSSelector::PseudoHost || selector->pseud
oType() == CSSSelector::PseudoHostContext) |
249 return true; | 250 return true; |
250 } while ((selector = selector->tagHistory())); | 251 } while ((selector = selector->tagHistory())); |
251 return false; | 252 return false; |
252 } | 253 } |
253 | 254 |
254 } // namespace WebCore | 255 } // namespace WebCore |
OLD | NEW |