Commit Graph

576 Commits

Author SHA1 Message Date
Steven Orvell
d26b003691 Fixes #3337. When a doc fragment is added, only update the invalidation state of the insertion point list of the shadyRoot IFF it is not already invalid. This fixes an issue that was detected when an a doc fragment that did not include an insertion point was added after one that did but before distribution. 2016-01-27 12:09:57 -08:00
Steve Orvell
83cc3684ef Merge pull request #3323 from Polymer/fix-style-properties
Revert style properties change
2016-01-22 21:31:21 -08:00
Steve Orvell
c5ed4706ab Merge pull request #3325 from Polymer/3324-kschaaf-domif-detach
Ensure dom-if moved into doc fragment is torn down. Fixes #3324
2016-01-22 20:53:15 -08:00
Peter Burns
0a0b580981 Revert style properties change from fd57784705
This broke a number of tests on an internal project.
2016-01-22 20:06:46 -08:00
Steven Orvell
6b839112c7 Fix shadow dom test. 2016-01-22 20:04:10 -08:00
Kevin Schaaf
4b7da35738 Add shadow root support. (tests broken) 2016-01-22 19:55:52 -08:00
Kevin Schaaf
6c4f5d5d65 Ensure dom-if moved into doc fragment is torn down. Fixes #3324 2016-01-22 19:31:13 -08:00
Steven Orvell
d70c40ab05 improve test. 2016-01-22 18:22:38 -08:00
Steven Orvell
fe2699e0cc In addition to fragments, also handle non-distributed elements more completely. 2016-01-22 18:03:56 -08:00
Steven Orvell
25da63d132 Fix test under polypill. 2016-01-22 16:26:08 -08:00
Steven Orvell
101eb3dbd5 Ensure fragments added via Polymer.dom always have elements removed, even when distribution does not select those elements. 2016-01-22 16:18:58 -08:00
Steven Orvell
9f2464df69 Fixes #3321. Only let dom-repeat insert elements in attached if it has been previously detached; correctly avoid re-adding children in document fragments to an element's logical linked list if they are already there. 2016-01-22 16:07:39 -08:00
Kevin Schaaf
55b91b3db7 Merge pull request #3310 from Polymer/fix-svg-scope
Fix svg scope
2016-01-19 12:05:30 -08:00
Steven Orvell
9106398ccf Fixes #3308. Use an explicit undefined check to test if logical tree information exists. 2016-01-19 11:45:29 -08:00
Daniel Freedman
b1ea014529 add test 2016-01-19 10:46:52 -08:00
Steven Orvell
b9e5cce27f Ensure querySelector always returns null when a node is not found. Also optimize querySelector such that the matcher halts on the first result. 2016-01-14 15:39:00 -08:00
Steven Orvell
6e16619a4a Fixes #3295. Only cache a false-y result for an element's owner shady root iff the element is currently in the document. 2016-01-14 15:12:34 -08:00
Steve Orvell
44232bdf03 Merge pull request #2717 from Polymer/bicknellr/activeElement
Adds support for `activeElement` to `Polymer.dom`.
2016-01-08 15:38:05 -08:00
Russell Bicknell
47ee2ca912 Use local references to wrapper functions; add test element tree to native shadow tests; reorder test elements. 2016-01-08 14:51:21 -08:00
Daniel Freedman
d7567b7431 Remove leftover garbage line
Addresses https://github.com/Polymer/polymer/pull/3271/files#r48907696
2016-01-06 14:48:53 -08:00
Russell Bicknell
e848af8964 Removes the case where activeElement could be in the light DOM of a ShadowRoot. 2016-01-06 11:48:50 -08:00
Russell Bicknell
298457610b DOM API implementation of activeElement. 2016-01-06 11:47:34 -08:00
Daniel Freedman
4cbdef740d Remove call to wrap in deepContains
Test Polymer.dom with native shadowroot (chrome only)

