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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h

Issue 1407543003: Preliminary paint property walk implementation for SPv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor bug fix (perspective does not clear paint offset). switch test to unit test style. add a few … Created 5 years, 2 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: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
new file mode 100644
index 0000000000000000000000000000000000000000..88c4367ea495c843005242acbddff5104fa8163f
--- /dev/null
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
@@ -0,0 +1,28 @@
+// 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.
+
+#ifndef PaintPropertyTreeBuilder_h
+#define PaintPropertyTreeBuilder_h
+
+namespace blink {
+
+class FrameView;
+class LayoutBoxModelObject;
+class LayoutObject;
pdr. 2015/10/20 22:02:31 "class LayoutObject" and "struct PaintPropertyTree
trchen 2015/10/21 06:16:20 Done.
+struct PaintPropertyTreeNode;
+
+class PaintPropertyTreeBuilder {
jbroman 2015/10/20 23:50:13 Class comment please. At least a description that
trchen 2015/10/21 06:16:20 I consider the walk ordering being implementation
+public:
+ void buildPropertyTrees(FrameView& rootFrame);
pdr. 2015/10/20 22:02:31 WDYT about making all of these functions const sin
jbroman 2015/10/20 23:50:13 IMHO either these are (potentially) stateful objec
trchen 2015/10/21 06:16:20 Yep, I feel that it is very likely to become state
+
+private:
+ struct Context;
+
+ void walk(FrameView&, const Context&);
pdr. 2015/10/20 22:02:31 Can you doc which tree traversal order is used in
trchen 2015/10/21 06:16:20 Ditto.
+ void walk(LayoutBoxModelObject&, const Context&);
+};
+
+} // namespace blink
+
+#endif // PaintPropertyTreeBuilder_h

Powered by Google App Engine
This is Rietveld 408576698