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

Unified Diff: pkg/shadow_dom/tool/shadowdom.js

Issue 158083002: introduce web_components pkg for consolidated polyfills (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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: pkg/shadow_dom/tool/shadowdom.js
diff --git a/pkg/shadow_dom/tool/shadowdom.js b/pkg/shadow_dom/tool/shadowdom.js
deleted file mode 100644
index 91f58197c17ce457e6b9186c7eb32269f23aa410..0000000000000000000000000000000000000000
--- a/pkg/shadow_dom/tool/shadowdom.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 The Polymer Authors. All rights reserved.
-// Use of this source code is goverened by a BSD-style
-// license that can be found in the LICENSE file.
-
-(function() {
- var thisFile = 'shadowdom.js';
- var base = '';
- Array.prototype.forEach.call(document.querySelectorAll('script[src]'), function(s) {
- var src = s.getAttribute('src');
- var re = new RegExp(thisFile + '[^\\\\]*');
- var match = src.match(re);
- if (match) {
- base = src.slice(0, -match[0].length);
- }
- });
- base += '../../../third_party/polymer/ShadowDOM/src/';
-
- [
- 'sidetable.js',
- 'wrappers.js',
- 'wrappers/events.js',
- 'wrappers/NodeList.js',
- 'wrappers/Node.js',
- 'querySelector.js',
- 'wrappers/node-interfaces.js',
- 'wrappers/CharacterData.js',
- 'wrappers/Element.js',
- 'wrappers/HTMLElement.js',
- 'wrappers/HTMLContentElement.js',
- 'wrappers/HTMLShadowElement.js',
- 'wrappers/HTMLTemplateElement.js',
- 'wrappers/HTMLUnknownElement.js',
- 'wrappers/generic.js',
- 'wrappers/ShadowRoot.js',
- 'ShadowRenderer.js',
- 'wrappers/Document.js',
- 'wrappers/Window.js',
- 'wrappers/MutationObserver.js',
- 'wrappers/override-constructors.js'
- ].forEach(function(src) {
- document.write('<script src="' + base + src + '"></script>');
- });
-
-})();

Powered by Google App Engine
This is Rietveld 408576698