diff options
author | Ben Murdoch <benm@google.com> | 2014-04-01 10:55:12 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2014-04-01 10:55:12 +0100 |
commit | 4ad1aa43a48567659193a298fad74f55e00b3dd9 (patch) | |
tree | b98c2a945dbec61aeb9edef5e371f905e7ab5b37 /chrome/test | |
parent | e92e8c41ae2718e381c0796a2c0b115a7d017a21 (diff) | |
download | chromium_org-4ad1aa43a48567659193a298fad74f55e00b3dd9.tar.gz |
Merge from Chromium at DEPS revision 260540
This commit was generated by merge_to_master.py.
Change-Id: I10b8e4931992bb84eb4da800a337bbd0a52f6588
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/chromedriver/js/call_function.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/chromedriver/js/call_function.js b/chrome/test/chromedriver/js/call_function.js index 7a194b8a7e..f31f95f12c 100644 --- a/chrome/test/chromedriver/js/call_function.js +++ b/chrome/test/chromedriver/js/call_function.js @@ -32,7 +32,7 @@ var ELEMENT_KEY = 'ELEMENT'; * @const * @type {boolean} */ -var SHADOW_DOM_ENABLED = typeof WebKitShadowRoot === 'function'; +var SHADOW_DOM_ENABLED = typeof ShadowRoot === 'function'; /** * A cache which maps IDs <-> cached objects for the purpose of identifying @@ -100,7 +100,7 @@ Cache.prototype = { var nodeRoot = getNodeRoot(node); if (nodeRoot == document) return true; - else if (SHADOW_DOM_ENABLED && nodeRoot instanceof WebKitShadowRoot) + else if (SHADOW_DOM_ENABLED && nodeRoot instanceof ShadowRoot) return true; return false; @@ -145,7 +145,7 @@ function wrap(value) { if (typeof(value) == 'object' && value != null) { var nodeType = value['nodeType']; if (nodeType == NodeType.ELEMENT || nodeType == NodeType.DOCUMENT - || (SHADOW_DOM_ENABLED && value instanceof WebKitShadowRoot)) { + || (SHADOW_DOM_ENABLED && value instanceof ShadowRoot)) { var wrapped = {}; var root = getNodeRoot(value); wrapped[ELEMENT_KEY] = getPageCache(root).storeItem(value); |