| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> | 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 registerString(yylval->str); | 444 registerString(yylval->str); |
| 445 break; | 445 break; |
| 446 } | 446 } |
| 447 | 447 |
| 448 return tok.type; | 448 return tok.type; |
| 449 } | 449 } |
| 450 | 450 |
| 451 bool Parser::expandQName(const String& qName, String& localName, String& namespa
ceURI) | 451 bool Parser::expandQName(const String& qName, String& localName, String& namespa
ceURI) |
| 452 { | 452 { |
| 453 size_t colon = qName.find(':'); | 453 size_t colon = qName.find(':'); |
| 454 if (colon != notFound) { | 454 if (colon != kNotFound) { |
| 455 if (!m_resolver) | 455 if (!m_resolver) |
| 456 return false; | 456 return false; |
| 457 namespaceURI = m_resolver->lookupNamespaceURI(qName.left(colon)); | 457 namespaceURI = m_resolver->lookupNamespaceURI(qName.left(colon)); |
| 458 if (namespaceURI.isNull()) | 458 if (namespaceURI.isNull()) |
| 459 return false; | 459 return false; |
| 460 localName = qName.substring(colon + 1); | 460 localName = qName.substring(colon + 1); |
| 461 } else | 461 } else |
| 462 localName = qName; | 462 localName = qName; |
| 463 | 463 |
| 464 return true; | 464 return true; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 { | 620 { |
| 621 if (t == 0) | 621 if (t == 0) |
| 622 return; | 622 return; |
| 623 | 623 |
| 624 ASSERT(m_nodeTests.contains(t)); | 624 ASSERT(m_nodeTests.contains(t)); |
| 625 | 625 |
| 626 m_nodeTests.remove(t); | 626 m_nodeTests.remove(t); |
| 627 delete t; | 627 delete t; |
| 628 } | 628 } |
| 629 | 629 |
| OLD | NEW |