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

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

Issue 2386173002: reflow comments in Source/bindings/core/v8 (Closed)
Patch Set: Created 4 years, 2 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 tryCatch.SetVerbose(true); // Print exceptions to console. 79 tryCatch.SetVerbose(true); // Print exceptions to console.
80 80
81 const int argc = 1; 81 const int argc = 1;
82 v8::Local<v8::Value> argv[argc] = {v8String(isolate, prefix)}; 82 v8::Local<v8::Value> argv[argc] = {v8String(isolate, prefix)};
83 v8::Local<v8::Function> function = 83 v8::Local<v8::Function> function =
84 lookupNamespaceURIFunc.IsEmpty() 84 lookupNamespaceURIFunc.IsEmpty()
85 ? v8::Local<v8::Function>::Cast(m_resolver) 85 ? v8::Local<v8::Function>::Cast(m_resolver)
86 : lookupNamespaceURIFunc; 86 : lookupNamespaceURIFunc;
87 87
88 v8::Local<v8::Value> retval; 88 v8::Local<v8::Value> retval;
89 // Eat exceptions from namespace resolver and return an empty string. This wil l most likely cause NamespaceError. 89 // Eat exceptions from namespace resolver and return an empty string. This
90 // will most likely cause NamespaceError.
90 if (!V8ScriptRunner::callFunction( 91 if (!V8ScriptRunner::callFunction(
91 function, toExecutionContext(m_scriptState->context()), m_resolver, 92 function, toExecutionContext(m_scriptState->context()), m_resolver,
92 argc, argv, isolate) 93 argc, argv, isolate)
93 .ToLocal(&retval)) 94 .ToLocal(&retval))
94 return nullAtom; 95 return nullAtom;
95 96
96 TOSTRING_DEFAULT(V8StringResource<TreatNullAsNullString>, returnString, 97 TOSTRING_DEFAULT(V8StringResource<TreatNullAsNullString>, returnString,
97 retval, nullAtom); 98 retval, nullAtom);
98 return returnString; 99 return returnString;
99 } 100 }
100 101
101 DEFINE_TRACE(V8CustomXPathNSResolver) { 102 DEFINE_TRACE(V8CustomXPathNSResolver) {
102 XPathNSResolver::trace(visitor); 103 XPathNSResolver::trace(visitor);
103 } 104 }
104 105
105 } // namespace blink 106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698