bump base & crengine: support for initial-letter, and other fixes (#15429)

Includes:
- fix GCC 16 warnings (-Wunused-but-set-variable)
- ldomXRange::getRangeText(): newline on <br/>
- createXPointer(pt)/getRect(): use formatter src->t.text
- getRect(): unify one-char-long word width handling
- CSS ::first-letter: use non-letter char if no letter in first text node
- CSS ::first-line: properly handle inline-block
- createXPointer(pt): return source text node on pseudoElem[FirstLetter]
- getSegmentRects(): compare .bottom additionally to .top
- lvfntman: add getCapHeight()
- CSS initial-letter: add CSS parsing and style slot
- CSS initial-letter: render ::first-letter via inline-box

Also includes:
- MuPDF: check if page has smask before applying it

credocument: fix call cache statistics
This commit is contained in:
poire-z authored and GitHub committed 2026-05-21 00:57:11 +02:00
1 parent bd1dd7dfd4
commit 621dff830b
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1714,7 +1714,7 @@ function CreDocument:setupCallCache()
return time.now()
end
addStatMiss = function(name, starttime, not_cached)
local duration = time.since(starttime)
local duration = time.to_s(time.since(starttime))
if not self._call_cache_stats[name] then
self._call_cache_stats[name] = {0, 0.0, 1, duration, not_cached}
else
@@ -1724,7 +1724,7 @@ function CreDocument:setupCallCache()
end
end
addStatHit = function(name, starttime)
local duration = time.since(starttime)
local duration = time.to_s(time.since(starttime))
if not self._call_cache_stats[name] then
self._call_cache_stats[name] = {1, duration, 0, 0.0}
else