| OLD | NEW |
| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 'DOMCoreException.NO_MODIFICATION_ALLOWED_ERR', | 325 'DOMCoreException.NO_MODIFICATION_ALLOWED_ERR', |
| 326 'DOMCoreException.QUOTA_EXCEEDED_ERR', | 326 'DOMCoreException.QUOTA_EXCEEDED_ERR', |
| 327 'DOMCoreException.SECURITY_ERR', | 327 'DOMCoreException.SECURITY_ERR', |
| 328 'DOMCoreException.SYNTAX_ERR', | 328 'DOMCoreException.SYNTAX_ERR', |
| 329 'DOMCoreException.TIMEOUT_ERR', | 329 'DOMCoreException.TIMEOUT_ERR', |
| 330 'DOMCoreException.TYPE_MISMATCH_ERR', | 330 'DOMCoreException.TYPE_MISMATCH_ERR', |
| 331 'DOMCoreException.URL_MISMATCH_ERR', | 331 'DOMCoreException.URL_MISMATCH_ERR', |
| 332 'DOMCoreException.VALIDATION_ERR', | 332 'DOMCoreException.VALIDATION_ERR', |
| 333 'DOMCoreException.WRONG_DOCUMENT_ERR', | 333 'DOMCoreException.WRONG_DOCUMENT_ERR', |
| 334 'Element.accessKey', | 334 'Element.accessKey', |
| 335 'Element.dataset', |
| 335 'Element.get:classList', | 336 'Element.get:classList', |
| 336 'Element.getAttributeNode', | 337 'Element.getAttributeNode', |
| 337 'Element.getAttributeNodeNS', | 338 'Element.getAttributeNodeNS', |
| 338 'Element.getElementsByTagNameNS', | 339 'Element.getElementsByTagNameNS', |
| 339 'Element.innerText', | 340 'Element.innerText', |
| 340 'Element.outerText', | 341 'Element.outerText', |
| 341 'Element.removeAttributeNode', | 342 'Element.removeAttributeNode', |
| 342 'Element.set:outerHTML', | 343 'Element.set:outerHTML', |
| 343 'Element.setAttributeNode', | 344 'Element.setAttributeNode', |
| 344 'Element.setAttributeNodeNS', | 345 'Element.setAttributeNodeNS', |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 | 592 |
| 592 # We're looking for a sequence of letters which start with capital letter | 593 # We're looking for a sequence of letters which start with capital letter |
| 593 # then a series of caps and finishes with either the end of the string or | 594 # then a series of caps and finishes with either the end of the string or |
| 594 # a capital letter. | 595 # a capital letter. |
| 595 # The [0-9] check is for names such as 2D or 3D | 596 # The [0-9] check is for names such as 2D or 3D |
| 596 # The following test cases should match as: | 597 # The following test cases should match as: |
| 597 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 598 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 598 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 599 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 599 # IFrameElement: (I)()(F)rameElement (no change) | 600 # IFrameElement: (I)()(F)rameElement (no change) |
| 600 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 601 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |