Make changes to comment node before apply staging stack

Otherwise we generate two history entries.

Bug: 72315
Change-Id: I12410c00f70f03419167eb86ebac351a62618d70
Apply comment changes using fragment

Protects against the underlying document changing while the
inspector is open.

Bug: 71706
Change-Id: Ibabc1cec7c39568a99d7bafc8976f4bdcf1bb90a
Merge "Make changes to comment node before apply staging stack"
Merge "Apply comment changes using fragment"