| Index: Source/core/paint/SubtreeRecorder.h
|
| diff --git a/Source/core/paint/SubtreeRecorder.h b/Source/core/paint/SubtreeRecorder.h
|
| index ff604390461dc3d455d66fdc631d6cb62236d7d5..6d773a61415f231bff3abd8b0f294209311ab7d6 100644
|
| --- a/Source/core/paint/SubtreeRecorder.h
|
| +++ b/Source/core/paint/SubtreeRecorder.h
|
| @@ -21,22 +21,18 @@ class LayoutObject;
|
| class SubtreeRecorder {
|
| public:
|
| SubtreeRecorder(GraphicsContext&, const LayoutObject& root, PaintPhase);
|
| -
|
| ~SubtreeRecorder();
|
|
|
| - // This method should be called before we actually paint the subtree, then we'll
|
| - // issue a pair of BeginSubtree/EndSubtree display items to enclose all display
|
| - // items when we paint the subtree.
|
| - // Omit this call if we skip painting of the whole subtree (when e.g. the subtree
|
| - // is out of the viewport, or the whole subtree is not invalidated), then we'll
|
| - // issue a SubtreeCached display item.
|
| - void begin();
|
| + bool canUseCache() const;
|
|
|
| private:
|
| DisplayItemList* m_displayItemList;
|
| const LayoutObject& m_subtreeRoot;
|
| const PaintPhase m_paintPhase;
|
| - bool m_begun;
|
| + bool m_canUseCache;
|
| +#if ENABLE(ASSERT)
|
| + mutable bool m_checkedCanUseCache;
|
| +#endif
|
| };
|
|
|
| } // namespace blink
|
|
|