WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52423
RenderObject::canHaveChildren()==false prevents shadow renderer creation
https://bugs.webkit.org/show_bug.cgi?id=52423
Summary
RenderObject::canHaveChildren()==false prevents shadow renderer creation
Kent Tamura
Reported
2011-01-13 22:00:16 PST
Some renderers return false for canHaveChildren(). So if we try to convert the legacy shadow DOM code to the new API, the shadow nodes won't have their renderers. See Node::createRendererIfNeeded(). dglazkov said:
> I think it should be a function on an Element which indicates whether its children should be rendered
Source/WebCore/rendering/RenderButton.h: virtual bool canHaveChildren() const; Source/WebCore/rendering/RenderDataGrid.h: virtual bool canHaveChildren() const { return false; } Source/WebCore/rendering/RenderIndicator.h: virtual bool canHaveChildren() const { return false; } Source/WebCore/rendering/RenderListBox.h: virtual bool canHaveChildren() const { return false; } Source/WebCore/rendering/RenderMenuList.h: virtual bool canHaveChildren() const { return false; } Source/WebCore/rendering/RenderReplaced.h: virtual bool canHaveChildren() const { return false; } Source/WebCore/rendering/RenderTableCol.h: virtual bool canHaveChildren() const; Source/WebCore/rendering/RenderTextControl.h: virtual bool canHaveChildren() const { return false; }
Attachments
Add attachment
proposed patch, testcase, etc.
Dimitri Glazkov (Google)
Comment 1
2011-04-11 09:00:41 PDT
This is going to be part of <content> element machinery. By default, if the element has shadow DOM subtree, the children aren't rendered, so this decision becomes runtime, not compile-time.
Dimitri Glazkov (Google)
Comment 2
2011-04-13 10:45:15 PDT
(In reply to
comment #1
)
> This is going to be part of <content> element machinery. By default, if the element has shadow DOM subtree, the children aren't rendered, so this decision becomes runtime, not compile-time.
Turns out that the best solution is just to never render children for Elements that have shadow DOM.
Hajime Morrita
Comment 3
2012-02-26 21:59:04 PST
Fixed by
http://trac.webkit.org/changeset/108758
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug