[webkit-help] Should every node have a renderer ?

Julien Chaffraix julien.chaffraix at gmail.com
Fri Feb 10 06:59:10 PST 2012


> Can the renderer of a node be NULL ?

Yes, there are several cases where it can happen:
* not all Node have renderer (a doctype declaration for example
doesn't need a renderer as it's purely declarative)
* if you set display: none on the associated Element.
* if adding the renderer to the tree would add a child that is not
allowed per specification or design of the code.

[See NodeRenderingContext::createRenderer where we handle those cases]

Julien


More information about the webkit-help mailing list