Commit 33793be8 authored by Eve Martin-Jones's avatar Eve Martin-Jones Committed by Commit Bot

Replace WTF_MAKE_NONCOPYABLE with DISALLOW_COPY_AND_ASSIGN in core/style/*

This change is for files in the path
//third_party/WebKit/Source/core/style/.

Added the include for base/macros.h where needed and moved the macro to the
end of the class as per the code guidelines enforced by lint.

This CL introduces no logic changes.

Bug: 565932
Change-Id: I83e5103f69e36fbd39d227d6c5153cc14be8225c
Reviewed-on: https://chromium-review.googlesource.com/813136Reviewed-by: default avatarSasha Morrissey <sashab@chromium.org>
Commit-Queue: Eve Martin-Jones <evem@chromium.org>
Cr-Commit-Position: refs/heads/master@{#522363}
parent 8b6f374d
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
#ifndef CachedUAStyle_h #ifndef CachedUAStyle_h
#define CachedUAStyle_h #define CachedUAStyle_h
#include "base/macros.h"
#include "core/css/StyleColor.h" #include "core/css/StyleColor.h"
#include "core/style/FillLayer.h" #include "core/style/FillLayer.h"
#include "core/style/NinePieceImage.h" #include "core/style/NinePieceImage.h"
#include "platform/LengthSize.h" #include "platform/LengthSize.h"
#include "platform/graphics/Color.h" #include "platform/graphics/Color.h"
#include "platform/wtf/Allocator.h" #include "platform/wtf/Allocator.h"
#include "platform/wtf/Noncopyable.h"
#include "platform/wtf/PtrUtil.h" #include "platform/wtf/PtrUtil.h"
namespace blink { namespace blink {
...@@ -42,7 +42,6 @@ class ComputedStyle; ...@@ -42,7 +42,6 @@ class ComputedStyle;
// ApplyMatchedProperties for later use during AdjustComputedStyle. // ApplyMatchedProperties for later use during AdjustComputedStyle.
class CachedUAStyle { class CachedUAStyle {
USING_FAST_MALLOC(CachedUAStyle); USING_FAST_MALLOC(CachedUAStyle);
WTF_MAKE_NONCOPYABLE(CachedUAStyle);
friend class ComputedStyle; friend class ComputedStyle;
public: public:
...@@ -81,6 +80,7 @@ class CachedUAStyle { ...@@ -81,6 +80,7 @@ class CachedUAStyle {
private: private:
explicit CachedUAStyle(const ComputedStyle*); explicit CachedUAStyle(const ComputedStyle*);
DISALLOW_COPY_AND_ASSIGN(CachedUAStyle);
}; };
} // namespace blink } // namespace blink
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#ifndef FilterOperation_h #ifndef FilterOperation_h
#define FilterOperation_h #define FilterOperation_h
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/style/ShadowData.h" #include "core/style/ShadowData.h"
#include "platform/Length.h" #include "platform/Length.h"
...@@ -33,7 +34,6 @@ ...@@ -33,7 +34,6 @@
#include "platform/graphics/BoxReflection.h" #include "platform/graphics/BoxReflection.h"
#include "platform/graphics/Color.h" #include "platform/graphics/Color.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
#include "platform/wtf/Noncopyable.h"
#include "platform/wtf/text/WTFString.h" #include "platform/wtf/text/WTFString.h"
namespace blink { namespace blink {
...@@ -46,7 +46,6 @@ class SVGElementProxy; ...@@ -46,7 +46,6 @@ class SVGElementProxy;
class CORE_EXPORT FilterOperation class CORE_EXPORT FilterOperation
: public GarbageCollectedFinalized<FilterOperation> { : public GarbageCollectedFinalized<FilterOperation> {
WTF_MAKE_NONCOPYABLE(FilterOperation);
public: public:
enum OperationType { enum OperationType {
...@@ -121,6 +120,7 @@ class CORE_EXPORT FilterOperation ...@@ -121,6 +120,7 @@ class CORE_EXPORT FilterOperation
private: private:
virtual FilterOperation* Blend(const FilterOperation* from, virtual FilterOperation* Blend(const FilterOperation* from,
double progress) const = 0; double progress) const = 0;
DISALLOW_COPY_AND_ASSIGN(FilterOperation);
}; };
#define DEFINE_FILTER_OPERATION_TYPE_CASTS(thisType, operationType) \ #define DEFINE_FILTER_OPERATION_TYPE_CASTS(thisType, operationType) \
......
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