Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / graphics / paint / DisplayItemClipTree.cpp
blob6e7ddb840b9e5308f42c91486450eb1ff9f4c7ff
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 "platform/graphics/paint/DisplayItemClipTree.h"
8 #include <limits>
10 namespace blink {
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()
26 } // namespace blink