Addressing comments on code review: Updates markLayoutApplied->markLayou...

...tSeen and makes sure whenever we dirty if and only if we update a value.