| Index: third_party/polymer/v0_8/components-chromium/polymer/src/mini/shadow-extracted.js
|
| diff --git a/third_party/polymer/v0_8/components-chromium/polymer/src/mini/shadow-extracted.js b/third_party/polymer/v0_8/components-chromium/polymer/src/mini/shadow-extracted.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2166e198da9a29c5f8acbde202916c9b374740ed
|
| --- /dev/null
|
| +++ b/third_party/polymer/v0_8/components-chromium/polymer/src/mini/shadow-extracted.js
|
| @@ -0,0 +1,30 @@
|
| +
|
| +
|
| + /**
|
| + Implements `shadyRoot` compatible dom scoping using native ShadowDOM.
|
| + */
|
| +
|
| + // Transform styles if not using ShadowDOM or if flag is set.
|
| +
|
| + if (Polymer.Settings.useShadow) {
|
| +
|
| + Polymer.Base._addFeature({
|
| +
|
| + // no-op's when ShadowDOM is in use
|
| + _poolContent: function() {},
|
| + _beginDistribute: function() {},
|
| + distributeContent: function() {},
|
| + _distributeContent: function() {},
|
| + _finishDistribute: function() {},
|
| +
|
| + // create a shadowRoot
|
| + _createLocalRoot: function() {
|
| + this.createShadowRoot();
|
| + this.shadowRoot.appendChild(this.root);
|
| + this.root = this.shadowRoot;
|
| + }
|
| +
|
| + });
|
| +
|
| + }
|
| +
|
|
|