From 621dff830bfdac045144fed76a23d56ddf576f11 Mon Sep 17 00:00:00 2001 From: poire-z Date: Thu, 21 May 2026 00:57:11 +0200 Subject: [PATCH] bump base & crengine: support for initial-letter, and other fixes (#15429) Includes: - fix GCC 16 warnings (-Wunused-but-set-variable) - ldomXRange::getRangeText(): newline on
- 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 --- base | 2 +- frontend/document/credocument.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base b/base index 7f3697f97..613798678 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 7f3697f9717eea8ad11061fdee7a9a64ac050756 +Subproject commit 613798678993c5a133f512430f286960e6b24e80 diff --git a/frontend/document/credocument.lua b/frontend/document/credocument.lua index 282cc826d..a4e9b45d9 100644 --- a/frontend/document/credocument.lua +++ b/frontend/document/credocument.lua @@ -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