revert #898716 as it regressed bug #167430, fix the problem by not transforming the svg in FrameSvgPrivate::updateSizes

CCBUG:167430

svn path=/trunk/KDE/kdelibs/; revision=905645
This commit is contained in:
Aaron J. Seigo 2009-01-04 19:07:46 +00:00
parent b40732d7ab
commit 35304c269d
2 changed files with 4 additions and 2 deletions

View File

@ -656,6 +656,8 @@ void FrameSvgPrivate::updateSizes()
FrameData *frame = frames[prefix];
Q_ASSERT(frame);
QSize s = q->size();
q->resize();
frame->cachedBackground = QPixmap();
frame->cachedMask = QRegion();
@ -711,6 +713,7 @@ void FrameSvgPrivate::updateSizes()
frame->tileCenter = q->hasElement("hint-tile-center");
frame->noBorderPadding = q->hasElement("hint-no-border-padding");
frame->stretchBorders = q->hasElement("hint-stretch-borders");
q->resize(s);
}
void FrameSvgPrivate::updateNeeded()

View File

@ -255,14 +255,13 @@ class SvgPrivate
void eraseRenderer()
{
if (renderer && renderer.count() == 2) {
// this and the cache reference it; and boy is this not thread safe ;)
// this and the cache reference it
s_renderers.erase(s_renderers.find(path));
Plasma::Theme::defaultTheme()->releaseRectsCache(path);
}
renderer = 0;
localRectCache.clear();
size = QSizeF();
}
QRectF elementRect(const QString &elementId)