@@ -6,15 +6,7 @@ license that can be found in the LICENSE file.
6
6
7
7
( function ( scope ) {
8
8
9
- /*
10
- if (HTMLElement.prototype.webkitShadowRoot) {
11
- Object.defineProperty(HTMLElement.prototype, 'shadowRoot', {
12
- get: function() {
13
- return this.webkitShadowRoot;
14
- }
15
- };
16
- }
17
- */
9
+ var logFlags = window . logFlags || { } ;
18
10
19
11
// walk the subtree rooted at node, applying 'find(element, data)' function
20
12
// to each element
@@ -197,13 +189,6 @@ function watchRoot(root) {
197
189
}
198
190
}
199
191
200
- function watchAllShadows ( node ) {
201
- watchShadow ( node ) ;
202
- forSubtree ( node , function ( e ) {
203
- watchShadow ( node ) ;
204
- } ) ;
205
- }
206
-
207
192
function filter ( inNode ) {
208
193
switch ( inNode . localName ) {
209
194
case 'style' :
@@ -239,11 +224,6 @@ function handler(mutations) {
239
224
if ( filter ( n ) ) {
240
225
return ;
241
226
}
242
- // watch shadow-roots on nodes that have had them attached manually
243
- // TODO(sjmiles): remove if createShadowRoot is overridden
244
- // TODO(sjmiles): removed as an optimization, manual shadow roots
245
- // must be watched explicitly
246
- //watchAllShadows(n);
247
227
// nodes added may need lifecycle management
248
228
addedNode ( n ) ;
249
229
} ) ;
@@ -287,8 +267,6 @@ function upgradeDocument(document) {
287
267
// exports
288
268
289
269
scope . watchShadow = watchShadow ;
290
- scope . watchAllShadows = watchAllShadows ;
291
-
292
270
scope . upgradeAll = addedNode ;
293
271
scope . upgradeSubtree = addedSubtree ;
294
272
0 commit comments