Fix a thread safety issue with QTextLine::glyphRuns
authorPierre Rossi <pierre.rossi@nokia.com>
Mon, 16 Apr 2012 11:36:18 +0000 (13:36 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 17 Apr 2012 14:28:46 +0000 (16:28 +0200)
commit46556529ecaa85b2e37c2be9a83a003ff92cfd7a
tree2a154fe4329cc9857efc232626f9da73c4db9977
parentaddffb71b45b5123ee449f0cfa4891dcab044a9f
Fix a thread safety issue with QTextLine::glyphRuns

This is a very partial revert of 10ac80708.
Revert back to using engineFromScript, which is reentrant, for cases other
than the "rawfont mode". In that last case, reentrancy is not a big issue
so far as the only client is WebKit, and this is used in the web process,
with no threaded rendering.

Change-Id: I047b04cf0236d52e6d548f34cddd3dcc7c3c5f83
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/text/qtextlayout.cpp