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

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

Issue 14908005: "Reverting 22561" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « tools/dom/scripts/dartmetadata.py ('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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 'HTMLTableElement.createTBody', 228 'HTMLTableElement.createTBody',
229 'HTMLTableElement.createTFoot', 229 'HTMLTableElement.createTFoot',
230 'HTMLTableElement.createTHead', 230 'HTMLTableElement.createTHead',
231 'HTMLTableElement.insertRow', 231 'HTMLTableElement.insertRow',
232 'HTMLTableElement.rows', 232 'HTMLTableElement.rows',
233 'HTMLTableElement.tBodies', 233 'HTMLTableElement.tBodies',
234 'HTMLTableRowElement.cells', 234 'HTMLTableRowElement.cells',
235 'HTMLTableRowElement.insertCell', 235 'HTMLTableRowElement.insertCell',
236 'HTMLTableSectionElement.insertRow', 236 'HTMLTableSectionElement.insertRow',
237 'HTMLTableSectionElement.rows', 237 'HTMLTableSectionElement.rows',
238 'HTMLTemplateElement.content',
239 'IDBCursor.delete', 238 'IDBCursor.delete',
240 'IDBCursor.update', 239 'IDBCursor.update',
241 'IDBDatabase.createObjectStore', 240 'IDBDatabase.createObjectStore',
242 'IDBFactory.deleteDatabase', 241 'IDBFactory.deleteDatabase',
243 'IDBFactory.webkitGetDatabaseNames', 242 'IDBFactory.webkitGetDatabaseNames',
244 'IDBFactory.open', 243 'IDBFactory.open',
245 'IDBIndex.count', 244 'IDBIndex.count',
246 'IDBIndex.get', 245 'IDBIndex.get',
247 'IDBIndex.getKey', 246 'IDBIndex.getKey',
248 'IDBIndex.openCursor', 247 'IDBIndex.openCursor',
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 758
760 # We're looking for a sequence of letters which start with capital letter 759 # We're looking for a sequence of letters which start with capital letter
761 # then a series of caps and finishes with either the end of the string or 760 # then a series of caps and finishes with either the end of the string or
762 # a capital letter. 761 # a capital letter.
763 # The [0-9] check is for names such as 2D or 3D 762 # The [0-9] check is for names such as 2D or 3D
764 # The following test cases should match as: 763 # The following test cases should match as:
765 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 764 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
766 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 765 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
767 # IFrameElement: (I)()(F)rameElement (no change) 766 # IFrameElement: (I)()(F)rameElement (no change)
768 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 767 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698