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

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: revert forAllFrameViews change in FrameView.cpp. I don't know what I was thinking. 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..eb7e4dd65bc30899dac767e192db2a51b80e3ad4
--- /dev/null
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
@@ -0,0 +1,31 @@
+// 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;
+struct PaintPropertyTreeBuilderContext;
+
+// This class walks the whole layout tree, beginning from the root FrameView, across
+// frame boundaries. The walk will collect special things in the layout tree and create
+// paint property nodes for them. Special things include but not limit to: overflow clip,
+// transform, fixed-pos, animation, mask, filter, ... etc.
+// It expects to be invoked after layout clean, i.e. during InPaintPropertyUpdate phase.
+class PaintPropertyTreeBuilder {
+public:
+ void buildPropertyTrees(FrameView& rootFrame);
+
+private:
+
+ void walk(FrameView&, const PaintPropertyTreeBuilderContext&);
+ void walk(LayoutBoxModelObject&, const PaintPropertyTreeBuilderContext&);
+};
+
+} // namespace blink
+
+#endif // PaintPropertyTreeBuilder_h
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698