From 555252b6b6cc19455f977a578972cfb9b970ef98 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Tue, 5 Jan 2016 10:45:52 -0800 Subject: [PATCH 1/2] Remove duplicate code related to dom traversal in Polymer.dom. --- src/lib/dom-api-shadow.html | 22 ---------------------- src/lib/dom-api-shady.html | 22 ---------------------- src/lib/dom-api.html | 26 ++++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 44 deletions(-) diff --git a/src/lib/dom-api-shadow.html b/src/lib/dom-api-shadow.html index 6a3cc300..cc73842b 100644 --- a/src/lib/dom-api-shadow.html +++ b/src/lib/dom-api-shadow.html @@ -26,28 +26,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN return TreeApi.arrayCopy(this.node.querySelectorAll(selector)); }, - _query: function(matcher, node) { - node = node || this.node; - var list = []; - this._queryElements(node.childNodes, matcher, list); - return list; - }, - - _queryElements: function(elements, matcher, list) { - for (var i=0, l=elements.length, c; (i Date: Tue, 5 Jan 2016 11:11:05 -0800 Subject: [PATCH 2/2] Include more styling tests under ShadowDOM. Fix custom-style media query test to work under both shadow/shady. --- test/runner.html | 6 ++---- test/unit/custom-style.html | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/runner.html b/test/runner.html index 7ae43c2a..654381b6 100644 --- a/test/runner.html +++ b/test/runner.html @@ -56,10 +56,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN 'unit/styling-remote.html', 'unit/styling-cross-scope-var.html', 'unit/styling-cross-scope-apply.html', - // TODO(sorvell): disable until this Chrome bug is addressed: - // https://code.google.com/p/chromium/issues/detail?id=525280 - // 'unit/styling-cross-scope-var.html?dom=shadow', - // 'unit/styling-cross-scope-apply.html?dom=shadow', + 'unit/styling-cross-scope-var.html?dom=shadow', + 'unit/styling-cross-scope-apply.html?dom=shadow', 'unit/styling-cross-scope-unknown-host.html', 'unit/custom-style.html', 'unit/custom-style.html?dom=shadow', diff --git a/test/unit/custom-style.html b/test/unit/custom-style.html index fef176d1..d04c7340 100644 --- a/test/unit/custom-style.html +++ b/test/unit/custom-style.html @@ -155,7 +155,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
-
+