Refresh layout upon layout engine change

Change-Id: Ifa06bd39ef46cc60536c0e68f805ade21d094f5b