Workflow of rendering <polymer-element>

54 views
Skip to first unread message

Oleksii Khliupin

unread,
Feb 5, 2014, 3:48:00 PM2/5/14
to polym...@googlegroups.com
Hi,

Please, could someone to help with a topic.
I need to understand the workflow of rendering process in case when the native shadow dom is not available.
The most important place - When the root element is replaced with pre-rendered html?

thank you.

Erik Arvidsson

unread,
Feb 5, 2014, 4:16:41 PM2/5/14
to Oleksii Khliupin, polym...@googlegroups.com
I'm not sure what you mean by pre-rendered html?

The basic idea of the SD polyfill is that each shadow host gets an associated renderer. When the logical dom is changed in a way that effects a renderer this renderer gets invalidated. Invalidated renderers get scheduled to be updated using requestAnimationFrame. You can also force all invalidated renderers to update synchronously by reading a property that depends on layout information, such as offsetWidth for example.

When a renderer is rendered it produces the composed tree (visual dom) which is what the browser uses to paint.


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/2772b7f3-cc81-439c-83d0-6d8f254837b8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
erik


Reply all
Reply to author
Forward
0 new messages