Merge "Update output's dirty region when content changes" into main