Reviewed by Ken.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Mar 2005 00:24:13 +0000 (00:24 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Mar 2005 00:24:13 +0000 (00:24 +0000)
commitd68f5293d0b5789162502ce3e85ac5c9e02f9169
tree662de155b64c621bebd998162a3329ff54aabb7d
parent66de3d3201b955ff91925797c31c371418e5d47d
    Reviewed by Ken.

        <rdar://problem/4029225> REGRESSION (Mail): Crash if hit return after dragging in attachment - DeleteSelectionCommand::initializePositionData

        Work around the fact that the height() of a BR is 0 if there are no text elements on the line, even if there are replaced elements.
        Filed <rdar://problem/4040358> RenderBR height() is not accurate.

        * khtml/editing/htmlediting.cpp:
        (khtml::ReplaceSelectionCommand::doApply):
        When height is 0, double check that the placeholder is the first position on the line.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp