Bug 20364 - [XBL] Add shadow tree rendering
Summary: [XBL] Add shadow tree rendering
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on: 20263
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-12 15:56 PDT by Julien Chaffraix
Modified: 2011-01-22 10:27 PST (History)
3 users (show)

See Also:


Attachments
First try: add rendering code following SVGUseElement example (12.48 KB, patch)
2008-08-12 16:12 PDT, Julien Chaffraix
eric: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Chaffraix 2008-08-12 15:56:50 PDT
Currently, we do not generate the shadow tree's renderer from <template>'s children.

Patch will follow.
Comment 1 Julien Chaffraix 2008-08-12 16:12:50 PDT
Created attachment 22759 [details]
First try: add rendering code following SVGUseElement example
Comment 2 Eric Seidel (no email) 2008-08-12 16:56:56 PDT
Comment on attachment 22759 [details]
First try: add rendering code following SVGUseElement example

This check looks wrong:
f (templateElement->attached())

tempalteElement is in the xbl doc, no?

this one doens't need braces:
 if (node->hasTagName(XBLNames::templateTag)) {

Otherwise looks fine.

r- for the worng check.  I don't need to see this again, if you can convince me over IRC that you've put the right check in instead of the templateElement thing... well, and I guess you should add a test case too! :)
Comment 3 Julien Chaffraix 2008-08-18 07:56:33 PDT
(In reply to comment #2)
> (From update of attachment 22759 [details] [edit])
> This check looks wrong:
> f (templateElement->attached())
> 
> tempalteElement is in the xbl doc, no?

Yes.

However we cannot say whether it was attached or not, so that's why we need to detach it before reattaching its children at the right place. If we do not do that, we will hit some ASSERT while attaching the children.

> this one doens't need braces:
>  if (node->hasTagName(XBLNames::templateTag)) {

Right (silly mistake on my side which will be corrected before landing).
Comment 4 Julien Chaffraix 2008-11-11 17:15:03 PST
Eric, could you tell me whether you are ok with the comment and the approach taken?
This only adds the rendering for inline XBL document and will need more thoughts to work when the binding document and the bound document are different.
Comment 5 Dimitri Glazkov (Google) 2011-01-22 10:27:55 PST
We ripped this code out and a new implementation is under way.