The engine keeps every piece of the document as a node of one build. An edit runs again only the pieces that read what it changed, and the page that shows is exactly the page TEX would set, as shown by [?].
Line breaks and page breaks are computed as before, so a change that moves no break leaves the other pages alone.
[1]Donald E. Knuth. The TEXbook. Addison-Wesley, 1984.