| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 'HTMLTableRowElement.ch', | 355 'HTMLTableRowElement.ch', |
| 356 'HTMLTableRowElement.chOff', | 356 'HTMLTableRowElement.chOff', |
| 357 'HTMLTableRowElement.vAlign', | 357 'HTMLTableRowElement.vAlign', |
| 358 'HTMLTableSectionElement.align', | 358 'HTMLTableSectionElement.align', |
| 359 'HTMLTableSectionElement.ch', | 359 'HTMLTableSectionElement.ch', |
| 360 'HTMLTableSectionElement.chOff', | 360 'HTMLTableSectionElement.chOff', |
| 361 'HTMLTableSectionElement.vAlign', | 361 'HTMLTableSectionElement.vAlign', |
| 362 'HTMLTitleElement.text', | 362 'HTMLTitleElement.text', |
| 363 'HTMLUListElement.compact', | 363 'HTMLUListElement.compact', |
| 364 'HTMLUListElement.type', | 364 'HTMLUListElement.type', |
| 365 'NamedNodeMap.*', | |
| 366 'Node.compareDocumentPosition', | 365 'Node.compareDocumentPosition', |
| 367 'Node.get:ATTRIBUTE_NODE', | 366 'Node.get:ATTRIBUTE_NODE', |
| 368 'Node.get:CDATA_SECTION_NODE', | 367 'Node.get:CDATA_SECTION_NODE', |
| 369 'Node.get:COMMENT_NODE', | 368 'Node.get:COMMENT_NODE', |
| 370 'Node.get:DOCUMENT_FRAGMENT_NODE', | 369 'Node.get:DOCUMENT_FRAGMENT_NODE', |
| 371 'Node.get:DOCUMENT_NODE', | 370 'Node.get:DOCUMENT_NODE', |
| 372 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', | 371 'Node.get:DOCUMENT_POSITION_CONTAINED_BY', |
| 373 'Node.get:DOCUMENT_POSITION_CONTAINS', | 372 'Node.get:DOCUMENT_POSITION_CONTAINS', |
| 374 'Node.get:DOCUMENT_POSITION_DISCONNECTED', | 373 'Node.get:DOCUMENT_POSITION_DISCONNECTED', |
| 375 'Node.get:DOCUMENT_POSITION_FOLLOWING', | 374 'Node.get:DOCUMENT_POSITION_FOLLOWING', |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 486 |
| 488 # We're looking for a sequence of letters which start with capital letter | 487 # We're looking for a sequence of letters which start with capital letter |
| 489 # then a series of caps and finishes with either the end of the string or | 488 # then a series of caps and finishes with either the end of the string or |
| 490 # a capital letter. | 489 # a capital letter. |
| 491 # The [0-9] check is for names such as 2D or 3D | 490 # The [0-9] check is for names such as 2D or 3D |
| 492 # The following test cases should match as: | 491 # The following test cases should match as: |
| 493 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 492 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 494 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 493 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 495 # IFrameElement: (I)()(F)rameElement (no change) | 494 # IFrameElement: (I)()(F)rameElement (no change) |
| 496 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 495 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |