Layout engines operate on tree structures that can quickly balloon into O(n^2) operations if not pruned correctly. We analyze the specific algorithms utilized by the Blink and WebKit engines.