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

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

Issue 9355009: Merge 107170 - DOM mutations should not be delivered on worker threads (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 // Catch exceptions from calling the namespace resolver. 74 // Catch exceptions from calling the namespace resolver.
75 v8::TryCatch try_catch; 75 v8::TryCatch try_catch;
76 try_catch.SetVerbose(true); // Print exceptions to console. 76 try_catch.SetVerbose(true); // Print exceptions to console.
77 77
78 const int argc = 1; 78 const int argc = 1;
79 v8::Handle<v8::Value> argv[argc] = { v8String(prefix) }; 79 v8::Handle<v8::Value> argv[argc] = { v8String(prefix) };
80 v8::Handle<v8::Function> function = lookupNamespaceURIFunc.IsEmpty() ? v8::H andle<v8::Function>::Cast(m_resolver) : lookupNamespaceURIFunc; 80 v8::Handle<v8::Function> function = lookupNamespaceURIFunc.IsEmpty() ? v8::H andle<v8::Function>::Cast(m_resolver) : lookupNamespaceURIFunc;
81 81
82 v8::Handle<v8::Value> retval = V8Proxy::instrumentedCallFunction(0 /* page * /, function, m_resolver, argc, argv); 82 v8::Handle<v8::Value> retval = V8Proxy::instrumentedCallFunction(0 /* frame */, function, m_resolver, argc, argv);
83 83
84 // Eat exceptions from namespace resolver and return an empty string. This w ill most likely cause NAMESPACE_ERR. 84 // Eat exceptions from namespace resolver and return an empty string. This w ill most likely cause NAMESPACE_ERR.
85 if (try_catch.HasCaught()) 85 if (try_catch.HasCaught())
86 return String(); 86 return String();
87 87
88 return toWebCoreStringWithNullCheck(retval); 88 return toWebCoreStringWithNullCheck(retval);
89 } 89 }
90 90
91 } // namespace WebCore 91 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/v8/custom/V8CustomVoidCallback.cpp ('k') | Source/WebCore/dom/WebKitMutationObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698