Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument.

We're going to change element factories at least twice.
 1. Replace adoptRefWillBeRefCountedGarbageCollected with adoptRefWillBeNoop
 2-1. Replace PassRefPtrWillBeRawPtr<T> with T* and remove adoptRefWillBeNoop if
   we switch to Oilpan successfully.
 2-2. Replace PassRefPtrWillBeRawPtr<T> with PassRefPtr<T>, and
   adoptRefWillBeNoop with adoptRef if we decide not to switch to Oilpan.

This CL makes these changes easier.

Also, this CL split existing DEFINE_NODE_FACTORY into DECLARE_NODE_FACTORY and
DEFINE_NODE_FACTORY to avoid inline definition in headers.
http://www.chromium.org/developers/coding-style/cpp-dos-and-donts#TOC-Stop-inlining-code-in-headers

BUG=357163

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

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