summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2019-07-06 13:42:12 +0300
committerJustin Luth <justin_luth@sil.org>2019-07-19 06:14:12 +0200
commit5cf057c3365a0feafc8f2e4f4a9e24d69a581999 (patch)
treed05cfac73d8175fa99f55a1f8e6ea500f06dbdc8 /jurt
parentd33cc4f7edc2ce21a9c5a01a7f5e85cfd324c6d9 (diff)
tdf#125609 toolkit: don't use XTabController::getControls
Calling XTabController::getControls was supposed to give performance improvements (coded in OOo), but it pulls cached information which is not up to date if this listener for elementInserted events is handled before the formController's listener. It is missing the most recently created control - and thus it never sees the last control in the form, and fails to create the radio group. Additionally, when all of the controls are not yet created, this function seems to be designed to catch that and immediately return. With the "optimization" the missing controls were never noticed, and so unnecessary processing continued - a performance detriment while the form is being built. My impresssion is that the local getControl() function is not terribly inefficient, so the performance impact seems minimal, especially since it now only makes the call once and caches the result itself. Since not-yet-peered controls cause the function to again terminate early (as it was designed to do), this may have unintended side effects, in case anything was designed in the past 10+ years expecting the old behaviour, so I have no intention of back-porting this. Change-Id: Ica8ddab69043a30b23d008cd8db5df1c13b94ad2 Reviewed-on: https://gerrit.libreoffice.org/75163 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'jurt')
0 files changed, 0 insertions, 0 deletions