[Webkit-unassigned] [Bug 19066] ASSERT in editing code, ASSERTION FAILED: isStartOfParagraph(startOfParagraphToMove)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 9 18:20:49 PDT 2009


------- Comment #15 from eric at webkit.org  2009-03-09 18:20 PDT -------
Ok, so the problem is that [body, 0] is being preferred over [img, 0], because
the img doesn't have a height.  Normally [img, 0] would be preferred, which is
what the list code depends on happening because it inserts a list right before
the <img> and doesn't bother to update the start position.

This is the check which is allowing [body, 0] to be preferred:

    if (!node()->hasTagName(htmlTag) && renderer->isBlockFlow() &&
!hasRenderedNonAnonymousDescendantsWithHeight(renderer) &&
       (toRenderBox(renderer)->height() || node()->hasTagName(bodyTag)))
        return offset() == 0 && !nodeIsUserSelectNone(node());

because hasRenderedNonAnonymousDescendantsWithHeight is returning false,
because the RenderImage has no height.

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

More information about the webkit-unassigned mailing list