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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 15 matching lines...) Expand all
26 */ 26 */
27 27
28 #include "core/xml/XPathParser.h" 28 #include "core/xml/XPathParser.h"
29 29
30 #include "bindings/core/v8/ExceptionState.h" 30 #include "bindings/core/v8/ExceptionState.h"
31 #include "core/XPathGrammar.h" 31 #include "core/XPathGrammar.h"
32 #include "core/dom/ExceptionCode.h" 32 #include "core/dom/ExceptionCode.h"
33 #include "core/xml/XPathEvaluator.h" 33 #include "core/xml/XPathEvaluator.h"
34 #include "core/xml/XPathNSResolver.h" 34 #include "core/xml/XPathNSResolver.h"
35 #include "core/xml/XPathPath.h" 35 #include "core/xml/XPathPath.h"
36 #include "wtf/PtrUtil.h"
37 #include "wtf/StdLibExtras.h" 36 #include "wtf/StdLibExtras.h"
38 #include "wtf/text/StringHash.h" 37 #include "wtf/text/StringHash.h"
39 38
40 using namespace blink; 39 using namespace blink;
41 using namespace WTF; 40 using namespace WTF;
42 using namespace Unicode; 41 using namespace Unicode;
43 using namespace XPath; 42 using namespace XPath;
44 43
45 Parser* Parser::currentParser = nullptr; 44 Parser* Parser::currentParser = nullptr;
46 45
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 return result; 493 return result;
495 } 494 }
496 495
497 void Parser::registerString(String* s) 496 void Parser::registerString(String* s)
498 { 497 {
499 if (s == 0) 498 if (s == 0)
500 return; 499 return;
501 500
502 ASSERT(!m_strings.contains(s)); 501 ASSERT(!m_strings.contains(s));
503 502
504 m_strings.add(wrapUnique(s)); 503 m_strings.add(adoptPtr(s));
505 } 504 }
506 505
507 void Parser::deleteString(String* s) 506 void Parser::deleteString(String* s)
508 { 507 {
509 if (s == 0) 508 if (s == 0)
510 return; 509 return;
511 510
512 ASSERT(m_strings.contains(s)); 511 ASSERT(m_strings.contains(s));
513 512
514 m_strings.remove(s); 513 m_strings.remove(s);
515 } 514 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathParser.h ('k') | third_party/WebKit/Source/core/xml/XSLImportRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698