[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
Auto-rebaseline for r168336

http://src.chromium.org/viewvc/blink?view=revision&revision=168336

BUG=346132
TBR=tsepez@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168353 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert Event back (from RefCountedWillBeRefCountedGarbageCollected) to RefCounted

Moving Event to oilpan's heap caused a lot of crashes/failures. So this CL reverts Event back to RefCounted.

This CL is a revert for https://codereview.chromium.org/182063004/. However, this CL does not revert trace() methods in the original CL because there is no harm in having trace() methods in the code base. (If I revert trace() methods, I have to resolve a bunch of conflicts manually, which will be more dangerous than leaving trace() methods in the code base.)

BUG=340522
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168354 bbb929c8-8fbe-4397-9dbb-9b2b20218538