<rdar://problem/14637103> REGRESSION (r153060?): Microphone appears in the way
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Aug 2013 21:56:15 +0000 (21:56 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Aug 2013 21:56:15 +0000 (21:56 +0000)
commit92c8421229c74f08c37851a4bea5d044228f7d94
treef909a899a14d96db0dd3068ae979924e31ac9fa8
parentc8e8aea8cac455468cd19b0aee40c92d93bb5229
    <rdar://problem/14637103> REGRESSION (r153060?): Microphone appears in the way
        of text when dictating an e-mail
        https://bugs.webkit.org/show_bug.cgi?id=119496

        Reviewed by Ryosuke Niwa.

        Test: platform/mac/editing/input/firstrectforcharacterrange-caret-in-br.html

        * rendering/RenderObject.cpp: (WebCore::RenderObject::absoluteBoundingBoxRectForRange):
        FloatRect::unite() doesn't preserve empty rects, which we need here.
        We alrady handle the case of collapsed range in Editor::firstRectForRange(), and
        this is similar, but we can't currently cover both with one simple fix.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@153725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/editing/input/firstrectforcharacterrange-caret-in-br-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/editing/input/firstrectforcharacterrange-caret-in-br.html [new file with mode: 0644]
LayoutTests/platform/wk2/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderObject.cpp