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

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

Issue 23808005: Added back childNodes and getAttribute and setAttribute. (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 | « tools/dom/dom.json ('k') | tools/dom/src/AttributeMap.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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 'Document.webkitFullscreenElement', 204 'Document.webkitFullscreenElement',
205 'Document.webkitFullscreenEnabled', 205 'Document.webkitFullscreenEnabled',
206 'Document.webkitHidden', 206 'Document.webkitHidden',
207 'Document.webkitIsFullScreen', 207 'Document.webkitIsFullScreen',
208 'Document.webkitPointerLockElement', 208 'Document.webkitPointerLockElement',
209 'Document.webkitVisibilityState', 209 'Document.webkitVisibilityState',
210 210
211 'Element.children', 211 'Element.children',
212 'Element.childElementCount', 212 'Element.childElementCount',
213 'Element.firstElementChild', 213 'Element.firstElementChild',
214 'Element.getAttribute',
215 'Element.getAttributeNS',
216 'Element.getElementsByTagName', 214 'Element.getElementsByTagName',
217 'Element.scrollIntoView', 215 'Element.scrollIntoView',
218 'Element.scrollIntoViewIfNeeded', 216 'Element.scrollIntoViewIfNeeded',
219 'Element.setAttribute',
220 'Element.setAttributeNS',
221 'Element.removeAttribute', 217 'Element.removeAttribute',
222 'Element.removeAttributeNS', 218 'Element.removeAttributeNS',
223 'Element.hasAttribute', 219 'Element.hasAttribute',
224 'Element.hasAttributeNS', 220 'Element.hasAttributeNS',
225 'Element.innerHTML', 221 'Element.innerHTML',
226 'Element.querySelectorAll', 222 'Element.querySelectorAll',
227 'Event.initEvent', 223 'Event.initEvent',
228 'Geolocation.clearWatch', 224 'Geolocation.clearWatch',
229 'Geolocation.getCurrentPosition', 225 'Geolocation.getCurrentPosition',
230 'Geolocation.watchPosition', 226 'Geolocation.watchPosition',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 'MouseEvent.clientY', 265 'MouseEvent.clientY',
270 'MouseEvent.webkitMovementX', 266 'MouseEvent.webkitMovementX',
271 'MouseEvent.webkitMovementY', 267 'MouseEvent.webkitMovementY',
272 'MouseEvent.offsetX', 268 'MouseEvent.offsetX',
273 'MouseEvent.offsetY', 269 'MouseEvent.offsetY',
274 'MouseEvent.screenX', 270 'MouseEvent.screenX',
275 'MouseEvent.screenY', 271 'MouseEvent.screenY',
276 'MutationEvent.initMutationEvent', 272 'MutationEvent.initMutationEvent',
277 'MutationObserver.observe', 273 'MutationObserver.observe',
278 'Node.attributes', 274 'Node.attributes',
279 'Node.childNodes',
280 'Node.localName', 275 'Node.localName',
281 'Node.namespaceURI', 276 'Node.namespaceURI',
282 'Node.removeChild', 277 'Node.removeChild',
283 'Node.replaceChild', 278 'Node.replaceChild',
284 'ParentNode.childElementCount', 279 'ParentNode.childElementCount',
285 'ParentNode.children', 280 'ParentNode.children',
286 'ParentNode.firstElementChild', 281 'ParentNode.firstElementChild',
287 'ParentNode.lastElementChild', 282 'ParentNode.lastElementChild',
288 'RTCPeerConnection.createAnswer', 283 'RTCPeerConnection.createAnswer',
289 'RTCPeerConnection.createOffer', 284 'RTCPeerConnection.createOffer',
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 892
898 # We're looking for a sequence of letters which start with capital letter 893 # 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 894 # then a series of caps and finishes with either the end of the string or
900 # a capital letter. 895 # a capital letter.
901 # The [0-9] check is for names such as 2D or 3D 896 # The [0-9] check is for names such as 2D or 3D
902 # The following test cases should match as: 897 # The following test cases should match as:
903 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 898 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
904 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 899 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
905 # IFrameElement: (I)()(F)rameElement (no change) 900 # IFrameElement: (I)()(F)rameElement (no change)
906 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 901 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/src/AttributeMap.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698