Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #include "config.h" | |
| 6 #include "platform/graphics/paint/DisplayItemClipTree.h" | |
| 7 | |
| 8 #include <limits> | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 DisplayItemClipTree::DisplayItemClipTree() | |
| 13 { | |
| 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); | |
|
pdr.
2015/08/17 22:25:07
add WebFloatRect::infiniteRect()?
| |
| 18 m_nodes.append(ClipNode(kInvalidIndex, 0 /* root transform node */, infinite Rect)); | |
| 19 ASSERT(m_nodes[0].isRoot()); | |
| 20 } | |
| 21 | |
| 22 DisplayItemClipTree::~DisplayItemClipTree() | |
| 23 { | |
| 24 } | |
| 25 | |
| 26 } // namespace blink | |
| OLD | NEW |