Don't update style for focusability when render-blocking.

WebNode::IsFocusable() updated style and layout tree, without ignoring
pending stylesheets, which meant generating a display:none placeholder
style for the root node. Instead, early return from IsFocusable() when
we are blocking rendering.

Bug: 521692

Change-Id: Idd6cfcf800e4173cfc1bdcb916728c7a0186edf9
Reviewed-by: Stefan Zager <>
Commit-Queue: Rune Lillesveen <>
Cr-Commit-Position: refs/heads/master@{#599181}
2 files changed