Remove deprecated code-path

hint-compose-over-border is now treated by the !m_fastPath
This commit is contained in:
Aleix Pol 2014-07-25 12:42:31 +02:00
parent bc425f1809
commit 6641285d3b

View File

@ -154,15 +154,9 @@ public:
}
} else if (m_fitMode == Stretch) {
QString prefix = m_frameSvg->frameSvg()->actualPrefix();
bool composeOverBorder = (m_border == FrameSvg::NoBorder) && (m_frameSvg->frameSvg()->hasElement(prefix % "hint-compose-over-border") &&
m_frameSvg->frameSvg()->hasElement("mask-" % prefix % "center"));
QString elementId = prefix + FrameSvgHelpers::borderToElementId(m_border);
if (composeOverBorder) {
nodeRect = QRect(QPoint(0,0), fullSize);
}
//re-render the SVG at new size
updateTexture(nodeRect.size(), elementId);
} // for fast stretch, we don't have to do anything
@ -386,6 +380,7 @@ void FrameSvgItem::doUpdate()
m_frameSvg->hasElement("mask-" % prefix % "center");
m_fastPath = !hasOverlay && !hasComposeOverBorder;
m_textureChanged = true;
update();
}