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:
+11
-2
@@ -266,6 +266,7 @@ final class RDEPUBReaderAnnotationCoordinator {
|
||||
let newBookmark = RDEPUBBookmark(
|
||||
bookIdentifier: controller.currentBookIdentifier,
|
||||
location: location,
|
||||
rangeInfo: controller.currentVisibleRangeInfo(),
|
||||
chapterTitle: titleForBookmarkLocation(location),
|
||||
note: normalizedBookmarkNote(note)
|
||||
)
|
||||
@@ -306,7 +307,11 @@ final class RDEPUBReaderAnnotationCoordinator {
|
||||
guard let bookmark = bookmark(withID: id) else {
|
||||
return false
|
||||
}
|
||||
return controller.restoreReadingLocation(bookmark.location, animated: animated)
|
||||
return controller.restoreReadingLocation(
|
||||
bookmark.location,
|
||||
animated: animated,
|
||||
targetHighlightRangeInfo: bookmark.rangeInfo
|
||||
)
|
||||
}
|
||||
|
||||
func presentBookmarksManager() {
|
||||
@@ -320,7 +325,11 @@ final class RDEPUBReaderAnnotationCoordinator {
|
||||
bookmarksController.onSelectBookmark = { [weak self, weak bookmarksController] bookmark in
|
||||
guard let controller = self?.controller else { return }
|
||||
bookmarksController?.dismiss(animated: true) {
|
||||
_ = controller.restoreReadingLocation(bookmark.location, animated: true)
|
||||
_ = controller.restoreReadingLocation(
|
||||
bookmark.location,
|
||||
animated: true,
|
||||
targetHighlightRangeInfo: bookmark.rangeInfo
|
||||
)
|
||||
}
|
||||
}
|
||||
bookmarksController.onDeleteBookmark = { [weak self] bookmark in
|
||||
|
||||
Reference in New Issue
Block a user