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

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: Add fast path batch setter for known path Created 5 years, 8 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/cssProperties.CSS21.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!--
2 Run this file in a browser to get the CSSStyleDeclaration properties
3 available in that browser
4 -->
5 <body>
6 <script>
7 function emit(text) {
8 var e = document.createElement('div');
9 e.innerHTML = text;
10 document.body.appendChild(e);
11 }
12 emit('# ' + navigator.userAgent);
13 var s = document.body.style;
14 var a = [];
15 for (var p in s) {
16 if (typeof s[p] != 'string') continue;
17 a.push(p);
18 }
19 a.sort();
20 emit('# ' + a.length + ' properties')
21 for (var i = 0; i < a.length; i++) {
22 emit(a[i]);
23 }
24 </script>
25 </body>
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/cssProperties.CSS21.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698