[Webkit-unassigned] [Bug 43071] ASSERTION FAILURE in AppendNodeCommand::AppendNodeCommand when indenting HTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 28 17:01:10 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43071





--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org>  2010-09-28 17:01:10 PST ---
I spent some time on this bug and I think the problem is that when there are nodes between nodeToSplitTo and start.node(), splitTreeToNode may shift the start of paragraph to inside of the nodes being duplicated.

For example, when we are on the following node in the attached reduction:
BODY    0x106263a00
    BLOCKQUOTE    0x1062367d0 CLASS=webkit-indent-blockquote STYLE=margin: 0 0 0 40px; border: none; padding: 0px;
        #text    0x108280ee0 "x"
        FORM    0x108279320
            HR    0x108291aa0
        FORM    0x106287c80
            LABEL    0x106287380
                #text    0x11a802d80 "This is a searchable index. Enter search keywords: "
                INPUT    0x11a802f40
        FORM    0x106284e90
            HR    0x106285150
    X    0x1062856e0
        OBJECT    0x106285940
*            #text    0x106285ab0 "x"
        #text    0x106285ec0 "\n"

We end up copying X and Object to get:
BODY    0x106263a00
    BLOCKQUOTE    0x1062367d0 CLASS=webkit-indent-blockquote STYLE=margin: 0 0 0 40px; border: none; padding: 0px;
        #text    0x108280ee0 "x"
        FORM    0x108279320
            HR    0x108291aa0
        FORM    0x106287c80
            LABEL    0x106287380
                #text    0x11a802d80 "This is a searchable index. Enter search keywords: "
                INPUT    0x11a802f40
        FORM    0x106284e90
            HR    0x106285150
    X    0x106284e10
@        OBJECT    0x106270fa0
$    X    0x1062856e0
        OBJECT    0x106285940
*            #text    0x106285ab0 "x"
        #text    0x106285ec0 "\n"

At which point the start of paragraph is shifted to @ even though the outerBlock is still at $.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list