| 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, 2009, 2010 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 void clear() | 66 void clear() |
| 67 { | 67 { |
| 68 m_data.characters8 = 0; | 68 m_data.characters8 = 0; |
| 69 m_length = 0; | 69 m_length = 0; |
| 70 m_is8Bit = false; | 70 m_is8Bit = false; |
| 71 } | 71 } |
| 72 | 72 |
| 73 void trimTrailingWhitespace(); |
| 74 |
| 73 bool is8Bit() const { return m_is8Bit; } | 75 bool is8Bit() const { return m_is8Bit; } |
| 74 const LChar* characters8() const { ASSERT(is8Bit()); return m_data.character
s8; } | 76 const LChar* characters8() const { ASSERT(is8Bit()); return m_data.character
s8; } |
| 75 const UChar* characters16() const { ASSERT(!is8Bit()); return m_data.charact
ers16; } | 77 const UChar* characters16() const { ASSERT(!is8Bit()); return m_data.charact
ers16; } |
| 76 template <typename CharacterType> | 78 template <typename CharacterType> |
| 77 const CharacterType* characters() const; | 79 const CharacterType* characters() const; |
| 78 | 80 |
| 79 unsigned length() const { return m_length; } | 81 unsigned length() const { return m_length; } |
| 80 void setLength(unsigned length) { m_length = length; } | 82 void setLength(unsigned length) { m_length = length; } |
| 81 | 83 |
| 82 UChar operator[](unsigned i) const | 84 UChar operator[](unsigned i) const |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 inline bool CSSParserSelector::hasShadowPseudo() const | 231 inline bool CSSParserSelector::hasShadowPseudo() const |
| 230 { | 232 { |
| 231 return m_selector->relation() == CSSSelector::ShadowPseudo; | 233 return m_selector->relation() == CSSSelector::ShadowPseudo; |
| 232 } | 234 } |
| 233 | 235 |
| 234 } | 236 } |
| 235 | 237 |
| 236 #endif | 238 #endif |
| OLD | NEW |