Chromium Code Reviews| Index: pkg/shadow_dom/lib/shadow_dom.debug.js |
| diff --git a/pkg/shadow_dom/lib/shadow_dom.debug.js b/pkg/shadow_dom/lib/shadow_dom.debug.js |
| index b889a5ef7641e88b18def663b474fd422bcafc32..c96a6a469feb71542ebd34a59ad0dbfc810a3dd0 100644 |
| --- a/pkg/shadow_dom/lib/shadow_dom.debug.js |
| +++ b/pkg/shadow_dom/lib/shadow_dom.debug.js |
| @@ -1,5 +1,4 @@ |
| -if ((!HTMLElement.prototype.createShadowRoot && |
| - !HTMLElement.prototype.webkitCreateShadowRoot) || |
| +if ((!HTMLElement.prototype.createShadowRoot) || |
| window.__forceShadowDomPolyfill) { |
| /* |
| @@ -5135,8 +5134,10 @@ var ShadowDOMPolyfill = {}; |
| // TODO(jmesserly): do we still need these? |
| if (obj instanceof NodeList) return 'NodeList'; |
| if (obj instanceof ShadowRoot) return 'ShadowRoot'; |
| - if (obj instanceof MutationRecord) return 'MutationRecord'; |
| - if (obj instanceof MutationObserver) return 'MutationObserver'; |
| + if (window.MutationRecord && (obj instanceof MutationRecord)) |
|
blois
2013/09/20 23:27:36
Note that I can't get the build tool to run (can't
|
| + return 'MutationRecord'; |
| + if (window.MutationObserver && (obj instanceof MutationObserver)) |
| + return 'MutationObserver'; |
| var unwrapped = unwrapIfNeeded(obj); |
| if (obj !== unwrapped) { |
| @@ -5688,4 +5689,4 @@ scope.ShadowCSS = ShadowCSS; |
| scope.ShadowCSS.shimShadowDOMStyling2 = shimShadowDOMStyling2; |
| })(window.Platform); |
| -} |
| +} |