[PATCH] Text selection speed up
Matt Newell
newellm at proaxis.com
Thu Jun 13 17:24:22 BST 2002
This patch makes selecting small amounts of text much quicker(less lag),
particularly for large documents. Text selection is still very slow when you
try to select large amounts of text.
Matt Newell
Index: khtml/rendering/render_object.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/rendering/render_object.cpp,v
retrieving revision 1.176
diff -u -3 -p -r1.176 render_object.cpp
--- khtml/rendering/render_object.cpp 3 Jun 2002 12:51:15 -0000 1.176
+++ khtml/rendering/render_object.cpp 13 Jun 2002 23:27:26 -0000
@@ -790,6 +790,8 @@ void RenderObject::detach()
FindSelectionResult RenderObject::checkSelectionPoint( int _x, int _y, int
_tx, int _ty, DOM::NodeImpl*& node, int & offset )
{
+ if(!mouseInside())
+ return SelectionPointAfter;
int lastOffset=0;
int off = offset;
DOM::NodeImpl* nod = node;
More information about the kfm-devel
mailing list