Doesn't seem to affect the Mac build but is a problem for Qt.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20574
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-03-29 Adam Treat <adam@staikos.net>
+
+ Reviewed by David Hyatt, committed by George Staikos.
+
+ 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.
+
+ * platform/Font.cpp:
+ (WebCore::WidthIterator::WidthIterator):
+
2007-03-29 David Hyatt <hyatt@apple.com>
Fix for <rdar://problem/4545060>, technorati and arstechnica fail because of getComputedStyle not
m_padPerSpace = 0;
else {
float numSpaces = 0;
- for (int i = run.from(); i < m_end; i++)
+ for (int i = 0; i < run.length(); i++)
if (Font::treatAsSpace(m_run[i]))
numSpaces++;