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

Unified Diff: chrome/test/chromedriver/js/call_function.js

Issue 217013005: Replace WebKitShadowRoot constructor with ShadowRoot constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/test/chromedriver/js/call_function.js
diff --git a/chrome/test/chromedriver/js/call_function.js b/chrome/test/chromedriver/js/call_function.js
index 7a194b8a7e7afecd92d56d1a203e6a6b80e54d7b..f31f95f12cb285e7d0ebfb536d39ce77a01aaacd 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);
« 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