Changeset 153725 in webkit


Ignore:
Timestamp:
Aug 5, 2013, 2:56:15 PM (12 years ago)
Author:
ap@apple.com
Message:

<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.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r153723 r153725  
     12013-08-05  Alexey Proskuryakov  <ap@apple.com>
     2
     3        <rdar://problem/14637103> REGRESSION (r153060?): Microphone appears in the way
     4        of text when dictating an e-mail
     5        https://bugs.webkit.org/show_bug.cgi?id=119496
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        * platform/mac/editing/input/firstrectforcharacterrange-caret-in-br-expected.txt: Added.
     10        * platform/mac/editing/input/firstrectforcharacterrange-caret-in-br.html: Added.
     11
     12        * platform/wk2/TestExpectations: textInputController.firstRectForCharacterRange is
     13        not available in WTR.
     14
    1152013-08-05  Morten Stenshorne  <mstensho@opera.com>
    216
  • trunk/LayoutTests/platform/wk2/TestExpectations

    r153060 r153725  
    126126platform/mac/editing/input/bold-node.html
    127127platform/mac/editing/input/caret-primary-bidi.html
     128platform/mac/editing/input/firstrectforcharacterrange-caret-in-br.html
    128129platform/mac/editing/input/firstrectforcharacterrange-plain.html
    129130platform/mac/editing/input/firstrectforcharacterrange-styled.html
  • trunk/Source/WebCore/ChangeLog

    r153723 r153725  
     12013-08-05  Alexey Proskuryakov  <ap@apple.com>
     2
     3        <rdar://problem/14637103> REGRESSION (r153060?): Microphone appears in the way
     4        of text when dictating an e-mail
     5        https://bugs.webkit.org/show_bug.cgi?id=119496
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Test: platform/mac/editing/input/firstrectforcharacterrange-caret-in-br.html
     10
     11        * rendering/RenderObject.cpp: (WebCore::RenderObject::absoluteBoundingBoxRectForRange):
     12        FloatRect::unite() doesn't preserve empty rects, which we need here.
     13        We alrady handle the case of collapsed range in Editor::firstRectForRange(), and
     14        this is similar, but we can't currently cover both with one simple fix.
     15
    1162013-08-05  Morten Stenshorne  <mstensho@opera.com>
    217
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r152907 r153725  
    12441244    range->textQuads(quads);
    12451245
    1246     FloatRect result;
    1247     for (size_t i = 0; i < quads.size(); ++i)
    1248         result.unite(quads[i].boundingBox());
     1246    if (quads.isEmpty())
     1247        return FloatRect();
     1248
     1249    FloatRect result = quads[0].boundingBox();
     1250    for (size_t i = 1; i < quads.size(); ++i)
     1251        result.uniteEvenIfEmpty(quads[i].boundingBox());
    12491252
    12501253    return result;
Note: See TracChangeset for help on using the changeset viewer.