[FastTextAutosizer] Do not inflate blocks with no children
This patch fixes a crash on empty documents where a cluster would not get created and we would crash during inflation. I've changed beginLayout to only call inflate when a block has children, and refactored endLayout similarly. BUG=348458 NOTRY=true Review URL: https://codereview.chromium.org/182443004 git-svn-id: svn://svn.chromium.org/blink/trunk@168352 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment