| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 void CSSParserValueList::stealValues(CSSParserValueList& valueList) | 78 void CSSParserValueList::stealValues(CSSParserValueList& valueList) |
| 79 { | 79 { |
| 80 for (unsigned int i = 0; i < valueList.size(); ++i) | 80 for (unsigned int i = 0; i < valueList.size(); ++i) |
| 81 m_values.append(*(valueList.valueAt(i))); | 81 m_values.append(*(valueList.valueAt(i))); |
| 82 valueList.clear(); | 82 valueList.clear(); |
| 83 } | 83 } |
| 84 | 84 |
| 85 PassRefPtrWillBeRawPtr<CSSValue> CSSParserValue::createCSSValue() | 85 PassRefPtrWillBeRawPtr<CSSValue> CSSParserValue::createCSSValue() |
| 86 { | 86 { |
| 87 RefPtrWillBeRawPtr<CSSValue> parsedValue; | |
| 88 if (id) | 87 if (id) |
| 89 return CSSPrimitiveValue::createIdentifier(id); | 88 return CSSPrimitiveValue::createIdentifier(id); |
| 90 | 89 |
| 91 if (unit == CSSParserValue::Operator) { | 90 if (unit == CSSParserValue::Operator) { |
| 92 RefPtrWillBeRawPtr<CSSPrimitiveValue> primitiveValue = CSSPrimitiveValue
::createParserOperator(iValue); | 91 RefPtrWillBeRawPtr<CSSPrimitiveValue> primitiveValue = CSSPrimitiveValue
::createParserOperator(iValue); |
| 93 primitiveValue->setPrimitiveType(CSSPrimitiveValue::CSS_PARSER_OPERATOR)
; | 92 primitiveValue->setPrimitiveType(CSSPrimitiveValue::CSS_PARSER_OPERATOR)
; |
| 94 return primitiveValue; | 93 return primitiveValue; |
| 95 } | 94 } |
| 96 if (unit == CSSParserValue::Function) { | 95 if (unit == CSSParserValue::Function) { |
| 97 return CSSFunctionValue::create(function); | 96 return CSSFunctionValue::create(function); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 { | 261 { |
| 263 CSSParserSelector* selector = const_cast<CSSParserSelector*>(this); | 262 CSSParserSelector* selector = const_cast<CSSParserSelector*>(this); |
| 264 do { | 263 do { |
| 265 if (selector->pseudoType() == CSSSelector::PseudoHost || selector->pseud
oType() == CSSSelector::PseudoAncestor) | 264 if (selector->pseudoType() == CSSSelector::PseudoHost || selector->pseud
oType() == CSSSelector::PseudoAncestor) |
| 266 return true; | 265 return true; |
| 267 } while ((selector = selector->tagHistory())); | 266 } while ((selector = selector->tagHistory())); |
| 268 return false; | 267 return false; |
| 269 } | 268 } |
| 270 | 269 |
| 271 } // namespace WebCore | 270 } // namespace WebCore |
| OLD | NEW |