+2005-03-10 David Harrison <harrison@apple.com>
+
+ Reviewed by Darin.
+
+ <rdar://problem/4032346> REGRESSION (Mail): changing 1st line of a URL that wraps to two lines doesn't always update 2nd line
+
+ * khtml/rendering/bidi.cpp:
+ (khtml::RenderBlock::matchedEndLine):
+ Look at first clean line in case line wrap implicitly dirtied it.
+
2005-03-10 Maciej Stachowiak <mjs@apple.com>
Reviewed by Vicki.
bool RenderBlock::matchedEndLine(const BidiIterator& start, const BidiIterator& endLineStart,
RootInlineBox*& endLine, int& endYPos)
{
- if (start == endLineStart)
- return true; // The common case. All the data we already have is correct.
- else {
+ if (start == endLineStart) {
+ // Need to return false in case the first "clean" line is indirectly dirty from
+ // line wrap changes (i.e. could need to shift this line left or right in
+ // response to changes on the previous line).
+ return false;
+ } else {
// The first clean line doesn't match, but we can check a handful of following lines to try
// to match back up.
static int numLines = 8; // The # of lines we're willing to match against.