| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 David Smith (catfish.man@gmail.com) | 2 * Copyright (C) 2007 David Smith (catfish.man@gmail.com) |
| 3 * Copyright (C) 2007, 2008, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008, 2011, 2012 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 * Boston, MA 02111-1307, USA. | 18 * Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "sky/engine/config.h" |
| 22 #include "core/dom/SpaceSplitString.h" | 22 #include "sky/engine/core/dom/SpaceSplitString.h" |
| 23 | 23 |
| 24 #include "core/html/parser/HTMLParserIdioms.h" | 24 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" |
| 25 #include "wtf/ASCIICType.h" | 25 #include "sky/engine/wtf/ASCIICType.h" |
| 26 #include "wtf/HashMap.h" | 26 #include "sky/engine/wtf/HashMap.h" |
| 27 #include "wtf/text/AtomicStringHash.h" | 27 #include "sky/engine/wtf/text/AtomicStringHash.h" |
| 28 | 28 |
| 29 using namespace WTF; | 29 using namespace WTF; |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 template <typename CharacterType> | 33 template <typename CharacterType> |
| 34 static inline bool hasNonASCIIOrUpper(const CharacterType* characters, unsigned
length) | 34 static inline bool hasNonASCIIOrUpper(const CharacterType* characters, unsigned
length) |
| 35 { | 35 { |
| 36 bool hasUpper = false; | 36 bool hasUpper = false; |
| 37 CharacterType ored = 0; | 37 CharacterType ored = 0; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 SpaceSplitString::Data::Data(const SpaceSplitString::Data& other) | 196 SpaceSplitString::Data::Data(const SpaceSplitString::Data& other) |
| 197 : RefCounted<Data>() | 197 : RefCounted<Data>() |
| 198 , m_vector(other.m_vector) | 198 , m_vector(other.m_vector) |
| 199 { | 199 { |
| 200 // Note that we don't copy m_keyString to indicate to the destructor that th
ere's nothing | 200 // Note that we don't copy m_keyString to indicate to the destructor that th
ere's nothing |
| 201 // to be removed from the sharedDataMap(). | 201 // to be removed from the sharedDataMap(). |
| 202 } | 202 } |
| 203 | 203 |
| 204 } // namespace blink | 204 } // namespace blink |
| OLD | NEW |