| Index: Source/core/dom/ParentNode.h
|
| diff --git a/Source/core/page/DOMWindowTimers.h b/Source/core/dom/ParentNode.h
|
| similarity index 73%
|
| copy from Source/core/page/DOMWindowTimers.h
|
| copy to Source/core/dom/ParentNode.h
|
| index 2a28f81810c751f9331f6f421d0c0d57a87b7813..9fb949a35b0aefb308f11af7253806ad7167cbe8 100644
|
| --- a/Source/core/page/DOMWindowTimers.h
|
| +++ b/Source/core/dom/ParentNode.h
|
| @@ -1,6 +1,4 @@
|
| /*
|
| - * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
|
| - * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
|
| * Copyright (C) 2013 Samsung Electronics. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| @@ -30,23 +28,36 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef DOMWindowTimers_h
|
| -#define DOMWindowTimers_h
|
| +#ifndef ParentNode_h
|
| +#define ParentNode_h
|
|
|
| -#include "wtf/Forward.h"
|
| +#include "core/dom/ContainerNode.h"
|
|
|
| namespace WebCore {
|
|
|
| -class EventTarget;
|
| -class ScheduledAction;
|
| +class ParentNode {
|
| +public:
|
| + static PassRefPtr<HTMLCollection> children(ContainerNode* node)
|
| + {
|
| + return node->children();
|
| + }
|
|
|
| -namespace DOMWindowTimers {
|
| -int setTimeout(EventTarget*, PassOwnPtr<ScheduledAction>, int timeout);
|
| -int setInterval(EventTarget*, PassOwnPtr<ScheduledAction>, int timeout);
|
| -void clearTimeout(EventTarget*, int timeoutId);
|
| -void clearInterval(EventTarget*, int timeoutId);
|
| -}
|
| + static Element* firstElementChild(ContainerNode* node)
|
| + {
|
| + return node->firstElementChild();
|
| + }
|
| +
|
| + static Element* lastElementChild(ContainerNode* node)
|
| + {
|
| + return node->lastElementChild();
|
| + }
|
| +
|
| + static unsigned childElementCount(ContainerNode* node)
|
| + {
|
| + return node->childElementCount();
|
| + }
|
| +};
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // DOMWindowTimers_h
|
| +#endif // ParentNode_h
|
|
|