Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Unified Diff: Source/platform/graphics/paint/DisplayItemClipTree.cpp

Issue 1296963002: Put transform tree building in DisplayItemPropertyTreeBuilder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename State to BuilderState Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/paint/DisplayItemClipTree.cpp
diff --git a/Source/platform/graphics/paint/DisplayItemClipTree.cpp b/Source/platform/graphics/paint/DisplayItemClipTree.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..6e7ddb840b9e5308f42c91486450eb1ff9f4c7ff
--- /dev/null
+++ b/Source/platform/graphics/paint/DisplayItemClipTree.cpp
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "platform/graphics/paint/DisplayItemClipTree.h"
+
+#include <limits>
+
+namespace blink {
+
+DisplayItemClipTree::DisplayItemClipTree()
+{
+ // There is always a root node.
+ // And it's always in the root transform space.
+ float infinity = std::numeric_limits<float>::infinity();
+ WebFloatRect infiniteRect(-infinity, -infinity, infinity, infinity);
+ m_nodes.append(ClipNode(kInvalidIndex, 0 /* root transform node */, infiniteRect));
+ ASSERT(m_nodes[0].isRoot());
+}
+
+DisplayItemClipTree::~DisplayItemClipTree()
+{
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698