| 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
|
|
|