Commit 4afb0159 authored by staikos's avatar 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.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c8c5fb4e
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
......@@ -101,7 +101,7 @@ WidthIterator::WidthIterator(const Font* font, const TextRun& run, const TextSty
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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment