| 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 typed_array_renames = { | 9 typed_array_renames = { |
| 10 'ArrayBuffer': 'ByteBuffer', | 10 'ArrayBuffer': 'ByteBuffer', |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ | 168 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ |
| 169 'AudioNode.connect', | 169 'AudioNode.connect', |
| 170 'CanvasRenderingContext2D.arc', | 170 'CanvasRenderingContext2D.arc', |
| 171 'CanvasRenderingContext2D.drawImage', | 171 'CanvasRenderingContext2D.drawImage', |
| 172 'CompositionEvent.initCompositionEvent', | 172 'CompositionEvent.initCompositionEvent', |
| 173 'CustomEvent.initCustomEvent', | 173 'CustomEvent.initCustomEvent', |
| 174 'CSSStyleDeclaration.getPropertyValue', | 174 'CSSStyleDeclaration.getPropertyValue', |
| 175 'CSSStyleDeclaration.setProperty', | 175 'CSSStyleDeclaration.setProperty', |
| 176 'CSSStyleDeclaration.var', | 176 'CSSStyleDeclaration.var', |
| 177 'DeviceOrientationEvent.initDeviceOrientationEvent', | 177 'DeviceOrientationEvent.initDeviceOrientationEvent', |
| 178 'Document.createElement', |
| 178 'Document.createEvent', | 179 'Document.createEvent', |
| 179 'Document.createNodeIterator', | 180 'Document.createNodeIterator', |
| 180 'Document.createTextNode', | 181 'Document.createTextNode', |
| 181 'Document.createTouch', | 182 'Document.createTouch', |
| 182 'Document.createTouchList', | 183 'Document.createTouchList', |
| 183 'Document.createTreeWalker', | 184 'Document.createTreeWalker', |
| 184 'Document.querySelectorAll', | 185 'Document.querySelectorAll', |
| 185 'DocumentFragment.querySelector', | 186 'DocumentFragment.querySelector', |
| 186 'DocumentFragment.querySelectorAll', | 187 'DocumentFragment.querySelectorAll', |
| 187 | 188 |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 | 895 |
| 895 # We're looking for a sequence of letters which start with capital letter | 896 # We're looking for a sequence of letters which start with capital letter |
| 896 # then a series of caps and finishes with either the end of the string or | 897 # then a series of caps and finishes with either the end of the string or |
| 897 # a capital letter. | 898 # a capital letter. |
| 898 # The [0-9] check is for names such as 2D or 3D | 899 # The [0-9] check is for names such as 2D or 3D |
| 899 # The following test cases should match as: | 900 # The following test cases should match as: |
| 900 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 901 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 901 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 902 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 902 # IFrameElement: (I)()(F)rameElement (no change) | 903 # IFrameElement: (I)()(F)rameElement (no change) |
| 903 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 904 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |