Commit Graph

17 Commits

Author SHA1 Message Date
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
Steven Orvell
306cc8130e Use linked-list for element tree traversal. Factor Polymer.DomApi into shadow/shady modules. 2015-11-18 17:00:15 -08:00
Steven Orvell
21500fb53f Fixes #2235. Manages logical information in shady distribution more directly by capturing it explicitly when needed and not whenever distribution is run. 2015-08-10 16:40:58 -07:00
Steven Orvell
bdff550f6b privatize: lightParent -> _lightParent, lightChildren -> _lightChildren 2015-05-24 16:17:00 -07:00
Steven Orvell
82dc565b84 Adds node mutation apis to Polymer.dom: setAttribute, removeAttribute, classList. These methods automatically provoke distribution if necessary.
Adds redistribution support to `distributeContent`.
2015-05-10 10:03:52 -07:00
Steven Orvell
ec27fe8dcf styling factoring:
* custom properties supports defaults, e.g. var(--a, --b);
* x-style renamed to custom-style
* custom-style supports defining properties at :root; also support using properties in document
* mixins support consuming properties and mixins inside them.
2015-05-04 12:20:49 -07:00
Steve Orvell
9ee54d056b Patch dom when experimental import patch-dom.html is loaded. 2015-04-29 08:19:03 -07:00
Steve Orvell
2811304024 patch more accessors; host -> domHost 2015-04-21 11:40:28 -07:00
Steve Orvell
b43de53edb Optionally patch via prototype. 2015-04-17 19:23:39 -07:00
Steve Orvell
cf42801a14 factor patching into its own module, correct tests, and add getter for innerHTML 2015-04-16 19:05:39 -07:00
Steven Orvell
333ab2ed13 tests pass on Safari/FF 2015-04-15 18:31:47 -07:00
Steven Orvell
7033346b28 patch qs/qsa, parentNode, children, childNodes, appendChild, insertBefore, removeChild 2015-04-15 18:16:27 -07:00
Steve Orvell
8e21c6e19b shady dom: cache composed nodes and simplify array splice handling. 2015-04-14 14:30:36 -07:00
Steve Orvell
261bae214d Add distributeContent api to force element distribution when selectors on children change that effect distribution. 2015-04-08 16:47:48 -07:00
Steve Orvell
c090390198 Shady DOM optimizations: (1) fast path distribution when no insertion points exist in a root, (2) avoid tree walking root for insertion points by keeping an ordered list of them. 2015-03-19 17:38:07 -07:00
Steven Orvell
28c6f91b0d *breaking change* to Polymer.dom api. old Polymer.dom.method(..., node); new Polymer.dom(node).method(...);
other changes:
* `childNodes/parentNode` are now getters not functions
* `distributeNodes` changed to `getDistributedNodes` (matches native)
* `destinationInsertionPoints` changed to `getDestinationInsertionPoints` (matches native)
2015-03-09 15:32:50 -07:00
Steve Orvell
7c7e426c8f ShadyDOM optimizations + new api (Polymer.dom) 2015-03-04 18:04:19 -08:00