Refactoring: Page::console should return a reference.

It is never null.  Also, an argument of ScriptPreprocessor constructor should
be PageConsole& because only Page::console is passed to it.

This change prevents one from adding unnecessary NULL check in the future.

BUG=none
TEST=none; no behavior changes.

Review URL: https://chromiumcodereview.appspot.com/22889023

git-svn-id: svn://svn.chromium.org/blink/trunk@156527 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebase layout tests and remove from TestExpectations

Fixing layout tests that I disabled earlier to diagnose.

TBR=jianli@chromium.org

BUG=277088

Review URL: https://chromiumcodereview.appspot.com/22987005

git-svn-id: svn://svn.chromium.org/blink/trunk@156528 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename toFrameOwnerElement() to toHTMLFrameOwnerElement() for consistency.

Casting function names should be toClassName.
Also, we should use toHTMLFrameOwnerElement() to avoid static_cast<>.

BUG=none
TEST=none; no behavior changes.

Review URL: https://chromiumcodereview.appspot.com/23256003

git-svn-id: svn://svn.chromium.org/blink/trunk@156529 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Internals should always cause a layout before calling into TextIterator

Calling into TextIterator without causing a layout first doesn't work and will break
once we lazy attach everywhere. This fixes lots of tests that break once we lazy attach
inside the parser.

Review URL: https://chromiumcodereview.appspot.com/22978019

git-svn-id: svn://svn.chromium.org/blink/trunk@156530 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Deflake fast/images/image-zoom-to-{25,500}.html

The tests were flaky on Linux because resizing the window is async
in GTK+.  If we haven't finished resizing, queue another resize event
so we check again.

BUG=276759
TBR=dominicc@chromium.org

Review URL: https://chromiumcodereview.appspot.com/23242015

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