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.
6 #include "platform/graphics/paint/DisplayItemClipTree.h"
12 DisplayItemClipTree::DisplayItemClipTree()
14 // There is always a root node.
15 // And it's always in the root transform space.
16 float infinity
= std::numeric_limits
<float>::infinity();
17 WebFloatRect
infiniteRect(-infinity
, -infinity
, infinity
, infinity
);
18 m_nodes
.append(ClipNode(kInvalidIndex
, 0 /* root transform node */, infiniteRect
));
19 ASSERT(m_nodes
[0].isRoot());
22 DisplayItemClipTree::~DisplayItemClipTree()