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

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

Issue 14732003: Implement Model-Driven-Views spec for Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: try upload again 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
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',
238 'IDBCursor.delete', 239 'IDBCursor.delete',
239 'IDBCursor.update', 240 'IDBCursor.update',
240 'IDBDatabase.createObjectStore', 241 'IDBDatabase.createObjectStore',
241 'IDBFactory.deleteDatabase', 242 'IDBFactory.deleteDatabase',
242 'IDBFactory.webkitGetDatabaseNames', 243 'IDBFactory.webkitGetDatabaseNames',
243 'IDBFactory.open', 244 'IDBFactory.open',
244 'IDBIndex.count', 245 'IDBIndex.count',
245 'IDBIndex.get', 246 'IDBIndex.get',
246 'IDBIndex.getKey', 247 'IDBIndex.getKey',
247 'IDBIndex.openCursor', 248 'IDBIndex.openCursor',
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 759
759 # We're looking for a sequence of letters which start with capital letter 760 # We're looking for a sequence of letters which start with capital letter
760 # then a series of caps and finishes with either the end of the string or 761 # then a series of caps and finishes with either the end of the string or
761 # a capital letter. 762 # a capital letter.
762 # The [0-9] check is for names such as 2D or 3D 763 # The [0-9] check is for names such as 2D or 3D
763 # The following test cases should match as: 764 # The following test cases should match as:
764 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 765 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
765 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 766 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
766 # IFrameElement: (I)()(F)rameElement (no change) 767 # IFrameElement: (I)()(F)rameElement (no change)
767 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 768 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698