Commit b189ebfd authored by Tae Shin's avatar Tae Shin Committed by Commit Bot

Replace DISALLOW_COPY_AND_ASSIGN with =delete versions in "/blink/renderer/core/style"

we should return to Google C++ style when it comes to deleting implicit copy constructors and assign operators.

Bug: 1010217
Change-Id: I8b1eb095ae96d208d5a5f019ed1b309de8640523
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352266Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: default avatarEric Willigers <ericwilligers@chromium.org>
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#798999}
parent de039933
...@@ -988,6 +988,7 @@ Szymon Piechowicz <szymonpiechowicz@o2.pl> ...@@ -988,6 +988,7 @@ Szymon Piechowicz <szymonpiechowicz@o2.pl>
Taeheon Kim <skyrabbits1@gmail.com> Taeheon Kim <skyrabbits1@gmail.com>
Taeho Nam <thn7440@gmail.com> Taeho Nam <thn7440@gmail.com>
Taehoon Lee <taylor.hoon@gmail.com> Taehoon Lee <taylor.hoon@gmail.com>
Tae Shin <taeshindev@gmail.com>
Takashi Fujita <tgfjt.mail@gmail.com> Takashi Fujita <tgfjt.mail@gmail.com>
Takeshi Kurosawa <taken.spc@gmail.com> Takeshi Kurosawa <taken.spc@gmail.com>
Tanay Chowdhury <tanay.c@samsung.com> Tanay Chowdhury <tanay.c@samsung.com>
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_FILTER_OPERATION_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_FILTER_OPERATION_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_FILTER_OPERATION_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_FILTER_OPERATION_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/style/shadow_data.h" #include "third_party/blink/renderer/core/style/shadow_data.h"
#include "third_party/blink/renderer/platform/geometry/float_rect.h" #include "third_party/blink/renderer/platform/geometry/float_rect.h"
...@@ -114,7 +113,8 @@ class CORE_EXPORT FilterOperation : public GarbageCollected<FilterOperation> { ...@@ -114,7 +113,8 @@ class CORE_EXPORT FilterOperation : public GarbageCollected<FilterOperation> {
OperationType type_; OperationType type_;
private: private:
DISALLOW_COPY_AND_ASSIGN(FilterOperation); FilterOperation(const FilterOperation&) = delete;
FilterOperation& operator=(const FilterOperation&) = delete;
}; };
class CORE_EXPORT ReferenceFilterOperation : public FilterOperation { class CORE_EXPORT ReferenceFilterOperation : public FilterOperation {
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_GRID_POSITIONS_RESOLVER_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_GRID_POSITIONS_RESOLVER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_GRID_POSITIONS_RESOLVER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_GRID_POSITIONS_RESOLVER_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/style/grid_position.h" #include "third_party/blink/renderer/core/style/grid_position.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
...@@ -49,7 +48,8 @@ class NamedLineCollection { ...@@ -49,7 +48,8 @@ class NamedLineCollection {
size_t auto_repeat_total_tracks_; size_t auto_repeat_total_tracks_;
size_t auto_repeat_track_list_length_; size_t auto_repeat_track_list_length_;
DISALLOW_COPY_AND_ASSIGN(NamedLineCollection); NamedLineCollection(const NamedLineCollection&) = delete;
NamedLineCollection& operator=(const NamedLineCollection&) = delete;
}; };
// This is a utility class with all the code related to grid items positions // This is a utility class with all the code related to grid items positions
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_SVG_RESOURCE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_SVG_RESOURCE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_SVG_RESOURCE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_SVG_RESOURCE_H_
#include "base/macros.h"
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "third_party/blink/renderer/core/svg/svg_resource.h" #include "third_party/blink/renderer/core/svg/svg_resource.h"
#include "third_party/blink/renderer/platform/heap/persistent.h" #include "third_party/blink/renderer/platform/heap/persistent.h"
...@@ -46,7 +45,8 @@ class StyleSVGResource : public RefCounted<StyleSVGResource> { ...@@ -46,7 +45,8 @@ class StyleSVGResource : public RefCounted<StyleSVGResource> {
Persistent<SVGResource> resource_; Persistent<SVGResource> resource_;
const AtomicString url_; const AtomicString url_;
DISALLOW_COPY_AND_ASSIGN(StyleSVGResource); StyleSVGResource(const StyleSVGResource&) = delete;
StyleSVGResource& operator=(const StyleSVGResource&) = delete;
}; };
} // namespace blink } // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment