Changeset 153725 in webkit
- Timestamp:
- Aug 5, 2013, 2:56:15 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r153723 r153725 1 2013-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 1 15 2013-08-05 Morten Stenshorne <mstensho@opera.com> 2 16 -
trunk/LayoutTests/platform/wk2/TestExpectations
r153060 r153725 126 126 platform/mac/editing/input/bold-node.html 127 127 platform/mac/editing/input/caret-primary-bidi.html 128 platform/mac/editing/input/firstrectforcharacterrange-caret-in-br.html 128 129 platform/mac/editing/input/firstrectforcharacterrange-plain.html 129 130 platform/mac/editing/input/firstrectforcharacterrange-styled.html -
trunk/Source/WebCore/ChangeLog
r153723 r153725 1 2013-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 1 16 2013-08-05 Morten Stenshorne <mstensho@opera.com> 2 17 -
trunk/Source/WebCore/rendering/RenderObject.cpp
r152907 r153725 1244 1244 range->textQuads(quads); 1245 1245 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()); 1249 1252 1250 1253 return result;
Note:
See TracChangeset
for help on using the changeset viewer.