summaryrefslogtreecommitdiffstats
path: root/ios
diff options
context:
space:
mode:
authoreugenebut <eugenebut@chromium.org>2016-03-10 11:14:41 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-10 19:16:27 +0000
commit052e35ef45599a7f2d54e7d33e3f8f928810be99 (patch)
treef99869d7fb940e257f38b0f9b279e0e115425090 /ios
parentdea2efb645e7ac6bae644658f963b096c2800652 (diff)
downloadchromium_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.js13
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