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

Side by Side Diff: Source/WebCore/bindings/v8/V8WindowErrorHandler.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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 ErrorEvent* errorEvent = static_cast<ErrorEvent*>(event); 52 ErrorEvent* errorEvent = static_cast<ErrorEvent*>(event);
53 v8::Local<v8::Object> listener = getListenerObject(context); 53 v8::Local<v8::Object> listener = getListenerObject(context);
54 v8::Local<v8::Value> returnValue; 54 v8::Local<v8::Value> returnValue;
55 if (!listener.IsEmpty() && listener->IsFunction()) { 55 if (!listener.IsEmpty() && listener->IsFunction()) {
56 v8::Local<v8::Function> callFunction = v8::Local<v8::Function>::Cast(lis tener); 56 v8::Local<v8::Function> callFunction = v8::Local<v8::Function>::Cast(lis tener);
57 v8::Local<v8::Object> thisValue = v8::Context::GetCurrent()->Global(); 57 v8::Local<v8::Object> thisValue = v8::Context::GetCurrent()->Global();
58 v8::Handle<v8::Value> parameters[3] = { v8String(errorEvent->message()), v8String(errorEvent->filename()), v8::Integer::New(errorEvent->lineno()) }; 58 v8::Handle<v8::Value> parameters[3] = { v8String(errorEvent->message()), v8String(errorEvent->filename()), v8::Integer::New(errorEvent->lineno()) };
59 v8::TryCatch tryCatch; 59 v8::TryCatch tryCatch;
60 tryCatch.SetVerbose(true); 60 tryCatch.SetVerbose(true);
61 returnValue = V8Proxy::instrumentedCallFunction(0 /* page */, callFuncti on, thisValue, 3, parameters); 61 returnValue = V8Proxy::instrumentedCallFunction(0 /* frame */, callFunct ion, thisValue, 3, parameters);
62 } 62 }
63 return returnValue; 63 return returnValue;
64 } 64 }
65 65
66 bool V8WindowErrorHandler::shouldPreventDefault(v8::Local<v8::Value> returnValue ) 66 bool V8WindowErrorHandler::shouldPreventDefault(v8::Local<v8::Value> returnValue )
67 { 67 {
68 return returnValue->IsBoolean() && returnValue->BooleanValue(); 68 return returnValue->IsBoolean() && returnValue->BooleanValue();
69 } 69 }
70 70
71 } // namespace WebCore 71 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/v8/V8RecursionScope.cpp ('k') | Source/WebCore/bindings/v8/custom/V8CustomVoidCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698