| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> |
| 3 * Copyright (C) 2006, 2009 Apple Inc. | 3 * Copyright (C) 2006, 2009 Apple Inc. |
| 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 idList.append(str); | 324 idList.append(str); |
| 325 idList.append(' '); | 325 idList.append(' '); |
| 326 } | 326 } |
| 327 } else { | 327 } else { |
| 328 String str = a.toString(); | 328 String str = a.toString(); |
| 329 idList.append(str); | 329 idList.append(str); |
| 330 } | 330 } |
| 331 | 331 |
| 332 TreeScope& contextScope = context.node->treeScope(); | 332 TreeScope& contextScope = context.node->treeScope(); |
| 333 NodeSet* result(NodeSet::create()); | 333 NodeSet* result(NodeSet::create()); |
| 334 WillBeHeapHashSet<RawPtrWillBeMember<Node>> resultSet; | 334 HeapHashSet<Member<Node>> resultSet; |
| 335 | 335 |
| 336 unsigned startPos = 0; | 336 unsigned startPos = 0; |
| 337 unsigned length = idList.length(); | 337 unsigned length = idList.length(); |
| 338 while (true) { | 338 while (true) { |
| 339 while (startPos < length && isWhitespace(idList[startPos])) | 339 while (startPos < length && isWhitespace(idList[startPos])) |
| 340 ++startPos; | 340 ++startPos; |
| 341 | 341 |
| 342 if (startPos == length) | 342 if (startPos == length) |
| 343 break; | 343 break; |
| 344 | 344 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 return nullptr; | 761 return nullptr; |
| 762 | 762 |
| 763 Function* function = functionRec->factoryFn(); | 763 Function* function = functionRec->factoryFn(); |
| 764 function->setArguments(args); | 764 function->setArguments(args); |
| 765 function->setName(name); | 765 function->setName(name); |
| 766 return function; | 766 return function; |
| 767 } | 767 } |
| 768 | 768 |
| 769 } // namespace XPath | 769 } // namespace XPath |
| 770 } // namespace blink | 770 } // namespace blink |
| OLD | NEW |