Text Selection Speed
Dirk Mueller
mueller at kde.org
Sun Jun 23 22:00:28 BST 2002
On Son, 23 Jun 2002, Koos Vriezen wrote:
> > - what you hacked together with QValueList<QRect> is handled MUCH more
> > efficiently in QRegion. Please use that instead.
> Didn't know that. Why isn't it used then?
Because repainting a boundary rect is probably faster than repainting a
complex region.
> Already had
> if (d->cachedInnerNode &&
> d->cachedInnerNode->innerNode()->renderer()->nodeAtPoint(......)) {
> if (d->cachedInnerNode->URLElement() && !renderInfo.URLElement())
> renderInfo.setURLElement(d->cachedInnerNode->URLElement());
> *d->cachedInnerNode = renderInfo;
> isInside = true;
> } else
> in my tree, which always updates the cache.
No, not quite. there might be specialobjects "up" in the tree that are
"inside".
> Also an invalidation
> of the cache in 'DocumentImpl::close' was necessary.
euhm?
Dirk
More information about the kfm-devel
mailing list