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

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

Issue 234403004: Rename V8TRYCATCH_* macros in v8/V8BindingMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: BOOL*_BOOL -> BOOL* Created 6 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 | 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 const int argc = 1; 83 const int argc = 1;
84 v8::Handle<v8::Value> argv[argc] = { v8String(m_isolate, prefix) }; 84 v8::Handle<v8::Value> argv[argc] = { v8String(m_isolate, prefix) };
85 v8::Handle<v8::Function> function = lookupNamespaceURIFunc.IsEmpty() ? v8::H andle<v8::Function>::Cast(m_resolver) : lookupNamespaceURIFunc; 85 v8::Handle<v8::Function> function = lookupNamespaceURIFunc.IsEmpty() ? v8::H andle<v8::Function>::Cast(m_resolver) : lookupNamespaceURIFunc;
86 86
87 v8::Handle<v8::Value> retval = ScriptController::callFunction(callingExecuti onContext(m_isolate), function, m_resolver, argc, argv, m_isolate); 87 v8::Handle<v8::Value> retval = ScriptController::callFunction(callingExecuti onContext(m_isolate), function, m_resolver, argc, argv, m_isolate);
88 88
89 // Eat exceptions from namespace resolver and return an empty string. This w ill most likely cause NamespaceError. 89 // Eat exceptions from namespace resolver and return an empty string. This w ill most likely cause NamespaceError.
90 if (tryCatch.HasCaught()) 90 if (tryCatch.HasCaught())
91 return nullAtom; 91 return nullAtom;
92 92
93 V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<WithNullCheck>, retu rnString, retval, nullAtom); 93 TOSTRING_BOOL(V8StringResource<WithNullCheck>, returnString, retval, nullAto m);
94 return returnString; 94 return returnString;
95 } 95 }
96 96
97 void V8CustomXPathNSResolver::trace(Visitor* visitor) 97 void V8CustomXPathNSResolver::trace(Visitor* visitor)
98 { 98 {
99 XPathNSResolver::trace(visitor); 99 XPathNSResolver::trace(visitor);
100 } 100 }
101 101
102 } // namespace WebCore 102 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8CustomEventCustom.cpp ('k') | Source/bindings/v8/custom/V8DeviceMotionEventCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698