Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 LayerDescendantClipRecorder_h | |
| 6 #define LayerDescendantClipRecorder_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "wtf/FastAllocBase.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class GraphicsContext; | |
| 14 class LayoutBox; | |
| 15 class LayoutPoint; | |
| 16 | |
| 17 // Note: This class is designed for SPv2, and has drastically different semantic s than | |
| 18 // LayerClipRecorder. In the old layer painting model, a layer is responsible fo r | |
| 19 // calculating the accumulated clip from ancestors, and applies the clip to itse lf. | |
| 20 // In SPv2, it is the layer that establishes overflow clipping who is responsibl e to clip | |
| 21 // its descendants. This class takes a layer, and only issues clip for that laye r. | |
| 22 class CORE_EXPORT LayerDescendantClipRecorder { | |
| 23 WTF_MAKE_FAST_ALLOCATED(LayerDescendantClipRecorder); | |
| 24 public: | |
| 25 LayerDescendantClipRecorder(GraphicsContext&, const LayoutBox&, const Layout Point& paintOffset); | |
| 26 ~LayerDescendantClipRecorder(); | |
| 27 | |
| 28 private: | |
| 29 GraphicsContext& m_graphicsContext; | |
| 30 const LayoutBox& m_layoutObject; | |
|
pdr.
2015/09/08 04:23:54
Nit: m_layoutBox;
trchen
2015/09/15 04:48:40
Done.
| |
| 31 }; | |
| 32 | |
| 33 } // namespace blink | |
| 34 | |
| 35 #endif // LayerDescendantClipRecorder_h | |
| OLD | NEW |