Use original screen size in TextAutoresizer.

When virtual pinch viewport is enabled, the initial frame size gets overwritten with the size of the whole document.
If the text autoresize is also enabled at the same time, this frame size change causes an extra layout, during which
the font scale is calculated improperly.

To avoid both things the TextAutoresizer now gets the window size from the PinchViewport object.

BUG=402663

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183367 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Write out unique includes in element factories

Modify the writing out of element includes so that only unique
includes are made. This mainly improves HTMLElementFactory.cpp
where HTMLElement.h was included 44 times.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183368 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move paint code from RootInlineBox and EllipsisBox to RootInlineBoxPainter and EllipsisBoxPainter.

BUG=412088

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

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