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

Side by Side Diff: tools/dom/scripts/cssProperties.html

Issue 966803004: Generate fast-path CssStyleDeclaration properties from browser info (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <body>
2 <script>
Alan Knight 2015/03/04 17:49:32 I assume you run this in a browser to get the brow
sra1 2015/03/25 05:23:35 Done.
3 function emit(text) {
4 var e = document.createElement('div');
5 e.innerHTML = text;
6 document.body.appendChild(e);
7 }
8 emit('# ' + navigator.userAgent);
9 var s = document.body.style;
10 var a = [];
11 for (var p in s) {
12 if (typeof s[p] != 'string') continue;
13 a.push(p);
14 }
15 a.sort();
16 emit('# ' + a.length + ' properties')
17 for (var i = 0; i < a.length; i++) {
18 emit(a[i]);
19 }
20 </script>
21 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698