qt5base-lts/src/gui/text
Eskil Abrahamsen Blomfeldt 89a25a3ef1 Don't count all engines as "in use" in cache
Back in 36cb3f3f65, we started
properly reference counting font engines as they were entered into
the font cache. Prior to this, ref.load == 0 would mean that the
engine was essentially owned by the cache.

When the change was made, the condition that an engine must be in
use if its reference is != 0 remained, and the result of this was
used to calculate the limit for when the cache should be flushed.

Since this limit was miscalculated, the cache would keep growing,
even if it only contained unused font engines.

[ChangeLog][QtGui][Text] Fixed a bug which could cause the font
cache to grow larger than it was supposed to.

Task-number: QTBUG-76219
Change-Id: I4d1541756f3bdf5bd9b0301bf47c6db2e220716a
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2019-06-09 20:16:55 +02:00
..
qabstracttextdocumentlayout_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qabstracttextdocumentlayout.cpp Add QAbstractTextDocumentLayout::imageAt(), formatAt() 2016-03-18 19:02:13 +00:00
qabstracttextdocumentlayout.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qcssparser_p.h qcssparser: Undef TILDE to fix compilation on Hurd 2017-02-15 19:56:34 +00:00
qcssparser.cpp QCss: properly parse functions which contains additional spaces 2018-10-12 22:01:14 +00:00
qcssscanner.cpp Handle indirect sibling selector 2016-07-27 20:18:02 +00:00
qdistancefield_p.h QtGui: Unify license headers 2019-01-29 10:41:31 +00:00
qdistancefield.cpp QtGui: Unify license headers 2019-01-29 10:41:31 +00:00
qfont_p.h macOS: Reset font glyph caches when application theme changes 2018-12-09 23:22:14 +00:00
qfont.cpp Don't count all engines as "in use" in cache 2019-06-09 20:16:55 +02:00
qfont.h Add API to disable text shaping on fonts 2017-07-26 10:51:00 +00:00
qfontdatabase.cpp Use "monospace" as fallback system FixedFont in KDE theme; logging 2019-05-07 07:48:43 +00:00
qfontdatabase.h Fix enum passed to QFontDatabase::findFont 2018-10-16 11:14:31 +00:00
qfontengine_p.h CoreText: Remove handling of QFontEngineMulti's highByte 2018-11-30 10:35:52 +00:00
qfontengine_qpf2_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qfontengine_qpf2.cpp Added capHeight() to QRawFont and QFontMetrics(F) 2016-08-15 18:27:06 +00:00
qfontengine.cpp CoreText: Remove handling of QFontEngineMulti's highByte 2018-11-30 10:35:52 +00:00
qfontengineglyphcache_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qfontengineglyphcache.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qfontinfo.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qfontmetrics.cpp Doc: Fix links to QFontMetrics::width() overloads 2018-02-13 02:59:44 +00:00
qfontmetrics.h Add QFontMetrics(F)::horizontalAdvance() function 2017-11-14 16:28:45 +00:00
qfontsubset_agl.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qfontsubset_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qfontsubset.cpp fix compilation with various -no-feature-* options 2019-05-05 09:14:48 +00:00
qfragmentmap_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qfragmentmap.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qglyphrun_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qglyphrun.cpp Use QFlags::setFlag where prudent in qtbase 2016-02-12 19:32:05 +00:00
qglyphrun.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qharfbuzzng_p.h Use harfbuzz feature to check for HarfBuzz 2016-11-24 08:38:39 +00:00
qharfbuzzng.cpp Set point size, not just pixel size, when creating HarfBuzz fonts for shaping 2018-12-16 15:02:20 +00:00
qinputcontrol_p.h Introduce QInputControl::isCommonTextEditShortcut 2017-03-27 11:32:30 +00:00
qinputcontrol.cpp Introduce QInputControl::isCommonTextEditShortcut 2017-03-27 11:32:30 +00:00
qplatformfontdatabase.cpp Doc: Add missing full stops in briefs 2018-06-21 14:23:30 +00:00
qplatformfontdatabase.h macOS: Defer population of localized font family aliases until needed 2017-04-21 10:36:00 +00:00
qrawfont_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qrawfont.cpp QRawFont: Add a qHash overload 2016-11-16 18:13:41 +00:00
qrawfont.h QRawFont: Add a qHash overload 2016-11-16 18:13:41 +00:00
qstatictext_p.h QtGui: Unify license headers 2019-01-29 10:41:31 +00:00
qstatictext.cpp QtGui: Unify license headers 2019-01-29 10:41:31 +00:00
qstatictext.h QtGui: Unify license headers 2019-01-29 10:41:31 +00:00
qsyntaxhighlighter.cpp QSyntaxHighlighter: Fix crash when parent is a nullptr 2019-02-27 06:36:59 +00:00
qsyntaxhighlighter.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qtextcursor_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qtextcursor.cpp Add a clarification about "characters" to QTextCursor docs 2019-04-02 06:51:21 +00:00
qtextcursor.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qtextdocument_p.cpp Add QTextOption/QTextEdit/QPlainTextEdit::tabStopDistance property 2017-08-06 08:16:06 +00:00
qtextdocument_p.h Export QTextDocumentPrivate with Q_GUI_EXPORT 2016-08-01 11:03:35 +00:00
qtextdocument.cpp Fix: QTextDocument::find backward search crossing paragraphs 2019-06-04 07:14:03 +00:00
qtextdocument.h Merge remote-tracking branch 'origin/5.11' into 5.12 2018-11-09 10:34:33 +01:00
qtextdocumentfragment_p.h preserve HTML heading level in QTextBlockFormat; demonstrate in example 2018-03-02 08:05:00 +00:00
qtextdocumentfragment.cpp QTextDocument: Do respect white-space:nowrap 2019-02-13 08:14:47 +00:00
qtextdocumentfragment.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qtextdocumentlayout_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qtextdocumentlayout.cpp Fix page breaking with large images 2019-04-26 18:21:18 +00:00
qtextdocumentwriter.cpp Modernize the "textcodec" feature 2018-11-07 13:19:54 +00:00
qtextdocumentwriter.h Modernize the "textcodec" feature 2018-11-07 13:19:54 +00:00
qtextengine_p.h Show nbsps as a degree symbol to differeniate from normal spaces 2018-03-16 07:10:24 +00:00
qtextengine.cpp Fix QTextEngine::shapeText casing of surrogate pairs 2019-05-07 07:50:33 +00:00
qtextformat_p.h QTextFormatCollection: replace copy ctor and op= with clear() 2017-02-23 18:11:55 +00:00
qtextformat.cpp Doc: Qt GUI: Fix documentation warnings 2018-11-06 12:43:17 +00:00
qtextformat.h Add image quality handling to QTextImageFormat 2018-04-22 12:47:26 +00:00
qtexthtmlparser_p.h Fix CSS line-height property multiplier value handling 2017-04-21 07:10:51 +00:00
qtexthtmlparser.cpp fix compilation with various -no-feature-* options 2019-05-05 09:14:48 +00:00
qtextimagehandler_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qtextimagehandler.cpp Replace QLatin1Literal with QLatin1String 2016-09-03 18:55:56 +00:00
qtextlayout.cpp Draw ShowTabsAndSpaces symbols with the correct font 2019-01-03 08:48:41 +00:00
qtextlayout.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qtextlist.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qtextlist.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qtextobject_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qtextobject.cpp Documentation: Add \nullptr macro and use where applicable 2019-01-10 22:16:07 +00:00
qtextobject.h Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qtextodfwriter_p.h Add more formatting to QTextDocumentWriter when writing ODF files 2018-04-11 18:44:31 +00:00
qtextodfwriter.cpp Write an anchor-type attribute when embedding images in an ODF document 2019-05-13 13:03:07 +10:00
qtextoption.cpp Show nbsps as a degree symbol to differeniate from normal spaces 2018-03-16 07:10:24 +00:00
qtextoption.h Add QTextOption/QTextEdit/QPlainTextEdit::tabStopDistance property 2017-08-06 08:16:06 +00:00
qtexttable_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qtexttable.cpp Fix QTextTable:insertRows() for tables with spanning cells 2019-02-09 08:01:08 +00:00
qtexttable.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qzip.cpp Remove member function from CentralFileHeader 2018-08-03 20:26:52 +00:00
qzipreader_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
qzipwriter_p.h Add qtguiglobal.h and qtguiglobal_p.h 2016-07-03 07:55:57 +00:00
text.pri Accept ZWNJ, ZWJ and PUA characters in input widgets 2016-12-12 11:13:53 +00:00