Commit 26179439 authored by hyatt's avatar hyatt

Fix more edge cases with whitespace handling that caused some

	lines to be too long (and unselectable).

        * khtml/rendering/bidi.cpp:
        (appendRunsForObject):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 199f6bdd
2002-11-16 David Hyatt <hyatt@apple.com>
Fix more edge cases with whitespace handling that caused some
lines to be too long (and unselectable).
* khtml/rendering/bidi.cpp:
(appendRunsForObject):
2002-11-16 David Hyatt <hyatt@apple.com> 2002-11-16 David Hyatt <hyatt@apple.com>
Make <caption> error-handling more robust. Make <caption> error-handling more robust.
......
2002-11-16 David Hyatt <hyatt@apple.com>
Fix more edge cases with whitespace handling that caused some
lines to be too long (and unselectable).
* khtml/rendering/bidi.cpp:
(appendRunsForObject):
2002-11-16 David Hyatt <hyatt@apple.com> 2002-11-16 David Hyatt <hyatt@apple.com>
Make <caption> error-handling more robust. Make <caption> error-handling more robust.
......
2002-11-16 David Hyatt <hyatt@apple.com>
Fix more edge cases with whitespace handling that caused some
lines to be too long (and unselectable).
* khtml/rendering/bidi.cpp:
(appendRunsForObject):
2002-11-16 David Hyatt <hyatt@apple.com> 2002-11-16 David Hyatt <hyatt@apple.com>
Make <caption> error-handling more robust. Make <caption> error-handling more robust.
......
...@@ -274,11 +274,15 @@ static void appendRunsForObject(int start, int end, RenderObject* obj) ...@@ -274,11 +274,15 @@ static void appendRunsForObject(int start, int end, RenderObject* obj)
// An end midpoint has been encounted within our object. We // An end midpoint has been encounted within our object. We
// need to go ahead and append a run with our endpoint. // need to go ahead and append a run with our endpoint.
sruns->append( new BidiRun(start, nextMidpoint->pos+1, obj, context, dir) ); if (int(nextMidpoint->pos+1) <= end) {
betweenMidpoints = true; sruns->append( new BidiRun(start, nextMidpoint->pos+1, obj, context, dir) );
int nextPos = nextMidpoint->pos+1; betweenMidpoints = true;
smidpoints->removeFirst(); int nextPos = nextMidpoint->pos+1;
return appendRunsForObject(nextPos, end, obj); smidpoints->removeFirst();
return appendRunsForObject(nextPos, end, obj);
}
else
sruns->append( new BidiRun(start, end, obj, context, dir) );
} }
} }
......
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