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

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

Issue 166903010: Oilpan: Move core/xml/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
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/dom/ExecutionContext.h" 36 #include "core/dom/ExecutionContext.h"
37 #include "core/inspector/ScriptCallStack.h" 37 #include "core/inspector/ScriptCallStack.h"
38 #include "core/frame/DOMWindow.h" 38 #include "core/frame/DOMWindow.h"
39 #include "core/frame/Frame.h" 39 #include "core/frame/Frame.h"
40 #include "core/frame/FrameHost.h" 40 #include "core/frame/FrameHost.h"
41 #include "core/frame/PageConsole.h" 41 #include "core/frame/PageConsole.h"
42 #include "wtf/text/WTFString.h" 42 #include "wtf/text/WTFString.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 PassRefPtr<V8CustomXPathNSResolver> V8CustomXPathNSResolver::create(v8::Handle<v 8::Object> resolver, v8::Isolate* isolate) 46 PassRefPtrWillBeRawPtr<V8CustomXPathNSResolver> V8CustomXPathNSResolver::create( v8::Handle<v8::Object> resolver, v8::Isolate* isolate)
47 { 47 {
48 return adoptRef(new V8CustomXPathNSResolver(resolver, isolate)); 48 return adoptRefWillBeNoop(new V8CustomXPathNSResolver(resolver, isolate));
49 } 49 }
50 50
51 V8CustomXPathNSResolver::V8CustomXPathNSResolver(v8::Handle<v8::Object> resolver , v8::Isolate* isolate) 51 V8CustomXPathNSResolver::V8CustomXPathNSResolver(v8::Handle<v8::Object> resolver , v8::Isolate* isolate)
52 : m_resolver(resolver) 52 : m_resolver(resolver)
53 , m_isolate(isolate) 53 , m_isolate(isolate)
54 { 54 {
55 } 55 }
56 56
57 V8CustomXPathNSResolver::~V8CustomXPathNSResolver() 57 V8CustomXPathNSResolver::~V8CustomXPathNSResolver()
58 { 58 {
(...skipping 29 matching lines...) Expand all
88 v8::Handle<v8::Value> retval = ScriptController::callFunction(activeExecutio nContext(m_isolate), function, m_resolver, argc, argv, m_isolate); 88 v8::Handle<v8::Value> retval = ScriptController::callFunction(activeExecutio nContext(m_isolate), function, m_resolver, argc, argv, m_isolate);
89 89
90 // Eat exceptions from namespace resolver and return an empty string. This w ill most likely cause NamespaceError. 90 // Eat exceptions from namespace resolver and return an empty string. This w ill most likely cause NamespaceError.
91 if (tryCatch.HasCaught()) 91 if (tryCatch.HasCaught())
92 return nullAtom; 92 return nullAtom;
93 93
94 V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<WithNullCheck>, retu rnString, retval, nullAtom); 94 V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<WithNullCheck>, retu rnString, retval, nullAtom);
95 return returnString; 95 return returnString;
96 } 96 }
97 97
98 void V8CustomXPathNSResolver::trace(Visitor* visitor)
99 {
100 XPathNSResolver::trace(visitor);
101 }
102
98 } // namespace WebCore 103 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698