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

Side by Side Diff: Source/devtools/scripts/jsdoc-validator/tests/document.js

Issue 727823002: [DevTools] Ban getSelection, requestAnimationFrame, cancelAnimationFrame global functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 document.bar(); 1 document.bar();
2 window.document.bar(); 2 window.document.bar();
3 bar.document(); 3 bar.document();
4 bar.window.document(); 4 bar.window.document();
5 document(); 5 document();
6 var x = window.document; 6 var x = window.document;
7 7
8 function a(document) { 8 function a(document) {
9 document.bar(); 9 document.bar();
10 document(); 10 document();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 var y = x.document; 51 var y = x.document;
52 window.x.document(); 52 window.x.document();
53 var z = document.document; 53 var z = document.document;
54 var bar = window + window.document; 54 var bar = window + window.document;
55 55
56 self.document = bar; 56 self.document = bar;
57 self.addEventListener(); 57 self.addEventListener();
58 self.removeEventListener(); 58 self.removeEventListener();
59 self.requestAnimationFrame();
60 window.cancelAnimationFrame();
61 getSelection();
59 62
60 function g() { 63 function g() {
61 var self = this; 64 var self = this;
62 self.document; 65 self.document;
63 } 66 }
64 67
65 function h() { var a = { document: true }; } 68 function h() { var a = { document: true }; }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698