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

Unified Diff: third_party/WebKit/Source/core/style/StyleBoxData.h

Issue 2781313004: Implement RefCountedCopyable<T>. (Closed)
Patch Set: Address comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleBoxData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleBoxData.h
diff --git a/third_party/WebKit/Source/core/style/StyleBoxData.h b/third_party/WebKit/Source/core/style/StyleBoxData.h
index 89c9cbdb99821350d54631b1fce4d5561e349e8d..4ce092d06749a70cbf91928b205dd16a0e8a1e78 100644
--- a/third_party/WebKit/Source/core/style/StyleBoxData.h
+++ b/third_party/WebKit/Source/core/style/StyleBoxData.h
@@ -36,7 +36,7 @@ namespace blink {
// TODO(sashab): Move this into a private class on ComputedStyle, and remove
// all methods on it, merging them into copy/creation methods on ComputedStyle
// instead. Keep the allocation logic, only allocating a new object if needed.
-class CORE_EXPORT StyleBoxData : public RefCounted<StyleBoxData> {
+class CORE_EXPORT StyleBoxData : public RefCountedCopyable<StyleBoxData> {
public:
static PassRefPtr<StyleBoxData> create() {
return adoptRef(new StyleBoxData);
@@ -71,7 +71,7 @@ class CORE_EXPORT StyleBoxData : public RefCounted<StyleBoxData> {
friend class ComputedStyle;
StyleBoxData();
- StyleBoxData(const StyleBoxData&);
+ StyleBoxData(const StyleBoxData&) = default;
Length m_width;
Length m_height;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleBoxData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698