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

Side by Side Diff: Source/bindings/core/v8/custom/V8CustomXPathNSResolver.cpp

Issue 1099613003: Oilpan: have xml/ objects on the heap by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: simplify XPathResult dtor Created 5 years, 8 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 // Copyright (c) 2008, Google Inc. 1 // Copyright (c) 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "core/frame/FrameConsole.h" 36 #include "core/frame/FrameConsole.h"
37 #include "core/frame/FrameHost.h" 37 #include "core/frame/FrameHost.h"
38 #include "core/frame/LocalDOMWindow.h" 38 #include "core/frame/LocalDOMWindow.h"
39 #include "core/frame/LocalFrame.h" 39 #include "core/frame/LocalFrame.h"
40 #include "core/inspector/ConsoleMessage.h" 40 #include "core/inspector/ConsoleMessage.h"
41 #include "core/inspector/ScriptCallStack.h" 41 #include "core/inspector/ScriptCallStack.h"
42 #include "wtf/text/WTFString.h" 42 #include "wtf/text/WTFString.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 PassRefPtrWillBeRawPtr<V8CustomXPathNSResolver> V8CustomXPathNSResolver::create( ScriptState* scriptState, v8::Local<v8::Object> resolver) 46 V8CustomXPathNSResolver* V8CustomXPathNSResolver::create(ScriptState* scriptStat e, v8::Local<v8::Object> resolver)
47 { 47 {
48 return adoptRefWillBeNoop(new V8CustomXPathNSResolver(scriptState, resolver) ); 48 return new V8CustomXPathNSResolver(scriptState, resolver);
49 } 49 }
50 50
51 V8CustomXPathNSResolver::V8CustomXPathNSResolver(ScriptState* scriptState, v8::L ocal<v8::Object> resolver) 51 V8CustomXPathNSResolver::V8CustomXPathNSResolver(ScriptState* scriptState, v8::L ocal<v8::Object> resolver)
52 : m_scriptState(scriptState) 52 : m_scriptState(scriptState)
53 , m_resolver(resolver) 53 , m_resolver(resolver)
54 { 54 {
55 } 55 }
56 56
57 AtomicString V8CustomXPathNSResolver::lookupNamespaceURI(const String& prefix) 57 AtomicString V8CustomXPathNSResolver::lookupNamespaceURI(const String& prefix)
58 { 58 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 TOSTRING_DEFAULT(V8StringResource<TreatNullAsNullString>, returnString, retv al, nullAtom); 90 TOSTRING_DEFAULT(V8StringResource<TreatNullAsNullString>, returnString, retv al, nullAtom);
91 return returnString; 91 return returnString;
92 } 92 }
93 93
94 DEFINE_TRACE(V8CustomXPathNSResolver) 94 DEFINE_TRACE(V8CustomXPathNSResolver)
95 { 95 {
96 XPathNSResolver::trace(visitor); 96 XPathNSResolver::trace(visitor);
97 } 97 }
98 98
99 } // namespace blink 99 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8CustomXPathNSResolver.h ('k') | Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698