Summary: | Assertion failure in RenderBlock::addChildToFlow during replaceChild | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jeff Lang <jeffplang> | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | mitz | ||||
Priority: | P2 | ||||||
Version: | 420+ | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
URL: | http://sms.linuxpowered.com/~puppiesonacid/scrash/ | ||||||
Attachments: |
|
Description
Jeff Lang
2005-12-13 15:40:38 PST
On a debug build, this assert fails: WebCore/khtml/rendering/render_block.cpp:154: failed assertion `false' The problem turns out to be that if Parent has children A and B (A being B's previous sibling), then Parent.replaceChild(A,B) messes up the DOM tree. Created attachment 5076 [details]
Don't bother with removing and re-inserting into the same place
Comment on attachment 5076 [details]
Don't bother with removing and re-inserting into the same place
Setting child to 0 instead of iffing the while loop to avoid having to indent
everything.
Comment on attachment 5076 [details]
Don't bother with removing and re-inserting into the same place
r=me
|