diff options
author | eugenebut <eugenebut@chromium.org> | 2016-03-10 11:14:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-10 19:16:27 +0000 |
commit | 052e35ef45599a7f2d54e7d33e3f8f928810be99 (patch) | |
tree | f99869d7fb940e257f38b0f9b279e0e115425090 /ios | |
parent | dea2efb645e7ac6bae644658f963b096c2800652 (diff) | |
download | chromium_src-052e35ef45599a7f2d54e7d33e3f8f928810be99.zip chromium_src-052e35ef45599a7f2d54e7d33e3f8f928810be99.tar.gz chromium_src-052e35ef45599a7f2d54e7d33e3f8f928810be99.tar.bz2 |
[ios] Removed __gCrWeb.common.isFocusable JS API as unused.
BUG=579697
Review URL: https://codereview.chromium.org/1785643004
Cr-Commit-Position: refs/heads/master@{#380442}
Diffstat (limited to 'ios')
-rw-r--r-- | ios/web/web_state/js/resources/common.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ios/web/web_state/js/resources/common.js b/ios/web/web_state/js/resources/common.js index e5fbc836..41c7485 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 |