| Index: ui/webui/resources/js/i18n_template_no_process.js
|
| diff --git a/ui/webui/resources/js/i18n_template_no_process.js b/ui/webui/resources/js/i18n_template_no_process.js
|
| index 44262810b0328671273ec433f4b6a5b0f2c24496..4e7a7df6da2b545cc9e22e233bf4a312c418a103 100644
|
| --- a/ui/webui/resources/js/i18n_template_no_process.js
|
| +++ b/ui/webui/resources/js/i18n_template_no_process.js
|
| @@ -111,14 +111,7 @@ var i18nTemplate = (function() {
|
| };
|
|
|
| var attributeNames = Object.keys(handlers);
|
| - // Chrome for iOS must use Apple's UIWebView, which (as of April 2015) does
|
| - // not have native shadow DOM support. If shadow DOM is supported (or
|
| - // polyfilled), search for i18n attributes using the /deep/ selector;
|
| - // otherwise, do not attempt to search within the shadow DOM.
|
| - var selector =
|
| - (window.document.body && window.document.body.createShadowRoot) ?
|
| - 'html /deep/ [' + attributeNames.join('],[') + ']' :
|
| - '[' + attributeNames.join('],[') + ']';
|
| + var selector = '[' + attributeNames.join('],[') + ']';
|
|
|
| /**
|
| * Processes a DOM tree with the {@code dictionary} map.
|
| @@ -136,7 +129,7 @@ var i18nTemplate = (function() {
|
| }
|
| }
|
| var doc = root instanceof Document ? root : root.ownerDocument;
|
| - if (doc)
|
| + if (doc && doc.documentElement)
|
| doc.documentElement.classList.add('i18n-processed');
|
| }
|
|
|
|
|