| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 'HTMLTableRowElement.chOff', | 433 'HTMLTableRowElement.chOff', |
| 434 'HTMLTableRowElement.vAlign', | 434 'HTMLTableRowElement.vAlign', |
| 435 'HTMLTableSectionElement.align', | 435 'HTMLTableSectionElement.align', |
| 436 'HTMLTableSectionElement.ch', | 436 'HTMLTableSectionElement.ch', |
| 437 'HTMLTableSectionElement.chOff', | 437 'HTMLTableSectionElement.chOff', |
| 438 'HTMLTableSectionElement.vAlign', | 438 'HTMLTableSectionElement.vAlign', |
| 439 'HTMLTitleElement.text', | 439 'HTMLTitleElement.text', |
| 440 'HTMLUListElement.compact', | 440 'HTMLUListElement.compact', |
| 441 'HTMLUListElement.type', | 441 'HTMLUListElement.type', |
| 442 'MessageEvent.webkitInitMessageEvent', | 442 'MessageEvent.webkitInitMessageEvent', |
| 443 'MouseEvent.x', |
| 444 'MouseEvent.y', |
| 443 'Node.compareDocumentPosition', | 445 'Node.compareDocumentPosition', |
| 444 'Node.get:ATTRIBUTE_NODE', | 446 'Node.get:ATTRIBUTE_NODE', |
| 445 'Node.get:CDATA_SECTION_NODE', | 447 'Node.get:CDATA_SECTION_NODE', |
| 446 'Node.get:COMMENT_NODE', | 448 'Node.get:COMMENT_NODE', |
| 447 'Node.get:DOCUMENT_FRAGMENT_NODE', | 449 'Node.get:DOCUMENT_FRAGMENT_NODE', |
| 448 'Node.get:DOCUMENT_NODE', | 450 'Node.get:DOCUMENT_NODE', |
| 449 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', | 451 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', |
| 450 'Node.get:DOCUMENT_POSITION_CONTAINS', | 452 'Node.get:DOCUMENT_POSITION_CONTAINS', |
| 451 'Node.get:DOCUMENT_POSITION_DISCONNECTED', | 453 'Node.get:DOCUMENT_POSITION_DISCONNECTED', |
| 452 'Node.get:DOCUMENT_POSITION_FOLLOWING', | 454 'Node.get:DOCUMENT_POSITION_FOLLOWING', |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 | 576 |
| 575 # We're looking for a sequence of letters which start with capital letter | 577 # We're looking for a sequence of letters which start with capital letter |
| 576 # then a series of caps and finishes with either the end of the string or | 578 # then a series of caps and finishes with either the end of the string or |
| 577 # a capital letter. | 579 # a capital letter. |
| 578 # The [0-9] check is for names such as 2D or 3D | 580 # The [0-9] check is for names such as 2D or 3D |
| 579 # The following test cases should match as: | 581 # The following test cases should match as: |
| 580 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 582 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 581 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 583 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 582 # IFrameElement: (I)()(F)rameElement (no change) | 584 # IFrameElement: (I)()(F)rameElement (no change) |
| 583 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 585 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |