summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-09-02 08:07:11 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-09-02 11:04:56 (GMT)
commit5cbfc76f607caaefe59489e4985cbac37d5c714d (patch)
tree7feb95440e3b51062f54828731dcfcd771071836 /src/svg
parente008ce19585bf607ff652ab95391a890a9523076 (diff)
downloadQt-5cbfc76f607caaefe59489e4985cbac37d5c714d.zip
Qt-5cbfc76f607caaefe59489e4985cbac37d5c714d.tar.gz
Qt-5cbfc76f607caaefe59489e4985cbac37d5c714d.tar.bz2
Simplify SVG color parsing when the color is opaque.
Reviewed-by: Kim
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/qsvghandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index 9683efd..9e46048 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -2158,8 +2158,8 @@ static bool parseAnimateColorNode(QSvgNode *parent,
QList<QColor> colors;
if (valuesStr.isEmpty()) {
QColor startColor, endColor;
- constructColor(fromStr, QString(), startColor, handler);
- constructColor(toStr, QString(), endColor, handler);
+ resolveColor(fromStr, startColor, handler);
+ resolveColor(toStr, endColor, handler);
colors.append(startColor);
colors.append(endColor);
} else {
@@ -2167,7 +2167,7 @@ static bool parseAnimateColorNode(QSvgNode *parent,
QStringList::const_iterator itr;
for (itr = str.constBegin(); itr != str.constEnd(); ++itr) {
QColor color;
- constructColor(*itr, QString(), color, handler);
+ resolveColor(*itr, color, handler);
colors.append(color);
}
}