Allow large patches to function reasonably in diffs
This allows extremely large patches to function in the diff view
reasonably. ChangeScreen doesn't like expanding a large number
of lines at once, so the maximum context is still limited, and
every JavaScript engine but Chrome is extremely slow when running
Prettify over a large patch. CodeMirror doesn't have these same
issues, so the changes are not applied to ChangeScreen2. Because
CodeMirror expects the whole file context to be available, this
fixes the behavior of large patches with ChangeScreen2.
Bug: Issue 1233
Bug: Issue 2166
Change-Id: Idcb6991ccba41d4139aa85014eef496f9f2c035c
4 files changed