Remove all RDEPUBBackgroundTrace.log and bare print diagnostic calls

Keep only the evaluateFullPageMapTakeover: fullReplace diagnostic log
in RDEPUBPageMapReconciliationCoordinator.swift for future debugging.

Simplified RDEPUBBackgroundTrace to just the log method (removed measure
and debug gating). Removed all [EPUB][...], [ReadViewDemo], and
[EPUB][Pagination] print statements across the project.

Also includes earlier bug fixes:
- Fix stale currentPageNumber in extendPartial commit
- Fix pageCurl rebindVisiblePage during transition
- Fix keepCurrentWindow not removing pending update from queue
- Fix right-aligned text (巫鸿 bug) via avoidPageBreakInside,
  tail merger, and continuation paragraph normalization
- Add text-indent reset for aligned blocks in CSS compatibility layer

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-06-25 18:25:22 +08:00
co-authored by Claude
parent 8c5059e72f
commit 15b15d0e11
23 changed files with 95 additions and 492 deletions
@@ -121,10 +121,6 @@ final class RDEPUBJumpSessionManager {
lastPageDirection = nil
lastActivityTime = now
RDEPUBBackgroundTrace.log(
"JumpSession",
"created anchor=\(anchorSpineIndex) protected=\(protectedIndices.count) seq=\(nextSequenceNumber)"
)
return session
}
@@ -163,20 +159,12 @@ final class RDEPUBJumpSessionManager {
if now >= session.expiresAt {
if isIdle || (now - lastActivityTime) >= policy.idleGracePeriod {
RDEPUBBackgroundTrace.log(
"JumpSession",
"end: timeout seq=\(session.sequenceNumber)"
)
return .timeout
}
}
if !session.protectedSpineIndices.contains(currentSpineIndex) {
if consecutivePageCount >= policy.exitPageThreshold {
RDEPUBBackgroundTrace.log(
"JumpSession",
"end: navigated-away seq=\(session.sequenceNumber) pages=\(consecutivePageCount)"
)
return .navigatedAway
}
} else {
@@ -189,10 +177,6 @@ final class RDEPUBJumpSessionManager {
func endSession(_ reason: RDEPUBJumpSession.EndReason) {
guard let session = activeSession else { return }
RDEPUBBackgroundTrace.log(
"JumpSession",
"ended seq=\(session.sequenceNumber) reason=\(reason)"
)
activeSession = nil
consecutivePageCount = 0
lastPageDirection = nil