| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PrePaintTreeWalk_h |
| 6 #define PrePaintTreeWalk_h |
| 7 |
| 8 #include "core/paint/PaintPropertyTreeBuilder.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class FrameView; |
| 13 class LayoutObject; |
| 14 struct PrePaintTreeWalkContext; |
| 15 |
| 16 // This class walks the whole layout tree, beginning from the root FrameView, ac
ross |
| 17 // frame boundaries. Helper classes are called for each tree node to perform act
ual actions. |
| 18 // It expects to be invoked in InPrePaint phase. |
| 19 class PrePaintTreeWalk { |
| 20 public: |
| 21 void walk(FrameView& rootFrame); |
| 22 |
| 23 private: |
| 24 void walk(FrameView&, const PrePaintTreeWalkContext&); |
| 25 void walk(const LayoutObject&, const PrePaintTreeWalkContext&); |
| 26 |
| 27 PaintPropertyTreeBuilder m_propertyTreeBuilder; |
| 28 }; |
| 29 |
| 30 } // namespace blink |
| 31 |
| 32 #endif // PrePaintTreeWalk_h |
| OLD | NEW |