Fixes #3273
2016-01-05 14:55:06 -08:00
Daniel Freedman
f452a7f8f6 Merge pull request #3271 from Polymer/bind-is-attached
Fixes #3270.
2016-01-05 14:42:30 -08:00
Steven Orvell
7d0485b18d Fixes #3270. 2016-01-05 14:35:21 -08:00
Steven Orvell
33a24bb8e8 Include more styling tests under ShadowDOM.
Fix custom-style media query test to work under both shadow/shady.
2016-01-05 11:11:05 -08:00
Ruben Stolk
94f505a721 Set position to relative to make Safari to succeed top/bottom tests 2015-12-30 14:46:56 +01:00
Tim van der Lippe
f92f9ff38e Fix parsing of minimized css output 2015-12-28 19:37:13 +01:00
Kevin Schaaf
273ab0fbe6 Merge pull request #3112 from Polymer/shady-linked
ShadyDOM: use a linked-list for tree accessors
2015-12-15 17:09:54 -08:00
Steve Orvell
dd34fc6163 Merge pull request #3202 from Polymer/issue-3201
use destination insertion points when calculating the path
2015-12-15 16:57:26 -08:00
valdrinkoshi
3f8b6ee256 use destination insertion points when calculating the path 2015-12-14 19:26:04 -08:00
Steven Orvell
9a3bead568 Store all dom tree data in __dom private storage; implement composed patching via a linked list. 2015-12-14 18:40:01 -08:00
Daniel Freedman
2b69bb1496 Modernize the build 2015-12-14 16:04:13 -08:00
Daniel Freedman
82b2443a1d Add more globals to whitelist for safari
Fixes #3199
2015-12-14 15:57:17 -08:00
Steven Orvell
e3753dbaeb Merge branch 'master' into shady-linked
Conflicts:
	src/lib/dom-api.html
	src/mini/shady.html
2015-12-11 11:32:25 -08:00
Daniel Freedman
9066a48a63 Merge pull request #3114 from Polymer/3113
importHref loads imports, async. Fixes #3113
2015-12-09 18:26:42 -08:00
Eric Bidelman
fadd455e0d Fixes #3113 2015-12-09 18:15:31 -08:00
Tim van der Lippe
0e248f5a3f Produce nicer error on malformed observer 2015-12-09 12:51:07 +01:00
Tim van der Lippe
68707ad760 Deduplicate setup and verifying in notify-path test suite 2015-12-09 12:47:06 +01:00
Stefan Grönke
8ef7bac6dc more explicit tests for debouncer wait and no-wait behavior 2015-12-08 16:18:54 -08:00
Stefan Grönke
9bef4c057c speed up microtask testing 2015-12-08 16:18:54 -08:00
Stefan Grönke
0206852575 add more debouncer tests 2015-12-08 16:18:54 -08:00
Stefan Grönke
9b898c25cc remove dead debounce test assertion 2015-12-08 16:18:54 -08:00
Daniel Freedman
d468949bb8 Merge pull request #3066 from Polymer/arthure-rendered-item-count
Fixes #3065: Add dom-repeat.renderedItemCount property
2015-12-08 15:36:20 -08:00
Steven Orvell
dfa6a44ac0 Correct test to avoid using firstElementChild on a documentFragment since it is not universally supported. 2015-12-07 14:48:21 -08:00
Steven Orvell
34031414e5 Merge branch 'master' into shady-linked 2015-12-07 14:00:48 -08:00
Steve Orvell
bab847aaf7 Merge pull request #3160 from Polymer/3125-kschaaf-move-domif
Ensure dom-if in host does not restamp when host detaches. Fixes #3125.
2015-12-07 13:50:29 -08:00
Steven Orvell
1074951c26 Merge branch 'master' into 3157-kschaaf-domif-textnode 2015-12-07 12:58:13 -08:00
Steven Orvell
f356ba894e Merge branch 'master' into 3125-kschaaf-move-domif 2015-12-07 12:48:13 -08:00
Steve Orvell
a862ef8d80 Merge pull request #3153 from Polymer/3128-kschaaf-literal-forwarding
Ensure literals are excluded from parent props.
2015-12-07 11:38:02 -08:00