Add a typedef for DocumentClass when passed to constructors

Like WebKit r149705 we can add a typedef to Document's constructor to make
it more clear what values are supposed to be passed.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add pdr to platform graphics watchlist

No code change, no change in behavior.

TBR=schenney@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make sure the main header is not included twice in the generated implementation

r149976 updated the bindings generator so that the main header is not included
twice in the generated implementation under most circumstances. However, the
fix was incomplete as the bug is still reproduceable if an IDL interface refers
to itself (i.e. one of the attributes or arguments has the interface as type).

This patch addresses the issue by using the implIncludes hash map for the
main header include, instead of hardcoding it in the header section. The main
include is then treated as a special case in WriteData subroutine to make
sure it is printed right after the "config.h" include and followed by a blank
line.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149994 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move text encoding to WTF

This CL moves the TextEncoding and TextCodec classes to WTF in preparation for
moving KURL and SecurityOrigin to a separate target.

BUG=239181
R=jamesr@chromium.org

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

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