Handle didMoveToNewDocument() for <script>

This change handles inter-document move for <script>
so that it cancel script execution when it moves between documents.
As the execution relies on ScriptRunner that is owned by Document,
this cancellation is reasoable if not ideal.

TEST=append-child-adopt-node-crash.html
BUG=361011
R=dglazkov@chromium.org, eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171160 bbb929c8-8fbe-4397-9dbb-9b2b20218538
The width of text-combine was doubly counted.

When breaking a line, BreakingContext::handleText() calls textWidth()
with length is zero for text-combine. After that, it calls textWidth() with
length is the length of combined text.

textWidth() just calls RenderText::width(), and
RenderCombineText::width() returns its font size without considering the
length in the argument. Therefore, nextSegmentBreak() doubly counts the
width of combined text.

This causes line breaking in a shrink-to-fit block.

RenderCombineText::width() should returns 0 if the length in the
argument is 0.

BUG=321552, 359114

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

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