Page MenuHomePhabricator

Fix inline comment links for non-visible comments
ClosedPublic

Authored by epriestley on Feb 14 2014, 12:05 AM.
Tags
None
Referenced Files
F17840010: D8224.diff
Sat, Jul 26, 8:39 PM
F17631007: D8224.diff
Thu, Jul 10, 12:27 PM
Unknown Object (File)
Sun, Jun 29, 12:24 AM
Unknown Object (File)
Jun 9 2025, 1:56 AM
Unknown Object (File)
May 30 2025, 5:43 AM
Unknown Object (File)
May 20 2025, 9:18 PM
Unknown Object (File)
May 19 2025, 6:58 PM
Unknown Object (File)
May 8 2025, 11:41 AM
Subscribers

Details

Summary

Ref T2222. Restore this funky is-visible / inline-is-elsewhere logic.

Test Plan

Updated a revision, saw all the inlines render properly when looking at various diffs and versus-diffs. Clicked inline links.

Diff Detail

Repository
rP Phabricator
Branch
dui3
Lint
Lint Passed
Unit
Tests Passed

Event Timeline

src/applications/differential/editor/DifferentialRevisionEditor.php
705

Fixes a similar content source issue to the CommentEditor one -- this one was on the web update pathway.

src/applications/differential/view/DifferentialTransactionView.php
133–134

I realized that this was probably wrong too, and would sort 11 before 9. Since we should rarely have files which are more than 2^16 lines long, and also rarely have comments that are more than 2^16 lines long, just do some bit fiddling.