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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/compositorworker/resources/proxy-mutate.js

Issue 1449953002: compositor-worker: Refactor CompositorWorkerManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add documentation and ASSERTS for some subtleties. Created 5 years 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
(Empty)
1 onmessage = function(msg) {
2 var proxy = msg.data[0];
3 var attrib = msg.data[1];
4 try {
5 if (proxy.supports(attrib)) {
6 proxy[attrib] = 0;
7 postMessage('success');
8 } else {
9 postMessage('error: Received non-supported attribute "' + attrib + ' "');
10 }
11 } catch (e) {
12 postMessage('error: ' + e);
13 }
14 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698