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

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

Issue 2921543002: Make ComputedStyleBase use MemberCopy when copying pointer fields. (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
« no previous file with comments | « third_party/WebKit/Source/core/style/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MemberCopy_h
6 #define MemberCopy_h
7
8 #include "platform/heap/Persistent.h"
9 #include "platform/wtf/RefPtr.h"
10
11 namespace blink {
12
13 template <typename T>
14 RefPtr<T> MemberCopy(const RefPtr<T>& v) {
15 return v;
16 }
17
18 template <typename T>
19 Persistent<T> MemberCopy(const Persistent<T>& v) {
20 return v;
21 }
22
23 } // namespace blink
24
25 #endif // MemberCopy_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698