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

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

Issue 12605003: Converting Element.client*, offset* and Screen.avail* over to Rects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « tests/html/element_test.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('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 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { 9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', {
10 'CDATASection': 'CDataSection', 10 'CDATASection': 'CDataSection',
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 'Document.webkitHidden', 161 'Document.webkitHidden',
162 'Document.webkitIsFullScreen', 162 'Document.webkitIsFullScreen',
163 'Document.webkitPointerLockElement', 163 'Document.webkitPointerLockElement',
164 'Document.webkitVisibilityState', 164 'Document.webkitVisibilityState',
165 165
166 'DocumentFragment.querySelector', 166 'DocumentFragment.querySelector',
167 'DocumentFragment.querySelectorAll', 167 'DocumentFragment.querySelectorAll',
168 'Element.childElementCount', 168 'Element.childElementCount',
169 'Element.children', 169 'Element.children',
170 'Element.className', 170 'Element.className',
171 'Element.clientHeight',
172 'Element.clientLeft',
173 'Element.clientTop',
174 'Element.clientWidth',
171 'Element.firstElementChild', 175 'Element.firstElementChild',
172 'Element.getAttribute', 176 'Element.getAttribute',
173 'Element.getAttributeNS', 177 'Element.getAttributeNS',
174 'Element.getElementsByClassName', 178 'Element.getElementsByClassName',
175 'Element.getElementsByTagName', 179 'Element.getElementsByTagName',
176 'Element.hasAttribute', 180 'Element.hasAttribute',
177 'Element.hasAttributeNS', 181 'Element.hasAttributeNS',
178 'Element.lastElementChild', 182 'Element.lastElementChild',
183 'Element.offsetHeight',
184 'Element.offsetLeft',
185 'Element.offsetTop',
186 'Element.offsetWidth',
179 'Element.querySelector', 187 'Element.querySelector',
180 'Element.querySelectorAll', 188 'Element.querySelectorAll',
181 'Element.removeAttribute', 189 'Element.removeAttribute',
182 'Element.removeAttributeNS', 190 'Element.removeAttributeNS',
183 'Element.scrollIntoView', 191 'Element.scrollIntoView',
184 'Element.scrollIntoViewIfNeeded', 192 'Element.scrollIntoViewIfNeeded',
185 'Element.setAttributeNS', 193 'Element.setAttributeNS',
186 'Element.setAttribute', 194 'Element.setAttribute',
187 'Element.setAttributeNS', 195 'Element.setAttributeNS',
188 'ElementTraversal.childElementCount', 196 'ElementTraversal.childElementCount',
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 'MutationEvent.initMutationEvent', 248 'MutationEvent.initMutationEvent',
241 'Node.appendChild', 249 'Node.appendChild',
242 'Node.attributes', 250 'Node.attributes',
243 'Node.childNodes', 251 'Node.childNodes',
244 'Node.firstChild', 252 'Node.firstChild',
245 'Node.lastChild', 253 'Node.lastChild',
246 'Node.localName', 254 'Node.localName',
247 'Node.namespaceURI', 255 'Node.namespaceURI',
248 'Node.removeChild', 256 'Node.removeChild',
249 'Node.replaceChild', 257 'Node.replaceChild',
258 'Screen.availHeight',
259 'Screen.availLeft',
260 'Screen.availTop',
261 'Screen.availWidth',
250 'ShadowRoot.getElementById', 262 'ShadowRoot.getElementById',
251 'ShadowRoot.getElementsByClassName', 263 'ShadowRoot.getElementsByClassName',
252 'ShadowRoot.getElementsByTagName', 264 'ShadowRoot.getElementsByTagName',
253 'Storage.clear', 265 'Storage.clear',
254 'Storage.getItem', 266 'Storage.getItem',
255 'Storage.key', 267 'Storage.key',
256 'Storage.length', 268 'Storage.length',
257 'Storage.removeItem', 269 'Storage.removeItem',
258 'Storage.setItem', 270 'Storage.setItem',
259 'StorageEvent.initStorageEvent', 271 'StorageEvent.initStorageEvent',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 308 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
297 'Element.webkitCreateShadowRoot': 'createShadowRoot', 309 'Element.webkitCreateShadowRoot': 'createShadowRoot',
298 'Element.webkitMatchesSelector' : 'matches', 310 'Element.webkitMatchesSelector' : 'matches',
299 'Navigator.webkitGetUserMedia': '_getUserMedia', 311 'Navigator.webkitGetUserMedia': '_getUserMedia',
300 'Node.cloneNode': 'clone', 312 'Node.cloneNode': 'clone',
301 'Node.nextSibling': 'nextNode', 313 'Node.nextSibling': 'nextNode',
302 'Node.ownerDocument': 'document', 314 'Node.ownerDocument': 'document',
303 'Node.parentElement': 'parent', 315 'Node.parentElement': 'parent',
304 'Node.previousSibling': 'previousNode', 316 'Node.previousSibling': 'previousNode',
305 'Node.textContent': 'text', 317 'Node.textContent': 'text',
318 'SVGComponentTransferFunctionElement.offset': 'gradientOffset',
306 'SVGElement.className': '$dom_svgClassName', 319 'SVGElement.className': '$dom_svgClassName',
320 'SVGStopElement.offset': 'gradientOffset',
307 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem', 321 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem',
308 'WorkerContext.webkitRequestFileSystemSync': 'requestFileSystemSync', 322 'WorkerContext.webkitRequestFileSystemSync': 'requestFileSystemSync',
309 'WorkerContext.webkitResolveLocalFileSystemSyncURL': 323 'WorkerContext.webkitResolveLocalFileSystemSyncURL':
310 'resolveLocalFileSystemSyncUrl', 324 'resolveLocalFileSystemSyncUrl',
311 'WorkerContext.webkitResolveLocalFileSystemURL': 325 'WorkerContext.webkitResolveLocalFileSystemURL':
312 'resolveLocalFileSystemUrl', 326 'resolveLocalFileSystemUrl',
313 }) 327 })
314 328
315 for member in convert_to_future_members: 329 for member in convert_to_future_members:
316 if member in renamed_html_members: 330 if member in renamed_html_members:
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 709
696 # We're looking for a sequence of letters which start with capital letter 710 # We're looking for a sequence of letters which start with capital letter
697 # then a series of caps and finishes with either the end of the string or 711 # then a series of caps and finishes with either the end of the string or
698 # a capital letter. 712 # a capital letter.
699 # The [0-9] check is for names such as 2D or 3D 713 # The [0-9] check is for names such as 2D or 3D
700 # The following test cases should match as: 714 # The following test cases should match as:
701 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 715 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
702 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 716 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
703 # IFrameElement: (I)()(F)rameElement (no change) 717 # IFrameElement: (I)()(F)rameElement (no change)
704 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 718 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/element_test.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698