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

Unified Diff: ios/web/web_state/js/resources/common.js

Issue 1785643004: [ios] Removed __gCrWeb.common.isFocusable JS API as unused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/js/resources/common.js
diff --git a/ios/web/web_state/js/resources/common.js b/ios/web/web_state/js/resources/common.js
index e5fbc83609a194a18dad0a5707200ee6b1e8c740..41c7485da254d687b5d5efb0bb85dc8482d70d10 100644
--- a/ios/web/web_state/js/resources/common.js
+++ b/ios/web/web_state/js/resources/common.js
@@ -79,19 +79,6 @@ __gCrWeb['common'] = {};
};
/**
- * Detects focusable elements.
- * @param {Element} element A DOM element.
- * @return {boolean} true if the |element| is focusable.
- */
- __gCrWeb.common.isFocusable = function(element) {
- // When the disabled or hidden attributes are present, controls do not
- // receive focus.
- if (element.hasAttribute('disabled') || element.hasAttribute('hidden'))
- return false;
- return __gCrWeb.common.isFormControlElement(element);
- };
-
- /**
* Returns an array of control elements in a form.
*
* This method is based on the logic in method
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698