Changeset 89318 in webkit
- Timestamp:
- Jun 20, 2011 5:04:23 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r89317 r89318 1 2011-06-20 Antonio Gomes <agomes@rim.com> 2 3 Reviewed by Ryosuke Niwa. 4 5 Stop adding empty rects in FrameSelection::getClippedVisibleTextRectangles 6 https://bugs.webkit.org/show_bug.cgi?id=63018 7 8 No new tests needed, since it causes no behavioral change. 9 10 * editing/FrameSelection.cpp: 11 (WebCore::FrameSelection::getClippedVisibleTextRectangles): 12 1 13 2011-06-20 Joseph Pecoraro <joepeck@webkit.org> 2 14 -
trunk/Source/WebCore/editing/FrameSelection.cpp
r89293 r89318 1789 1789 toNormalizedRange()->textQuads(quads, true); 1790 1790 1791 // FIXME: We are appending empty rectangles to the list for those that fall outside visibleContentRect.1792 // It might be better to omit those rectangles entirely.1793 1791 size_t size = quads.size(); 1794 for (size_t i = 0; i < size; ++i) 1795 rectangles.append(intersection(quads[i].enclosingBoundingBox(), visibleContentRect)); 1792 for (size_t i = 0; i < size; ++i) { 1793 FloatRect intersectionRect = intersection(quads[i].enclosingBoundingBox(), visibleContentRect); 1794 if (!intersectionRect.isEmpty()) 1795 rectangles.append(intersectionRect); 1796 } 1796 1797 } 1797 1798
Note: See TracChangeset
for help on using the changeset viewer.