two lines overlapped.
Reviewed by kocienda
* khtml/rendering/render_flow.cpp:
(RenderFlow::paintLines):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8399
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-18 David Hyatt <hyatt@apple.com>
+
+ Fix for 3948123, rolling over link erases nearby text. The repaint rect check for lines was wrong whenever
+ two lines overlapped.
+
+ Reviewed by kocienda
+
+ * khtml/rendering/render_flow.cpp:
+ (RenderFlow::paintLines):
+
2005-01-18 Ken Kocienda <kocienda@apple.com>
Reviewed by Hyatt
}
}
- yPos = _ty + curr->root()->selectionTop() - maximalOutlineSize(i.phase);
- h = curr->root()->selectionHeight() + 2 * maximalOutlineSize(i.phase);
+ int top = kMin(curr->root()->topOverflow(), curr->root()->selectionTop()) - maximalOutlineSize(i.phase);
+ int bottom = kMax(curr->root()->selectionTop() + curr->root()->selectionHeight(), curr->root()->bottomOverflow()) + maximalOutlineSize(i.phase);
+ h = bottom - top;
+ yPos = _ty + top;
if ((yPos < i.r.y() + i.r.height()) && (yPos + h > i.r.y()))
curr->paint(i, _tx, _ty);
}