aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qv4mm/tst_qv4mm.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-03-25 15:18:16 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2019-03-26 05:57:49 +0000
commit156066d4753243143970aeb0b740f8f429e7916b (patch)
tree405bbfa6f82a56e7975d1fca138d2c41252917e3 /tests/auto/qml/qv4mm/tst_qv4mm.cpp
parent516523750dbae4fdabed5b09281fdb2da843941e (diff)
Restore rich Text creation speed
634b59f187c8697f03a606cbacb5f0a69650ea7c caused a significant performance regression during layout of any Text item with RichText, by calling QQuickTextDocumentWithImageResources::setPageSize() with an accurate width in ensureDoc(); but ensureDoc() is called multiple times, and doesn't need to calculate actual layout. The accurate width is needed (at least) when doing layout of HTML tables that contain percentage-based column widths. For that purpose it's enough to set the correct "page" size in updateSize(). Fixes: QTBUG-74638 Task-number: QTBUG-72457 Change-Id: I34ab085316018576eba64a67200c527bb64b9533 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qv4mm/tst_qv4mm.cpp')
0 files changed, 0 insertions, 0 deletions