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

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

Issue 1980893002: Remove OwnPtr::release() calls in core/ (part 4). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 private: 148 private:
149 CounterContentData(PassOwnPtr<CounterContent> counter) 149 CounterContentData(PassOwnPtr<CounterContent> counter)
150 : m_counter(std::move(counter)) 150 : m_counter(std::move(counter))
151 { 151 {
152 } 152 }
153 153
154 ContentData* cloneInternal() const override 154 ContentData* cloneInternal() const override
155 { 155 {
156 OwnPtr<CounterContent> counterData = adoptPtr(new CounterContent(*counte r())); 156 OwnPtr<CounterContent> counterData = adoptPtr(new CounterContent(*counte r()));
157 return create(counterData.release()); 157 return create(std::move(counterData));
158 } 158 }
159 159
160 bool equals(const ContentData& data) const override 160 bool equals(const ContentData& data) const override
161 { 161 {
162 if (!data.isCounter()) 162 if (!data.isCounter())
163 return false; 163 return false;
164 return *static_cast<const CounterContentData&>(data).counter() == *count er(); 164 return *static_cast<const CounterContentData&>(data).counter() == *count er();
165 } 165 }
166 166
167 OwnPtr<CounterContent> m_counter; 167 OwnPtr<CounterContent> m_counter;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 204 }
205 205
206 inline bool operator!=(const ContentData& a, const ContentData& b) 206 inline bool operator!=(const ContentData& a, const ContentData& b)
207 { 207 {
208 return !(a == b); 208 return !(a == b);
209 } 209 }
210 210
211 } // namespace blink 211 } // namespace blink
212 212
213 #endif // ContentData_h 213 #endif // ContentData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698