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

Side by Side Diff: tools/dom/scripts/htmlrenamer.py

Issue 23523002: Revert "First rev of Safe DOM" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « tests/html/utils.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 import logging 5 import logging
6 import monitored 6 import monitored
7 import re 7 import re
8 8
9 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 'Element.children', 218 'Element.children',
219 'Element.childElementCount', 219 'Element.childElementCount',
220 'Element.firstElementChild', 220 'Element.firstElementChild',
221 'Element.getElementsByTagName', 221 'Element.getElementsByTagName',
222 'Element.scrollIntoView', 222 'Element.scrollIntoView',
223 'Element.scrollIntoViewIfNeeded', 223 'Element.scrollIntoViewIfNeeded',
224 'Element.removeAttribute', 224 'Element.removeAttribute',
225 'Element.removeAttributeNS', 225 'Element.removeAttributeNS',
226 'Element.hasAttribute', 226 'Element.hasAttribute',
227 'Element.hasAttributeNS', 227 'Element.hasAttributeNS',
228 'Element.innerHTML',
229 'Element.querySelectorAll', 228 'Element.querySelectorAll',
230 'Event.initEvent', 229 'Event.initEvent',
231 'Geolocation.clearWatch', 230 'Geolocation.clearWatch',
232 'Geolocation.getCurrentPosition', 231 'Geolocation.getCurrentPosition',
233 'Geolocation.watchPosition', 232 'Geolocation.watchPosition',
234 'HashChangeEvent.initHashChangeEvent', 233 'HashChangeEvent.initHashChangeEvent',
235 'HTMLCanvasElement.toDataURL', 234 'HTMLCanvasElement.toDataURL',
236 'HTMLTableElement.createCaption', 235 'HTMLTableElement.createCaption',
237 'HTMLTableElement.createTFoot', 236 'HTMLTableElement.createTFoot',
238 'HTMLTableElement.createTHead', 237 'HTMLTableElement.createTHead',
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 896
898 # We're looking for a sequence of letters which start with capital letter 897 # We're looking for a sequence of letters which start with capital letter
899 # then a series of caps and finishes with either the end of the string or 898 # then a series of caps and finishes with either the end of the string or
900 # a capital letter. 899 # a capital letter.
901 # The [0-9] check is for names such as 2D or 3D 900 # The [0-9] check is for names such as 2D or 3D
902 # The following test cases should match as: 901 # The following test cases should match as:
903 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 902 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
904 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 903 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
905 # IFrameElement: (I)()(F)rameElement (no change) 904 # IFrameElement: (I)()(F)rameElement (no change)
906 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 905 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/utils.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698