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

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

Issue 22305005: Make includeAncestors match a separate method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/src/EventStreamProvider.dart » ('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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 'Window.clearTimeout': '_clearTimeout', 319 'Window.clearTimeout': '_clearTimeout',
320 'Window.clearInterval': '_clearInterval', 320 'Window.clearInterval': '_clearInterval',
321 'Window.setTimeout': '_setTimeout', 321 'Window.setTimeout': '_setTimeout',
322 'Window.setInterval': '_setInterval', 322 'Window.setInterval': '_setInterval',
323 'Window.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage', 323 'Window.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage',
324 'Window.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode', 324 'Window.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode',
325 'Window.webkitNotifications': 'notifications', 325 'Window.webkitNotifications': 'notifications',
326 'Window.webkitRequestFileSystem': '_requestFileSystem', 326 'Window.webkitRequestFileSystem': '_requestFileSystem',
327 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 327 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
328 'Element.querySelector': 'query', 328 'Element.querySelector': 'query',
329 'Element.webkitMatchesSelector' : '_matches', 329 'Element.webkitMatchesSelector' : 'matches',
330 'MutationObserver.observe': '_observe', 330 'MutationObserver.observe': '_observe',
331 'Navigator.webkitGetUserMedia': '_getUserMedia', 331 'Navigator.webkitGetUserMedia': '_getUserMedia',
332 'Node.appendChild': 'append', 332 'Node.appendChild': 'append',
333 'Node.cloneNode': 'clone', 333 'Node.cloneNode': 'clone',
334 'Node.nextSibling': 'nextNode', 334 'Node.nextSibling': 'nextNode',
335 'Node.ownerDocument': 'document', 335 'Node.ownerDocument': 'document',
336 'Node.parentElement': 'parent', 336 'Node.parentElement': 'parent',
337 'Node.previousSibling': 'previousNode', 337 'Node.previousSibling': 'previousNode',
338 'Node.textContent': 'text', 338 'Node.textContent': 'text',
339 'RTCPeerConnection.createAnswer': '_createAnswer', 339 'RTCPeerConnection.createAnswer': '_createAnswer',
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 861
862 # We're looking for a sequence of letters which start with capital letter 862 # We're looking for a sequence of letters which start with capital letter
863 # then a series of caps and finishes with either the end of the string or 863 # then a series of caps and finishes with either the end of the string or
864 # a capital letter. 864 # a capital letter.
865 # The [0-9] check is for names such as 2D or 3D 865 # The [0-9] check is for names such as 2D or 3D
866 # The following test cases should match as: 866 # The following test cases should match as:
867 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 867 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
868 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 868 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
869 # IFrameElement: (I)()(F)rameElement (no change) 869 # IFrameElement: (I)()(F)rameElement (no change)
870 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 870 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698