inline WebCore::Node::Node constructor more safely

Recently, some toolchains started giving link errors due to WebCore::Node::Node
being undefined in libwebkit.so.  I suspect this is due to incomplete inlining,
since ContainerNode.h does not include Document.h (where the inlining was
defined).

This fix changes the Document argument to the Node constructor to a TreeScope,
which is the sole purpose of this argument, and since Node isn't a TreeScope
there's no circular dependency to worry about forward declarations.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151791 bbb929c8-8fbe-4397-9dbb-9b2b20218538
7 files changed
tree: 6e388ba9e9de5aa8366e77bd05c7418e98aca3fb
  1. third_party/