Fix checkForRepaintDuringLayout do return false when doing repaintAfterLayout.

The checkForRepaintDuringLayout is needed for both the non-repaintAfterLayout
and the repaintAfterLayout case. So, I've split the method into checkForRepaint
and checkForRepaintAfterLayout which are used as needed.

This change pointed out a few missing LayoutRectRecorder entries that have
been added to fixup LayoutTests.

BUG=310398

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165101 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Moved text decoding to the parser thread"

This reverts 164797

R=abarth@chromium.org,eseidel@chromium.org
BUG=329603

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

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