Changeset 20574 in webkit


Ignore:
Timestamp:
Mar 29, 2007 10:05:28 AM (17 years ago)
Author:
staikos
Message:

Take into account the entire run length to get a proper selection.
Doesn't seem to affect the Mac build but is a problem for Qt.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r20570 r20574  
     12007-03-29  Adam Treat  <adam@staikos.net>
     2
     3        Reviewed by David Hyatt, committed by George Staikos.
     4
     5        Take into account the entire run length to get a proper selection.
     6        Doesn't seem to affect the Mac build but is a problem for Qt.
     7
     8        * platform/Font.cpp:
     9        (WebCore::WidthIterator::WidthIterator):
     10
    1112007-03-29  David Hyatt  <hyatt@apple.com>
    212
  • trunk/WebCore/platform/Font.cpp

    r20508 r20574  
    102102    else {
    103103        float numSpaces = 0;
    104         for (int i = run.from(); i < m_end; i++)
     104        for (int i = 0; i < run.length(); i++)
    105105            if (Font::treatAsSpace(m_run[i]))
    106106                numSpaces++;
Note: See TracChangeset for help on using the changeset viewer.