| Index: Source/core/dom/Node.h
|
| diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
|
| index 03df9b855ae706d4d4cf1e5345eddc3c5955ccdb..a198eef92d504a6b29f220594101678ec1d4ee7f 100644
|
| --- a/Source/core/dom/Node.h
|
| +++ b/Source/core/dom/Node.h
|
| @@ -898,11 +898,13 @@ DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Node)
|
| template<typename T> inline thisType* to##thisType(const RefPtr<T>& node) { return to##thisType(node.get()); } \
|
| DEFINE_TYPE_CASTS(thisType, Node, node, is##thisType(*node), is##thisType(node))
|
|
|
| +#define DECLARE_NODE_FACTORY(T) \
|
| + static PassRefPtrWillBeRawPtr<T> create(Document&)
|
| #define DEFINE_NODE_FACTORY(T) \
|
| - inline static PassRefPtrWillBeRawPtr<T> create(Document& document) \
|
| - { \
|
| - return adoptRefWillBeRefCountedGarbageCollected(new T(document)); \
|
| - }
|
| +PassRefPtrWillBeRawPtr<T> T::create(Document& document) \
|
| +{ \
|
| + return adoptRefWillBeRefCountedGarbageCollected(new T(document)); \
|
| +}
|
|
|
| } // namespace WebCore
|
|
|
|
|