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

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

Issue 24469004: Amusingly deprecate the generic version of 'ExceptionState::throwDOMException'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 495
496 deleteAllValues(m_strings); 496 deleteAllValues(m_strings);
497 m_strings.clear(); 497 m_strings.clear();
498 498
499 deleteAllValues(m_nodeTests); 499 deleteAllValues(m_nodeTests);
500 m_nodeTests.clear(); 500 m_nodeTests.clear();
501 501
502 m_topExpr = 0; 502 m_topExpr = 0;
503 503
504 if (m_gotNamespaceError) 504 if (m_gotNamespaceError)
505 es.throwDOMException(NamespaceError); 505 es.throwUninformativeAndGenericDOMException(NamespaceError);
506 else 506 else
507 es.throwDOMException(SyntaxError); 507 es.throwUninformativeAndGenericDOMException(SyntaxError);
508 return 0; 508 return 0;
509 } 509 }
510 510
511 ASSERT(m_parseNodes.size() == 1); 511 ASSERT(m_parseNodes.size() == 1);
512 ASSERT(*m_parseNodes.begin() == m_topExpr); 512 ASSERT(*m_parseNodes.begin() == m_topExpr);
513 ASSERT(m_expressionVectors.size() == 0); 513 ASSERT(m_expressionVectors.size() == 0);
514 ASSERT(m_predicateVectors.size() == 0); 514 ASSERT(m_predicateVectors.size() == 0);
515 ASSERT(m_strings.size() == 0); 515 ASSERT(m_strings.size() == 0);
516 ASSERT(m_nodeTests.size() == 0); 516 ASSERT(m_nodeTests.size() == 0);
517 517
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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