Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: Source/core/xml/XPathParser.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/XPathExpression.cpp ('k') | Source/core/xml/XPathResult.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 494
495 deleteAllValues(m_strings); 495 deleteAllValues(m_strings);
496 m_strings.clear(); 496 m_strings.clear();
497 497
498 deleteAllValues(m_nodeTests); 498 deleteAllValues(m_nodeTests);
499 m_nodeTests.clear(); 499 m_nodeTests.clear();
500 500
501 m_topExpr = 0; 501 m_topExpr = 0;
502 502
503 if (m_gotNamespaceError) 503 if (m_gotNamespaceError)
504 ec = NAMESPACE_ERR; 504 ec = NamespaceError;
505 else 505 else
506 ec = SYNTAX_ERR; 506 ec = SyntaxError;
507 return 0; 507 return 0;
508 } 508 }
509 509
510 ASSERT(m_parseNodes.size() == 1); 510 ASSERT(m_parseNodes.size() == 1);
511 ASSERT(*m_parseNodes.begin() == m_topExpr); 511 ASSERT(*m_parseNodes.begin() == m_topExpr);
512 ASSERT(m_expressionVectors.size() == 0); 512 ASSERT(m_expressionVectors.size() == 0);
513 ASSERT(m_predicateVectors.size() == 0); 513 ASSERT(m_predicateVectors.size() == 0);
514 ASSERT(m_strings.size() == 0); 514 ASSERT(m_strings.size() == 0);
515 ASSERT(m_nodeTests.size() == 0); 515 ASSERT(m_nodeTests.size() == 0);
516 516
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 { 619 {
620 if (t == 0) 620 if (t == 0)
621 return; 621 return;
622 622
623 ASSERT(m_nodeTests.contains(t)); 623 ASSERT(m_nodeTests.contains(t));
624 624
625 m_nodeTests.remove(t); 625 m_nodeTests.remove(t);
626 delete t; 626 delete t;
627 } 627 }
628 628
OLDNEW
« no previous file with comments | « Source/core/xml/XPathExpression.cpp ('k') | Source/core/xml/XPathResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698