Changeset 163177 in webkit


Ignore:
Timestamp:
Jan 31, 2014 10:49:13 AM (10 years ago)
Author:
Simon Fraser
Message:

Don't do logging from Range::collectSelectionRects() on iOS
https://bugs.webkit.org/show_bug.cgi?id=127999

Reviewed by Enrica Casucci.

Remove some logging code that printed Range stuff in debug builds.

  • dom/Range.cpp:

(WebCore::Range::collectSelectionRects):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r163176 r163177  
     12014-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
    1132014-01-30  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebCore/dom/Range.cpp

    r162601 r163177  
    16981698    return minEnd - maxStart >= sufficientOverlap * std::min(lengthA, lengthB);
    16991699}
    1700 
    1701 #ifndef NDEBUG
    1702 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 #endif
    17221700
    17231701static inline void adjustLineHeightOfSelectionRects(Vector<SelectionRect>& rects, size_t numberOfRects, int lineNumber, int lineTop, int lineHeight)
     
    17911769        }
    17921770    }
    1793 
    1794 #ifndef NDEBUG
    1795     printRects(rects);
    1796 #endif
    17971771
    17981772    // The range could span over nodes with different writing modes.
Note: See TracChangeset for help on using the changeset viewer.