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

Unified Diff: runtime/bin/vmservice/observatory/deployed/web/packages/shadow_dom/src/platform/patches-shadowdom-polyfill-before.js

Issue 839543002: Revert "Build Observatory with runtime" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
Index: runtime/bin/vmservice/observatory/deployed/web/packages/shadow_dom/src/platform/patches-shadowdom-polyfill-before.js
diff --git a/runtime/bin/vmservice/observatory/deployed/web/packages/shadow_dom/src/platform/patches-shadowdom-polyfill-before.js b/runtime/bin/vmservice/observatory/deployed/web/packages/shadow_dom/src/platform/patches-shadowdom-polyfill-before.js
new file mode 100644
index 0000000000000000000000000000000000000000..fe15015bdc9fb3188437619a398b0fc3529220e8
--- /dev/null
+++ b/runtime/bin/vmservice/observatory/deployed/web/packages/shadow_dom/src/platform/patches-shadowdom-polyfill-before.js
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2013 The Polymer Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style
+ * license that can be found in the LICENSE file.
+ */
+(function() {
+ // TODO(jmesserly): fix dart:html to use unprefixed name
+ if (Element.prototype.webkitCreateShadowRoot) {
+ Element.prototype.webkitCreateShadowRoot = function() {
+ return window.ShadowDOMPolyfill.wrapIfNeeded(this).createShadowRoot();
+ };
+ }
+})();

Powered by Google App Engine
This is Rietveld 408576698