Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PaintPropertyTreeBuilder_h | 5 #ifndef PrePaintTreeWalk_h |
| 6 #define PaintPropertyTreeBuilder_h | 6 #define PrePaintTreeWalk_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 class FrameView; | 10 class FrameView; |
| 11 class LayoutObject; | 11 class LayoutObject; |
| 12 struct PaintPropertyTreeBuilderContext; | 12 struct PrePaintTreeWalkContext; |
| 13 | 13 |
| 14 // This class walks the whole layout tree, beginning from the root FrameView, ac ross | 14 // This class walks the whole layout tree, beginning from the root FrameView, ac ross |
| 15 // frame boundaries. The walk will collect special things in the layout tree and create | 15 // frame boundaries. The walk will collect special things in the layout tree and create |
| 16 // paint property nodes for them. Special things include but not limit to: overf low clip, | 16 // paint property nodes for them. Special things include but not limit to: overf low clip, |
| 17 // transform, fixed-pos, animation, mask, filter, ... etc. | 17 // transform, fixed-pos, animation, mask, filter, ... etc. |
| 18 // It expects to be invoked after layout clean, i.e. during InPaintPropertyUpdat e phase. | 18 // It expects to be invoked after layout clean, i.e. during InPaintPropertyUpdat e phase. |
|
pdr.
2016/03/12 04:04:25
Nit: this comment should be updated to not use InP
Xianzhu
2016/03/14 18:56:04
Done.
| |
| 19 class PaintPropertyTreeBuilder { | 19 class PrePaintTreeWalk { |
| 20 public: | 20 public: |
| 21 void buildPropertyTrees(FrameView& rootFrame); | 21 void buildPropertyTrees(FrameView& rootFrame); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 void walk(FrameView&, const PaintPropertyTreeBuilderContext&); | 24 void walk(FrameView&, const PrePaintTreeWalkContext&); |
| 25 void walk(LayoutObject&, const PaintPropertyTreeBuilderContext&); | 25 void walk(LayoutObject&, const PrePaintTreeWalkContext&); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace blink | 28 } // namespace blink |
| 29 | 29 |
| 30 #endif // PaintPropertyTreeBuilder_h | 30 #endif // PrePaintTreeWalk_h |
| OLD | NEW |