[import] The first <link rel=import> should win in the cascading order computation.

Before this change, stylesheets in imports are ordered based on
<link>s that "own" these imports. The ownership however is an
implementation detail and shouldn't be observable.

With this change, it takes only the tree order of <link>s into account.
The ownership no longer plays any role.

BUG=346878
TEST=import-style-tree-order-dedup.html
R=esprehn@chromium.org, dglazkov@chromium.org

Review URL: https://codereview.chromium.org/179873020

git-svn-id: svn://svn.chromium.org/blink/trunk@168351 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[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