Extract DiffMarginCore which will be shared between Editor and ScrollBar
First hacked version working