improve processing stylesheet properties
authorMark Brand <mabrand@mabrand.nl>
Mon, 12 Mar 2012 20:05:31 +0000 (21:05 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 08:50:18 +0000 (09:50 +0100)
commit6d67ff4061c7648708cdc2e462f248a4a8f486db
tree3897c089ee5d8a25dda23514025e5982cf6179d9
parent96fe217467ee063cbadd8518694fb0313e78272f
improve processing stylesheet properties

By scanning the properties in reverse order we don't have to save
properties in the list only to remove them later when the occur
again. It's also unnecessary to cache the values since they can
be easily plucked out of decls. Various other tests can be done
once per property instead of once per property occurence in decls.

Change-Id: I81cf60c59efaeed57fc9c12df98279d6cae116cd
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Rick Stockton <rickstockton@reno-computerhelp.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: John Brooks <john.brooks@dereferenced.net>
src/widgets/styles/qstylesheetstyle.cpp