ScrollingStateFrameHostingNode.cpp [plain text]
#include "config.h"
#include "ScrollingStateFrameHostingNode.h"
#if ENABLE(ASYNC_SCROLLING)
#include "ScrollingStateTree.h"
#include <wtf/text/TextStream.h>
namespace WebCore {
Ref<ScrollingStateFrameHostingNode> ScrollingStateFrameHostingNode::create(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
{
return adoptRef(*new ScrollingStateFrameHostingNode(stateTree, nodeID));
}
ScrollingStateFrameHostingNode::ScrollingStateFrameHostingNode(ScrollingStateTree& stateTree, ScrollingNodeID nodeID)
: ScrollingStateNode(ScrollingNodeType::FrameHosting, stateTree, nodeID)
{
ASSERT(isFrameHostingNode());
}
ScrollingStateFrameHostingNode::ScrollingStateFrameHostingNode(const ScrollingStateFrameHostingNode& stateNode, ScrollingStateTree& adoptiveTree)
: ScrollingStateNode(stateNode, adoptiveTree)
{
}
ScrollingStateFrameHostingNode::~ScrollingStateFrameHostingNode() = default;
Ref<ScrollingStateNode> ScrollingStateFrameHostingNode::clone(ScrollingStateTree& adoptiveTree)
{
return adoptRef(*new ScrollingStateFrameHostingNode(*this, adoptiveTree));
}
void ScrollingStateFrameHostingNode::dumpProperties(TextStream& ts, ScrollingStateTreeAsTextBehavior behavior) const
{
ts << "Frame hosting node";
ScrollingStateNode::dumpProperties(ts, behavior);
}
}
#endif // ENABLE(ASYNC_SCROLLING)