Changeset 163177 in webkit
- Timestamp:
- Jan 31, 2014, 10:49:13 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r163176 r163177 1 2014-01-31 Simon Fraser <simon.fraser@apple.com> 2 3 Don't do logging from Range::collectSelectionRects() on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=127999 5 6 Reviewed by Enrica Casucci. 7 8 Remove some logging code that printed Range stuff in debug builds. 9 10 * dom/Range.cpp: 11 (WebCore::Range::collectSelectionRects): 12 1 13 2014-01-30 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebCore/dom/Range.cpp
r162601 r163177 1698 1698 return minEnd - maxStart >= sufficientOverlap * std::min(lengthA, lengthB); 1699 1699 } 1700 1701 #ifndef NDEBUG1702 static void printRects(Vector<SelectionRect>& rects)1703 {1704 size_t numberOfRects = rects.size();1705 for (size_t i = 0; i < numberOfRects; ++i) {1706 fprintf(stderr, "%zu\t[%d, %d] - [%d, %d]\t%c %s\tis first: %s\tis last:%s\tcontains start: %s\tcontains end: %s\tline: %d\truby: %s\tcolumn: %d\n",1707 i,1708 rects[i].rect().x(), rects[i].rect().y(), rects[i].rect().width(), rects[i].rect().height(),1709 rects[i].isHorizontal() ? 'H' : 'V',1710 rects[i].direction() == LTR ? "LTR" : "RTL",1711 rects[i].isFirstOnLine() ? "yes" : "no",1712 rects[i].isLastOnLine() ? "yes" : "no",1713 rects[i].containsStart() ? "yes" : "no",1714 rects[i].containsEnd() ? "yes" : "no",1715 rects[i].lineNumber(),1716 rects[i].isRubyText() ? "yes": "no",1717 rects[i].columnNumber());1718 }1719 fprintf(stderr, "--------------------------------------\n");1720 }1721 #endif1722 1700 1723 1701 static inline void adjustLineHeightOfSelectionRects(Vector<SelectionRect>& rects, size_t numberOfRects, int lineNumber, int lineTop, int lineHeight) … … 1791 1769 } 1792 1770 } 1793 1794 #ifndef NDEBUG1795 printRects(rects);1796 #endif1797 1771 1798 1772 // The range could span over nodes with different writing modes.
Note:
See TracChangeset
for help on using the changeset viewer.