AW: branches/KDE/3.5/kdelibs/khtml/rendering
Tobias Anton
tobias at ke.informatik.tu-darmstadt.de
Fri May 19 19:44:42 CEST 2006
Hi,
Notice that outlines (e.g. the focus rectangle) may overlap the repainted
region, even though their object's bounding box is outside. Might this
commit introduce a regression for such cases?
Tobias
-----Ursprüngliche Nachricht-----
Von: Allan Sandfeld Jensen [mailto:kde at carewolf.com]
Gesendet: Freitag, 19. Mai 2006 11:02
An: kde-commits at kde.org
Cc: khtml-cvs at kde.org; cniehaus at gmx.de; 125580-done at bugs.kde.org;
118806-done at bugs.kde.org
Betreff: branches/KDE/3.5/kdelibs/khtml/rendering
SVN commit 542397 by carewolf:
Only repaint the expossed area when scrolling.
Fixing local mistakes makes our perfomance less dependent on fully optimized
drivers.
BUG: 125580
BUG: 118806
M +9 -0 render_box.cpp
--- branches/KDE/3.5/kdelibs/khtml/rendering/render_box.cpp #542396:542397
@@ -529,7 +529,16 @@
sy+=b.y()-cy;
cx=b.x();cy=b.y();cw=b.width();ch=b.height();
}
+ // restrict painting to repaint-clip
+ if (cy < clipy) {
+ ch -= (clipy - cy);
+ sy += (clipy - cy);
+ cy = clipy;
+ }
+ ch = kMin(ch, cliph);
+// kdDebug() << " clipy, cliph: " << clipy << ", " << cliph << endl;
+// kdDebug() << " drawTiledPixmap(" << cx << ", " << cy << ", " <<
cw << ", " << ch << ", " << sx << ", " << sy << ")" << endl;
if (cw>0 && ch>0)
p->drawTiledPixmap(cx, cy, cw, ch, bg->tiled_pixmap(c), sx,
sy);
_______________________________________________
Khtml-cvs mailing list
Khtml-cvs at kde.org
https://mail.kde.org/mailman/listinfo/khtml-cvs
More information about the Khtml-devel
mailing list