Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / exported / WebDisplayItemClipTree.cpp
blob8625e18a4a39c5fae5a15312c229b68d8adf27b1
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "config.h"
6 #include "public/platform/WebDisplayItemClipTree.h"
8 #include "platform/graphics/paint/DisplayItemClipTree.h"
10 namespace blink {
12 WebDisplayItemClipTree::WebDisplayItemClipTree()
16 WebDisplayItemClipTree::WebDisplayItemClipTree(const PassOwnPtr<DisplayItemClipTree>& passImpl)
17 : m_private(passImpl)
21 WebDisplayItemClipTree::~WebDisplayItemClipTree()
23 // WebPrivateOwnPtr requires explicit clearing here.
24 m_private.reset(nullptr);
27 size_t WebDisplayItemClipTree::nodeCount() const
29 return m_private->nodeCount();
32 const WebDisplayItemClipTree::ClipNode& WebDisplayItemClipTree::nodeAt(size_t index) const
34 return m_private->nodeAt(index);
37 } // namespace blink