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

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

Issue 1791543005: InPrePaint document state and PrePaintTreeWalk class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/PrePaintTreeWalk.h
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
new file mode 100644
index 0000000000000000000000000000000000000000..7868982a8748c6976212bbcf11c68e17dec46355
--- /dev/null
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
@@ -0,0 +1,32 @@
+// 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 PrePaintTreeWalk_h
+#define PrePaintTreeWalk_h
+
+#include "core/paint/PaintPropertyTreeBuilder.h"
+
+namespace blink {
+
+class FrameView;
+class LayoutObject;
+struct PrePaintTreeWalkContext;
+
+// This class walks the whole layout tree, beginning from the root FrameView, across
+// frame boundaries. Helper classes are called for each tree node to perform actual actions.
+// It expects to be invoked in InPrePaint phase.
+class PrePaintTreeWalk {
+public:
+ void walk(FrameView& rootFrame);
+
+private:
+ void walk(FrameView&, const PrePaintTreeWalkContext&);
+ void walk(const LayoutObject&, const PrePaintTreeWalkContext&);
+
+ PaintPropertyTreeBuilder m_propertyTreeBuilder;
+};
+
+} // namespace blink
+
+#endif // PrePaintTreeWalk_h

Powered by Google App Engine
This is Rietveld 408576698