OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 PaintImages_h |
| 6 #define PaintImages_h |
| 7 |
| 8 #include <memory> |
| 9 #include "core/style/StyleImage.h" |
| 10 #include "platform/heap/Persistent.h" |
| 11 #include "platform/wtf/PtrUtil.h" |
| 12 #include "platform/wtf/Vector.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 // Not to be deleted through a pointer to the base class. |
| 17 class PaintImages : public Vector<Persistent<StyleImage>> { |
| 18 public: |
| 19 std::unique_ptr<PaintImages> Clone() const { |
| 20 return WTF::WrapUnique(new PaintImages(*this)); |
| 21 } |
| 22 }; |
| 23 |
| 24 } // namespace blink |
| 25 |
| 26 #endif // PaintImages_h |
OLD | NEW |