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

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: small fix 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 'HTMLTableElement.createTBody', 235 'HTMLTableElement.createTBody',
236 'HTMLTableElement.createTFoot', 236 'HTMLTableElement.createTFoot',
237 'HTMLTableElement.createTHead', 237 'HTMLTableElement.createTHead',
238 'HTMLTableElement.insertRow', 238 'HTMLTableElement.insertRow',
239 'HTMLTableElement.rows', 239 'HTMLTableElement.rows',
240 'HTMLTableElement.tBodies', 240 'HTMLTableElement.tBodies',
241 'HTMLTableRowElement.cells', 241 'HTMLTableRowElement.cells',
242 'HTMLTableRowElement.insertCell', 242 'HTMLTableRowElement.insertCell',
243 'HTMLTableSectionElement.insertRow', 243 'HTMLTableSectionElement.insertRow',
244 'HTMLTableSectionElement.rows', 244 'HTMLTableSectionElement.rows',
245 'HTMLTemplateElement.content',
245 'IDBCursor.delete', 246 'IDBCursor.delete',
246 'IDBCursor.update', 247 'IDBCursor.update',
247 'IDBDatabase.createObjectStore', 248 'IDBDatabase.createObjectStore',
248 'IDBFactory.deleteDatabase', 249 'IDBFactory.deleteDatabase',
249 'IDBFactory.webkitGetDatabaseNames', 250 'IDBFactory.webkitGetDatabaseNames',
250 'IDBFactory.open', 251 'IDBFactory.open',
251 'IDBIndex.count', 252 'IDBIndex.count',
252 'IDBIndex.get', 253 'IDBIndex.get',
253 'IDBIndex.getKey', 254 'IDBIndex.getKey',
254 'IDBIndex.openCursor', 255 'IDBIndex.openCursor',
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 763
763 # We're looking for a sequence of letters which start with capital letter 764 # We're looking for a sequence of letters which start with capital letter
764 # then a series of caps and finishes with either the end of the string or 765 # then a series of caps and finishes with either the end of the string or
765 # a capital letter. 766 # a capital letter.
766 # The [0-9] check is for names such as 2D or 3D 767 # The [0-9] check is for names such as 2D or 3D
767 # The following test cases should match as: 768 # The following test cases should match as:
768 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 769 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
769 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 770 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
770 # IFrameElement: (I)()(F)rameElement (no change) 771 # IFrameElement: (I)()(F)rameElement (no change)
771 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 772 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698