Make sure polish() is reentrant.
Make sure polish() is reentrant.

Take a copy of the items currently scheduled for polish (and clear the internal
list) to ensure an item can re-add itself to the polish list during an
updatePolish().

Change-Id: I0c629795f64d5926ac87a838ea5e216b6a1fa6cf
Reviewed-by: Gunnar Sletta <d0b71651f3efaa9fda200bbcc395b7b82a871fdd@nokia.com>

jfaust/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,corngood/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative