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

Unified Diff: tools/dom/scripts/htmlrenamer.py

Issue 12715003: Cleaning up document.query (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/docs/docs.json ('k') | tools/dom/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmlrenamer.py
diff --git a/tools/dom/scripts/htmlrenamer.py b/tools/dom/scripts/htmlrenamer.py
index 8ac2e15ad1ac8ce5311c76b3c09e91b34eb41290..a31d311e772401378c0fe4f64228dac7f5a8a799 100644
--- a/tools/dom/scripts/htmlrenamer.py
+++ b/tools/dom/scripts/htmlrenamer.py
@@ -135,11 +135,6 @@ _private_html_members = monitored.Set('htmlrenamer._private_html_members', [
'Document.createTextNode',
'Document.createTouch',
'Document.createTouchList',
- 'Document.getElementById',
- 'Document.getElementsByClassName',
- 'Document.getElementsByName',
- 'Document.getElementsByTagName',
- 'Document.querySelector',
'Document.querySelectorAll',
# Moved to HTMLDocument.
@@ -176,7 +171,6 @@ _private_html_members = monitored.Set('htmlrenamer._private_html_members', [
'Element.firstElementChild',
'Element.getAttribute',
'Element.getAttributeNS',
- 'Element.getElementsByClassName',
'Element.getElementsByTagName',
'Element.hasAttribute',
'Element.hasAttributeNS',
@@ -185,7 +179,6 @@ _private_html_members = monitored.Set('htmlrenamer._private_html_members', [
'Element.offsetLeft',
'Element.offsetTop',
'Element.offsetWidth',
- 'Element.querySelector',
'Element.querySelectorAll',
'Element.removeAttribute',
'Element.removeAttributeNS',
@@ -259,9 +252,6 @@ _private_html_members = monitored.Set('htmlrenamer._private_html_members', [
'Screen.availLeft',
'Screen.availTop',
'Screen.availWidth',
- 'ShadowRoot.getElementById',
- 'ShadowRoot.getElementsByClassName',
- 'ShadowRoot.getElementsByTagName',
'Storage.clear',
'Storage.getItem',
'Storage.key',
@@ -295,6 +285,7 @@ _private_html_members = monitored.Set('htmlrenamer._private_html_members', [
renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
'Document.createCDATASection': 'createCDataSection',
'Document.defaultView': 'window',
+ 'Document.querySelector': 'query',
'DOMURL.createObjectURL': 'createObjectUrl',
'DOMURL.revokeObjectURL': 'revokeObjectUrl',
'DOMWindow.clearTimeout': '_clearTimeout',
@@ -306,6 +297,7 @@ renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
'DOMWindow.webkitNotifications': 'notifications',
'DOMWindow.webkitRequestFileSystem': 'requestFileSystem',
'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
+ 'Element.querySelector': 'query',
'Element.webkitCreateShadowRoot': 'createShadowRoot',
'Element.webkitMatchesSelector' : 'matches',
'Navigator.webkitGetUserMedia': '_getUserMedia',
« no previous file with comments | « tools/dom/docs/docs.json ('k') | tools/dom/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698