Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: third_party/WebKit/Source/core/style/PaintImages.h

Issue 2911343002: Make PaintImages a class and implement a Clone() method. (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698