Commit 9e2eeaa5 authored by Sundoo Kim's avatar Sundoo Kim Committed by Commit Bot

Replace DISALLOW_COPY_AND_ASSIGN with =delete in blink/../cssom

Explicitly remove the copy constructor and assignment operator with
the delete keyword.

Bug: 1010217
Change-Id: I05d56372a89033c9e5941c476761dd621497a058
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2362170Reviewed-by: default avatarAlan Cutter <alancutter@chromium.org>
Commit-Queue: Alan Cutter <alancutter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799511}
parent 8700b2a9
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_COMPUTED_STYLE_PROPERTY_MAP_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_COMPUTED_STYLE_PROPERTY_MAP_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_COMPUTED_STYLE_PROPERTY_MAP_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_COMPUTED_STYLE_PROPERTY_MAP_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/css_computed_style_declaration.h" #include "third_party/blink/renderer/core/css/css_computed_style_declaration.h"
#include "third_party/blink/renderer/core/css/css_selector.h" #include "third_party/blink/renderer/core/css/css_selector.h"
#include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.h" #include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.h"
...@@ -28,6 +27,8 @@ class CORE_EXPORT ComputedStylePropertyMap ...@@ -28,6 +27,8 @@ class CORE_EXPORT ComputedStylePropertyMap
ComputedStylePropertyMap(Node* node, const String& pseudo_element = String()) ComputedStylePropertyMap(Node* node, const String& pseudo_element = String())
: pseudo_id_(CSSSelector::ParsePseudoId(pseudo_element, node)), : pseudo_id_(CSSSelector::ParsePseudoId(pseudo_element, node)),
node_(node) {} node_(node) {}
ComputedStylePropertyMap(const ComputedStylePropertyMap&) = delete;
ComputedStylePropertyMap& operator=(const ComputedStylePropertyMap&) = delete;
void Trace(Visitor* visitor) const override { void Trace(Visitor* visitor) const override {
visitor->Trace(node_); visitor->Trace(node_);
...@@ -58,7 +59,6 @@ class CORE_EXPORT ComputedStylePropertyMap ...@@ -58,7 +59,6 @@ class CORE_EXPORT ComputedStylePropertyMap
Node* StyledNode() const; Node* StyledNode() const;
const ComputedStyle* UpdateStyle() const; const ComputedStyle* UpdateStyle() const;
DISALLOW_COPY_AND_ASSIGN(ComputedStylePropertyMap);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_COLOR_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_COLOR_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_COLOR_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_COLOR_VALUE_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/css/css_primitive_value.h" #include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h" #include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h"
...@@ -19,6 +18,8 @@ class CSSStyleValue; ...@@ -19,6 +18,8 @@ class CSSStyleValue;
class CORE_EXPORT CrossThreadColorValue final : public CrossThreadStyleValue { class CORE_EXPORT CrossThreadColorValue final : public CrossThreadStyleValue {
public: public:
explicit CrossThreadColorValue(Color value) : value_(value) {} explicit CrossThreadColorValue(Color value) : value_(value) {}
CrossThreadColorValue(const CrossThreadColorValue&) = delete;
CrossThreadColorValue& operator=(const CrossThreadColorValue&) = delete;
~CrossThreadColorValue() override = default; ~CrossThreadColorValue() override = default;
StyleValueType GetType() const override { return StyleValueType::kColorType; } StyleValueType GetType() const override { return StyleValueType::kColorType; }
...@@ -33,7 +34,6 @@ class CORE_EXPORT CrossThreadColorValue final : public CrossThreadStyleValue { ...@@ -33,7 +34,6 @@ class CORE_EXPORT CrossThreadColorValue final : public CrossThreadStyleValue {
friend class CrossThreadStyleValueTest; friend class CrossThreadStyleValueTest;
Color value_; Color value_;
DISALLOW_COPY_AND_ASSIGN(CrossThreadColorValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_KEYWORD_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_KEYWORD_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_KEYWORD_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_KEYWORD_VALUE_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/css/cssom/cross_thread_style_value.h" #include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h"
#include "third_party/blink/renderer/platform/wtf/casting.h" #include "third_party/blink/renderer/platform/wtf/casting.h"
...@@ -19,6 +18,8 @@ class CORE_EXPORT CrossThreadKeywordValue final : public CrossThreadStyleValue { ...@@ -19,6 +18,8 @@ class CORE_EXPORT CrossThreadKeywordValue final : public CrossThreadStyleValue {
public: public:
explicit CrossThreadKeywordValue(const String& keyword) explicit CrossThreadKeywordValue(const String& keyword)
: keyword_value_(keyword) {} : keyword_value_(keyword) {}
CrossThreadKeywordValue(const CrossThreadKeywordValue&) = delete;
CrossThreadKeywordValue& operator=(const CrossThreadKeywordValue&) = delete;
~CrossThreadKeywordValue() override = default; ~CrossThreadKeywordValue() override = default;
StyleValueType GetType() const override { StyleValueType GetType() const override {
...@@ -34,7 +35,6 @@ class CORE_EXPORT CrossThreadKeywordValue final : public CrossThreadStyleValue { ...@@ -34,7 +35,6 @@ class CORE_EXPORT CrossThreadKeywordValue final : public CrossThreadStyleValue {
friend class CrossThreadStyleValueTest; friend class CrossThreadStyleValueTest;
String keyword_value_; String keyword_value_;
DISALLOW_COPY_AND_ASSIGN(CrossThreadKeywordValue);
}; };
template <> template <>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <memory> #include <memory>
#include "base/macros.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
namespace blink { namespace blink {
...@@ -26,6 +25,8 @@ class CORE_EXPORT CrossThreadStyleValue { ...@@ -26,6 +25,8 @@ class CORE_EXPORT CrossThreadStyleValue {
kColorType, kColorType,
}; };
CrossThreadStyleValue(const CrossThreadStyleValue&) = delete;
CrossThreadStyleValue& operator=(const CrossThreadStyleValue&) = delete;
virtual ~CrossThreadStyleValue() = default; virtual ~CrossThreadStyleValue() = default;
virtual StyleValueType GetType() const = 0; virtual StyleValueType GetType() const = 0;
...@@ -36,9 +37,6 @@ class CORE_EXPORT CrossThreadStyleValue { ...@@ -36,9 +37,6 @@ class CORE_EXPORT CrossThreadStyleValue {
protected: protected:
CrossThreadStyleValue() = default; CrossThreadStyleValue() = default;
private:
DISALLOW_COPY_AND_ASSIGN(CrossThreadStyleValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNIT_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNIT_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNIT_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNIT_VALUE_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/css/css_primitive_value.h" #include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h" #include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h"
...@@ -19,6 +18,8 @@ class CORE_EXPORT CrossThreadUnitValue final : public CrossThreadStyleValue { ...@@ -19,6 +18,8 @@ class CORE_EXPORT CrossThreadUnitValue final : public CrossThreadStyleValue {
public: public:
explicit CrossThreadUnitValue(double value, CSSPrimitiveValue::UnitType unit) explicit CrossThreadUnitValue(double value, CSSPrimitiveValue::UnitType unit)
: value_(value), unit_(unit) {} : value_(value), unit_(unit) {}
CrossThreadUnitValue(const CrossThreadUnitValue&) = delete;
CrossThreadUnitValue& operator=(const CrossThreadUnitValue&) = delete;
~CrossThreadUnitValue() override = default; ~CrossThreadUnitValue() override = default;
StyleValueType GetType() const override { return StyleValueType::kUnitType; } StyleValueType GetType() const override { return StyleValueType::kUnitType; }
...@@ -34,7 +35,6 @@ class CORE_EXPORT CrossThreadUnitValue final : public CrossThreadStyleValue { ...@@ -34,7 +35,6 @@ class CORE_EXPORT CrossThreadUnitValue final : public CrossThreadStyleValue {
double value_; double value_;
CSSPrimitiveValue::UnitType unit_; CSSPrimitiveValue::UnitType unit_;
DISALLOW_COPY_AND_ASSIGN(CrossThreadUnitValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNPARSED_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNPARSED_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNPARSED_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNPARSED_VALUE_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/css/cssom/cross_thread_style_value.h" #include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h"
#include "third_party/blink/renderer/platform/wtf/casting.h" #include "third_party/blink/renderer/platform/wtf/casting.h"
...@@ -19,6 +18,8 @@ class CORE_EXPORT CrossThreadUnparsedValue final ...@@ -19,6 +18,8 @@ class CORE_EXPORT CrossThreadUnparsedValue final
: public CrossThreadStyleValue { : public CrossThreadStyleValue {
public: public:
explicit CrossThreadUnparsedValue(const String& value) : value_(value) {} explicit CrossThreadUnparsedValue(const String& value) : value_(value) {}
CrossThreadUnparsedValue(const CrossThreadUnparsedValue&) = delete;
CrossThreadUnparsedValue& operator=(const CrossThreadUnparsedValue&) = delete;
~CrossThreadUnparsedValue() override = default; ~CrossThreadUnparsedValue() override = default;
StyleValueType GetType() const override { StyleValueType GetType() const override {
...@@ -34,7 +35,6 @@ class CORE_EXPORT CrossThreadUnparsedValue final ...@@ -34,7 +35,6 @@ class CORE_EXPORT CrossThreadUnparsedValue final
friend class CrossThreadStyleValueTest; friend class CrossThreadStyleValueTest;
String value_; String value_;
DISALLOW_COPY_AND_ASSIGN(CrossThreadUnparsedValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNSUPPORTED_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNSUPPORTED_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNSUPPORTED_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CROSS_THREAD_UNSUPPORTED_VALUE_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/css/cssom/cross_thread_style_value.h" #include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h"
#include "third_party/blink/renderer/platform/wtf/casting.h" #include "third_party/blink/renderer/platform/wtf/casting.h"
...@@ -19,6 +18,9 @@ class CORE_EXPORT CrossThreadUnsupportedValue final ...@@ -19,6 +18,9 @@ class CORE_EXPORT CrossThreadUnsupportedValue final
: public CrossThreadStyleValue { : public CrossThreadStyleValue {
public: public:
explicit CrossThreadUnsupportedValue(const String& value) : value_(value) {} explicit CrossThreadUnsupportedValue(const String& value) : value_(value) {}
CrossThreadUnsupportedValue(const CrossThreadUnsupportedValue&) = delete;
CrossThreadUnsupportedValue& operator=(const CrossThreadUnsupportedValue&) =
delete;
~CrossThreadUnsupportedValue() override = default; ~CrossThreadUnsupportedValue() override = default;
StyleValueType GetType() const override { StyleValueType GetType() const override {
...@@ -33,7 +35,6 @@ class CORE_EXPORT CrossThreadUnsupportedValue final ...@@ -33,7 +35,6 @@ class CORE_EXPORT CrossThreadUnsupportedValue final
friend class CrossThreadStyleValueTest; friend class CrossThreadStyleValueTest;
String value_; String value_;
DISALLOW_COPY_AND_ASSIGN(CrossThreadUnsupportedValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_KEYWORD_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_KEYWORD_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_KEYWORD_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_KEYWORD_VALUE_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/css/cssom/css_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/core/css_value_keywords.h" #include "third_party/blink/renderer/core/css_value_keywords.h"
...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSKeywordValue final : public CSSStyleValue { ...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSKeywordValue final : public CSSStyleValue {
static CSSKeywordValue* FromCSSValue(const CSSValue&); static CSSKeywordValue* FromCSSValue(const CSSValue&);
explicit CSSKeywordValue(const String& keyword) : keyword_value_(keyword) {} explicit CSSKeywordValue(const String& keyword) : keyword_value_(keyword) {}
CSSKeywordValue(const CSSKeywordValue&) = delete;
CSSKeywordValue& operator=(const CSSKeywordValue&) = delete;
StyleValueType GetType() const override { return kKeywordType; } StyleValueType GetType() const override { return kKeywordType; }
...@@ -35,7 +36,6 @@ class CORE_EXPORT CSSKeywordValue final : public CSSStyleValue { ...@@ -35,7 +36,6 @@ class CORE_EXPORT CSSKeywordValue final : public CSSStyleValue {
private: private:
String keyword_value_; String keyword_value_;
DISALLOW_COPY_AND_ASSIGN(CSSKeywordValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_INVERT_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_INVERT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_INVERT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_INVERT_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_value.h" #include "third_party/blink/renderer/core/css/cssom/css_math_value.h"
namespace blink { namespace blink {
...@@ -28,6 +27,8 @@ class CORE_EXPORT CSSMathInvert : public CSSMathValue { ...@@ -28,6 +27,8 @@ class CORE_EXPORT CSSMathInvert : public CSSMathValue {
CSSMathInvert(CSSNumericValue* value, const CSSNumericValueType& type) CSSMathInvert(CSSNumericValue* value, const CSSNumericValueType& type)
: CSSMathValue(type), value_(value) {} : CSSMathValue(type), value_(value) {}
CSSMathInvert(const CSSMathInvert&) = delete;
CSSMathInvert& operator=(const CSSMathInvert&) = delete;
String getOperator() const final { return "invert"; } String getOperator() const final { return "invert"; }
...@@ -66,7 +67,6 @@ class CORE_EXPORT CSSMathInvert : public CSSMathValue { ...@@ -66,7 +67,6 @@ class CORE_EXPORT CSSMathInvert : public CSSMathValue {
void BuildCSSText(Nested, ParenLess, StringBuilder&) const final; void BuildCSSText(Nested, ParenLess, StringBuilder&) const final;
Member<CSSNumericValue> value_; Member<CSSNumericValue> value_;
DISALLOW_COPY_AND_ASSIGN(CSSMathInvert);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MAX_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MAX_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MAX_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MAX_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h" #include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h"
namespace blink { namespace blink {
...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSMathMax final : public CSSMathVariadic { ...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSMathMax final : public CSSMathVariadic {
CSSMathMax(CSSNumericArray* values, const CSSNumericValueType& type) CSSMathMax(CSSNumericArray* values, const CSSNumericValueType& type)
: CSSMathVariadic(values, type) {} : CSSMathVariadic(values, type) {}
CSSMathMax(const CSSMathMax&) = delete;
CSSMathMax& operator=(const CSSMathMax&) = delete;
String getOperator() const final { return "max"; } String getOperator() const final { return "max"; }
...@@ -36,7 +37,6 @@ class CORE_EXPORT CSSMathMax final : public CSSMathVariadic { ...@@ -36,7 +37,6 @@ class CORE_EXPORT CSSMathMax final : public CSSMathVariadic {
void BuildCSSText(Nested, ParenLess, StringBuilder&) const final; void BuildCSSText(Nested, ParenLess, StringBuilder&) const final;
base::Optional<CSSNumericSumValue> SumValue() const final; base::Optional<CSSNumericSumValue> SumValue() const final;
DISALLOW_COPY_AND_ASSIGN(CSSMathMax);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MIN_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MIN_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MIN_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_MIN_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h" #include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h"
namespace blink { namespace blink {
...@@ -26,6 +25,8 @@ class CORE_EXPORT CSSMathMin final : public CSSMathVariadic { ...@@ -26,6 +25,8 @@ class CORE_EXPORT CSSMathMin final : public CSSMathVariadic {
CSSMathMin(CSSNumericArray* values, const CSSNumericValueType& type) CSSMathMin(CSSNumericArray* values, const CSSNumericValueType& type)
: CSSMathVariadic(values, type) {} : CSSMathVariadic(values, type) {}
CSSMathMin(const CSSMathMin&) = delete;
CSSMathMin& operator=(const CSSMathMin&) = delete;
String getOperator() const final { return "min"; } String getOperator() const final { return "min"; }
...@@ -38,7 +39,6 @@ class CORE_EXPORT CSSMathMin final : public CSSMathVariadic { ...@@ -38,7 +39,6 @@ class CORE_EXPORT CSSMathMin final : public CSSMathVariadic {
void BuildCSSText(Nested, ParenLess, StringBuilder&) const final; void BuildCSSText(Nested, ParenLess, StringBuilder&) const final;
base::Optional<CSSNumericSumValue> SumValue() const final; base::Optional<CSSNumericSumValue> SumValue() const final;
DISALLOW_COPY_AND_ASSIGN(CSSMathMin);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_NEGATE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_NEGATE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_NEGATE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_NEGATE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_value.h" #include "third_party/blink/renderer/core/css/cssom/css_math_value.h"
namespace blink { namespace blink {
...@@ -27,6 +26,8 @@ class CORE_EXPORT CSSMathNegate : public CSSMathValue { ...@@ -27,6 +26,8 @@ class CORE_EXPORT CSSMathNegate : public CSSMathValue {
CSSMathNegate(CSSNumericValue* value, const CSSNumericValueType& type) CSSMathNegate(CSSNumericValue* value, const CSSNumericValueType& type)
: CSSMathValue(type), value_(value) {} : CSSMathValue(type), value_(value) {}
CSSMathNegate(const CSSMathNegate&) = delete;
CSSMathNegate& operator=(const CSSMathNegate&) = delete;
String getOperator() const final { return "negate"; } String getOperator() const final { return "negate"; }
...@@ -65,7 +66,6 @@ class CORE_EXPORT CSSMathNegate : public CSSMathValue { ...@@ -65,7 +66,6 @@ class CORE_EXPORT CSSMathNegate : public CSSMathValue {
void BuildCSSText(Nested, ParenLess, StringBuilder&) const final; void BuildCSSText(Nested, ParenLess, StringBuilder&) const final;
Member<CSSNumericValue> value_; Member<CSSNumericValue> value_;
DISALLOW_COPY_AND_ASSIGN(CSSMathNegate);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_PRODUCT_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_PRODUCT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_PRODUCT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_PRODUCT_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h" #include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h"
namespace blink { namespace blink {
...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSMathProduct final : public CSSMathVariadic { ...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSMathProduct final : public CSSMathVariadic {
CSSMathProduct(CSSNumericArray* values, const CSSNumericValueType& type) CSSMathProduct(CSSNumericArray* values, const CSSNumericValueType& type)
: CSSMathVariadic(values, type) {} : CSSMathVariadic(values, type) {}
CSSMathProduct(const CSSMathProduct&) = delete;
CSSMathProduct& operator=(const CSSMathProduct&) = delete;
String getOperator() const final { return "product"; } String getOperator() const final { return "product"; }
...@@ -36,7 +37,6 @@ class CORE_EXPORT CSSMathProduct final : public CSSMathVariadic { ...@@ -36,7 +37,6 @@ class CORE_EXPORT CSSMathProduct final : public CSSMathVariadic {
void BuildCSSText(Nested, ParenLess, StringBuilder&) const final; void BuildCSSText(Nested, ParenLess, StringBuilder&) const final;
base::Optional<CSSNumericSumValue> SumValue() const final; base::Optional<CSSNumericSumValue> SumValue() const final;
DISALLOW_COPY_AND_ASSIGN(CSSMathProduct);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_SUM_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_SUM_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_SUM_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_SUM_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h" #include "third_party/blink/renderer/core/css/cssom/css_math_variadic.h"
namespace blink { namespace blink {
...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSMathSum final : public CSSMathVariadic { ...@@ -24,6 +23,8 @@ class CORE_EXPORT CSSMathSum final : public CSSMathVariadic {
CSSMathSum(CSSNumericArray* values, const CSSNumericValueType& type) CSSMathSum(CSSNumericArray* values, const CSSNumericValueType& type)
: CSSMathVariadic(values, type) {} : CSSMathVariadic(values, type) {}
CSSMathSum(const CSSMathSum&) = delete;
CSSMathSum& operator=(const CSSMathSum&) = delete;
String getOperator() const final { return "sum"; } String getOperator() const final { return "sum"; }
...@@ -36,7 +37,6 @@ class CORE_EXPORT CSSMathSum final : public CSSMathVariadic { ...@@ -36,7 +37,6 @@ class CORE_EXPORT CSSMathSum final : public CSSMathVariadic {
void BuildCSSText(Nested, ParenLess, StringBuilder&) const final; void BuildCSSText(Nested, ParenLess, StringBuilder&) const final;
base::Optional<CSSNumericSumValue> SumValue() const final; base::Optional<CSSNumericSumValue> SumValue() const final;
DISALLOW_COPY_AND_ASSIGN(CSSMathSum);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
namespace blink { namespace blink {
...@@ -16,6 +15,9 @@ class CORE_EXPORT CSSMathValue : public CSSNumericValue { ...@@ -16,6 +15,9 @@ class CORE_EXPORT CSSMathValue : public CSSNumericValue {
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
public: public:
CSSMathValue(const CSSMathValue&) = delete;
CSSMathValue& operator=(const CSSMathValue&) = delete;
virtual String getOperator() const = 0; virtual String getOperator() const = 0;
// From CSSNumericValue. // From CSSNumericValue.
...@@ -26,9 +28,6 @@ class CORE_EXPORT CSSMathValue : public CSSNumericValue { ...@@ -26,9 +28,6 @@ class CORE_EXPORT CSSMathValue : public CSSNumericValue {
protected: protected:
CSSMathValue(const CSSNumericValueType& type) : CSSNumericValue(type) {} CSSMathValue(const CSSNumericValueType& type) : CSSNumericValue(type) {}
private:
DISALLOW_COPY_AND_ASSIGN(CSSMathValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VARIADIC_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VARIADIC_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VARIADIC_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATH_VARIADIC_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_value.h" #include "third_party/blink/renderer/core/css/cssom/css_math_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_array.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_array.h"
...@@ -15,6 +14,9 @@ namespace blink { ...@@ -15,6 +14,9 @@ namespace blink {
class CORE_EXPORT CSSMathVariadic : public CSSMathValue { class CORE_EXPORT CSSMathVariadic : public CSSMathValue {
public: public:
CSSMathVariadic(const CSSMathVariadic&) = delete;
CSSMathVariadic& operator=(const CSSMathVariadic&) = delete;
CSSNumericArray* values() { return values_.Get(); } CSSNumericArray* values() { return values_.Get(); }
const CSSNumericValueVector& NumericValues() const { const CSSNumericValueVector& NumericValues() const {
...@@ -61,7 +63,6 @@ class CORE_EXPORT CSSMathVariadic : public CSSMathValue { ...@@ -61,7 +63,6 @@ class CORE_EXPORT CSSMathVariadic : public CSSMathValue {
private: private:
Member<CSSNumericArray> values_; Member<CSSNumericArray> values_;
DISALLOW_COPY_AND_ASSIGN(CSSMathVariadic);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATRIX_COMPONENT_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATRIX_COMPONENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATRIX_COMPONENT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_MATRIX_COMPONENT_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix.h" #include "third_party/blink/renderer/core/geometry/dom_matrix.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix_read_only.h" #include "third_party/blink/renderer/core/geometry/dom_matrix_read_only.h"
...@@ -30,6 +29,8 @@ class CORE_EXPORT CSSMatrixComponent final : public CSSTransformComponent { ...@@ -30,6 +29,8 @@ class CORE_EXPORT CSSMatrixComponent final : public CSSTransformComponent {
CSSMatrixComponent(DOMMatrixReadOnly* matrix, bool is2D) CSSMatrixComponent(DOMMatrixReadOnly* matrix, bool is2D)
: CSSTransformComponent(is2D), matrix_(DOMMatrix::Create(matrix)) {} : CSSTransformComponent(is2D), matrix_(DOMMatrix::Create(matrix)) {}
CSSMatrixComponent(const CSSMatrixComponent&) = delete;
CSSMatrixComponent& operator=(const CSSMatrixComponent&) = delete;
// Getters and setters for attributes defined in the IDL. // Getters and setters for attributes defined in the IDL.
DOMMatrix* matrix() { return matrix_.Get(); } DOMMatrix* matrix() { return matrix_.Get(); }
...@@ -48,7 +49,6 @@ class CORE_EXPORT CSSMatrixComponent final : public CSSTransformComponent { ...@@ -48,7 +49,6 @@ class CORE_EXPORT CSSMatrixComponent final : public CSSTransformComponent {
private: private:
Member<DOMMatrix> matrix_; Member<DOMMatrix> matrix_;
DISALLOW_COPY_AND_ASSIGN(CSSMatrixComponent);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_ARRAY_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_ARRAY_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_ARRAY_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_ARRAY_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
namespace blink { namespace blink {
...@@ -23,6 +22,8 @@ class CORE_EXPORT CSSNumericArray final : public ScriptWrappable { ...@@ -23,6 +22,8 @@ class CORE_EXPORT CSSNumericArray final : public ScriptWrappable {
explicit CSSNumericArray(CSSNumericValueVector values) explicit CSSNumericArray(CSSNumericValueVector values)
: values_(std::move(values)) {} : values_(std::move(values)) {}
CSSNumericArray(const CSSNumericArray&) = delete;
CSSNumericArray& operator=(const CSSNumericArray&) = delete;
void Trace(Visitor* visitor) const override { void Trace(Visitor* visitor) const override {
visitor->Trace(values_); visitor->Trace(values_);
...@@ -40,7 +41,6 @@ class CORE_EXPORT CSSNumericArray final : public ScriptWrappable { ...@@ -40,7 +41,6 @@ class CORE_EXPORT CSSNumericArray final : public ScriptWrappable {
private: private:
CSSNumericValueVector values_; CSSNumericValueVector values_;
DISALLOW_COPY_AND_ASSIGN(CSSNumericArray);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_NUMERIC_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/bindings/core/v8/double_or_css_numeric_value.h" #include "third_party/blink/renderer/bindings/core/v8/double_or_css_numeric_value.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/css/css_primitive_value.h" #include "third_party/blink/renderer/core/css/css_primitive_value.h"
...@@ -31,6 +30,9 @@ class CORE_EXPORT CSSNumericValue : public CSSStyleValue { ...@@ -31,6 +30,9 @@ class CORE_EXPORT CSSNumericValue : public CSSStyleValue {
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
public: public:
CSSNumericValue(const CSSNumericValue&) = delete;
CSSNumericValue& operator=(const CSSNumericValue&) = delete;
static CSSNumericValue* parse(const String& css_text, ExceptionState&); static CSSNumericValue* parse(const String& css_text, ExceptionState&);
// Blink-internal ways of creating CSSNumericValues. // Blink-internal ways of creating CSSNumericValues.
static CSSNumericValue* FromCSSValue(const CSSPrimitiveValue&); static CSSNumericValue* FromCSSValue(const CSSPrimitiveValue&);
...@@ -81,7 +83,6 @@ class CORE_EXPORT CSSNumericValue : public CSSStyleValue { ...@@ -81,7 +83,6 @@ class CORE_EXPORT CSSNumericValue : public CSSStyleValue {
private: private:
CSSNumericValueType type_; CSSNumericValueType type_;
DISALLOW_COPY_AND_ASSIGN(CSSNumericValue);
}; };
CSSNumericValueVector CSSNumberishesToNumericValues( CSSNumericValueVector CSSNumberishesToNumericValues(
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_PERSPECTIVE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_PERSPECTIVE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_PERSPECTIVE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_PERSPECTIVE_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/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
...@@ -29,6 +28,8 @@ class CORE_EXPORT CSSPerspective final : public CSSTransformComponent { ...@@ -29,6 +28,8 @@ class CORE_EXPORT CSSPerspective final : public CSSTransformComponent {
static CSSPerspective* FromCSSValue(const CSSFunctionValue&); static CSSPerspective* FromCSSValue(const CSSFunctionValue&);
CSSPerspective(CSSNumericValue* length); CSSPerspective(CSSNumericValue* length);
CSSPerspective(const CSSPerspective&) = delete;
CSSPerspective& operator=(const CSSPerspective&) = delete;
// Getters and setters for attributes defined in the IDL. // Getters and setters for attributes defined in the IDL.
CSSNumericValue* length() { return length_.Get(); } CSSNumericValue* length() { return length_.Get(); }
...@@ -52,7 +53,6 @@ class CORE_EXPORT CSSPerspective final : public CSSTransformComponent { ...@@ -52,7 +53,6 @@ class CORE_EXPORT CSSPerspective final : public CSSTransformComponent {
private: private:
Member<CSSNumericValue> length_; Member<CSSNumericValue> length_;
DISALLOW_COPY_AND_ASSIGN(CSSPerspective);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_POSITION_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_POSITION_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_POSITION_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_POSITION_VALUE_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/css/cssom/css_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h" #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
...@@ -30,6 +29,8 @@ class CORE_EXPORT CSSPositionValue final : public CSSStyleValue { ...@@ -30,6 +29,8 @@ class CORE_EXPORT CSSPositionValue final : public CSSStyleValue {
static CSSPositionValue* FromCSSValue(const CSSValue&); static CSSPositionValue* FromCSSValue(const CSSValue&);
CSSPositionValue(CSSNumericValue* x, CSSNumericValue* y) : x_(x), y_(y) {} CSSPositionValue(CSSNumericValue* x, CSSNumericValue* y) : x_(x), y_(y) {}
CSSPositionValue(const CSSPositionValue&) = delete;
CSSPositionValue& operator=(const CSSPositionValue&) = delete;
// Getters and setters defined in the IDL. // Getters and setters defined in the IDL.
CSSNumericValue* x() { return x_.Get(); } CSSNumericValue* x() { return x_.Get(); }
...@@ -54,7 +55,6 @@ class CORE_EXPORT CSSPositionValue final : public CSSStyleValue { ...@@ -54,7 +55,6 @@ class CORE_EXPORT CSSPositionValue final : public CSSStyleValue {
protected: protected:
Member<CSSNumericValue> x_; Member<CSSNumericValue> x_;
Member<CSSNumericValue> y_; Member<CSSNumericValue> y_;
DISALLOW_COPY_AND_ASSIGN(CSSPositionValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_RESOURCE_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_RESOURCE_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_RESOURCE_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_RESOURCE_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource.h" #include "third_party/blink/renderer/platform/loader/fetch/resource.h"
...@@ -13,6 +12,8 @@ namespace blink { ...@@ -13,6 +12,8 @@ namespace blink {
class CORE_EXPORT CSSResourceValue : public CSSStyleValue { class CORE_EXPORT CSSResourceValue : public CSSStyleValue {
public: public:
CSSResourceValue(const CSSResourceValue&) = delete;
CSSResourceValue& operator=(const CSSResourceValue&) = delete;
~CSSResourceValue() override = default; ~CSSResourceValue() override = default;
const String state() const { const String state() const {
...@@ -38,9 +39,6 @@ class CORE_EXPORT CSSResourceValue : public CSSStyleValue { ...@@ -38,9 +39,6 @@ class CORE_EXPORT CSSResourceValue : public CSSStyleValue {
CSSResourceValue() = default; CSSResourceValue() = default;
virtual ResourceStatus Status() const = 0; virtual ResourceStatus Status() const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(CSSResourceValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_ROTATE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_ROTATE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_ROTATE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_ROTATE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
...@@ -43,6 +42,8 @@ class CORE_EXPORT CSSRotate final : public CSSTransformComponent { ...@@ -43,6 +42,8 @@ class CORE_EXPORT CSSRotate final : public CSSTransformComponent {
CSSNumericValue* z, CSSNumericValue* z,
CSSNumericValue* angle, CSSNumericValue* angle,
bool is2D); bool is2D);
CSSRotate(const CSSRotate&) = delete;
CSSRotate& operator=(const CSSRotate&) = delete;
// Getters and setters for attributes defined in the IDL. // Getters and setters for attributes defined in the IDL.
CSSNumericValue* angle() { return angle_.Get(); } CSSNumericValue* angle() { return angle_.Get(); }
...@@ -73,7 +74,6 @@ class CORE_EXPORT CSSRotate final : public CSSTransformComponent { ...@@ -73,7 +74,6 @@ class CORE_EXPORT CSSRotate final : public CSSTransformComponent {
Member<CSSNumericValue> x_; Member<CSSNumericValue> x_;
Member<CSSNumericValue> y_; Member<CSSNumericValue> y_;
Member<CSSNumericValue> z_; Member<CSSNumericValue> z_;
DISALLOW_COPY_AND_ASSIGN(CSSRotate);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SCALE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SCALE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SCALE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SCALE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
#include "third_party/blink/renderer/core/css/cssom/css_unit_value.h" #include "third_party/blink/renderer/core/css/cssom/css_unit_value.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix.h" #include "third_party/blink/renderer/core/geometry/dom_matrix.h"
...@@ -47,6 +46,8 @@ class CORE_EXPORT CSSScale final : public CSSTransformComponent { ...@@ -47,6 +46,8 @@ class CORE_EXPORT CSSScale final : public CSSTransformComponent {
CSSNumericValue* y, CSSNumericValue* y,
CSSNumericValue* z, CSSNumericValue* z,
bool is2D); bool is2D);
CSSScale(const CSSScale&) = delete;
CSSScale& operator=(const CSSScale&) = delete;
// Getters and setters for attributes defined in the IDL. // Getters and setters for attributes defined in the IDL.
void x(CSSNumberish& x) { x.SetCSSNumericValue(x_); } void x(CSSNumberish& x) { x.SetCSSNumericValue(x_); }
...@@ -73,8 +74,6 @@ class CORE_EXPORT CSSScale final : public CSSTransformComponent { ...@@ -73,8 +74,6 @@ class CORE_EXPORT CSSScale final : public CSSTransformComponent {
Member<CSSNumericValue> x_; Member<CSSNumericValue> x_;
Member<CSSNumericValue> y_; Member<CSSNumericValue> y_;
Member<CSSNumericValue> z_; Member<CSSNumericValue> z_;
DISALLOW_COPY_AND_ASSIGN(CSSScale);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
...@@ -31,6 +30,8 @@ class CORE_EXPORT CSSSkew final : public CSSTransformComponent { ...@@ -31,6 +30,8 @@ class CORE_EXPORT CSSSkew final : public CSSTransformComponent {
static CSSSkew* FromCSSValue(const CSSFunctionValue&); static CSSSkew* FromCSSValue(const CSSFunctionValue&);
CSSSkew(CSSNumericValue* ax, CSSNumericValue* ay); CSSSkew(CSSNumericValue* ax, CSSNumericValue* ay);
CSSSkew(const CSSSkew&) = delete;
CSSSkew& operator=(const CSSSkew&) = delete;
// Getters and setters for the ax and ay attributes defined in the IDL. // Getters and setters for the ax and ay attributes defined in the IDL.
CSSNumericValue* ax() { return ax_.Get(); } CSSNumericValue* ax() { return ax_.Get(); }
...@@ -58,7 +59,6 @@ class CORE_EXPORT CSSSkew final : public CSSTransformComponent { ...@@ -58,7 +59,6 @@ class CORE_EXPORT CSSSkew final : public CSSTransformComponent {
private: private:
Member<CSSNumericValue> ax_; Member<CSSNumericValue> ax_;
Member<CSSNumericValue> ay_; Member<CSSNumericValue> ay_;
DISALLOW_COPY_AND_ASSIGN(CSSSkew);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_X_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_X_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_X_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_X_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
...@@ -31,6 +30,8 @@ class CORE_EXPORT CSSSkewX final : public CSSTransformComponent { ...@@ -31,6 +30,8 @@ class CORE_EXPORT CSSSkewX final : public CSSTransformComponent {
static CSSSkewX* FromCSSValue(const CSSFunctionValue&); static CSSSkewX* FromCSSValue(const CSSFunctionValue&);
CSSSkewX(CSSNumericValue* ax); CSSSkewX(CSSNumericValue* ax);
CSSSkewX(const CSSSkewX&) = delete;
CSSSkewX& operator=(const CSSSkewX&) = delete;
// Getters and setters for the ax attributes defined in the IDL. // Getters and setters for the ax attributes defined in the IDL.
CSSNumericValue* ax() { return ax_.Get(); } CSSNumericValue* ax() { return ax_.Get(); }
...@@ -54,7 +55,6 @@ class CORE_EXPORT CSSSkewX final : public CSSTransformComponent { ...@@ -54,7 +55,6 @@ class CORE_EXPORT CSSSkewX final : public CSSTransformComponent {
private: private:
Member<CSSNumericValue> ax_; Member<CSSNumericValue> ax_;
DISALLOW_COPY_AND_ASSIGN(CSSSkewX);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_Y_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_Y_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_Y_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_SKEW_Y_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
...@@ -31,6 +30,8 @@ class CORE_EXPORT CSSSkewY final : public CSSTransformComponent { ...@@ -31,6 +30,8 @@ class CORE_EXPORT CSSSkewY final : public CSSTransformComponent {
static CSSSkewY* FromCSSValue(const CSSFunctionValue&); static CSSSkewY* FromCSSValue(const CSSFunctionValue&);
CSSSkewY(CSSNumericValue* ay); CSSSkewY(CSSNumericValue* ay);
CSSSkewY(const CSSSkewY&) = delete;
CSSSkewY& operator=(const CSSSkewY&) = delete;
// Getters and setters for the ay attributes defined in the IDL. // Getters and setters for the ay attributes defined in the IDL.
CSSNumericValue* ay() { return ay_.Get(); } CSSNumericValue* ay() { return ay_.Get(); }
...@@ -54,7 +55,6 @@ class CORE_EXPORT CSSSkewY final : public CSSTransformComponent { ...@@ -54,7 +55,6 @@ class CORE_EXPORT CSSSkewY final : public CSSTransformComponent {
private: private:
Member<CSSNumericValue> ay_; Member<CSSNumericValue> ay_;
DISALLOW_COPY_AND_ASSIGN(CSSSkewY);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_IMAGE_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_IMAGE_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_IMAGE_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_IMAGE_VALUE_H_
#include "base/macros.h"
#include "base/optional.h" #include "base/optional.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/css/cssom/css_resource_value.h" #include "third_party/blink/renderer/core/css/cssom/css_resource_value.h"
...@@ -20,6 +19,8 @@ class CORE_EXPORT CSSStyleImageValue : public CSSResourceValue, ...@@ -20,6 +19,8 @@ class CORE_EXPORT CSSStyleImageValue : public CSSResourceValue,
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
public: public:
CSSStyleImageValue(const CSSStyleImageValue&) = delete;
CSSStyleImageValue& operator=(const CSSStyleImageValue&) = delete;
~CSSStyleImageValue() override = default; ~CSSStyleImageValue() override = default;
// IDL // IDL
...@@ -37,9 +38,6 @@ class CORE_EXPORT CSSStyleImageValue : public CSSResourceValue, ...@@ -37,9 +38,6 @@ class CORE_EXPORT CSSStyleImageValue : public CSSResourceValue,
CSSStyleImageValue() = default; CSSStyleImageValue() = default;
virtual base::Optional<IntSize> IntrinsicSize() const = 0; virtual base::Optional<IntSize> IntrinsicSize() const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(CSSStyleImageValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VALUE_H_
#include "base/macros.h"
#include "base/optional.h" #include "base/optional.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/css/css_property_names.h" #include "third_party/blink/renderer/core/css/css_property_names.h"
...@@ -57,6 +56,8 @@ class CORE_EXPORT CSSStyleValue : public ScriptWrappable { ...@@ -57,6 +56,8 @@ class CORE_EXPORT CSSStyleValue : public ScriptWrappable {
const String& value, const String& value,
ExceptionState&); ExceptionState&);
CSSStyleValue(const CSSStyleValue&) = delete;
CSSStyleValue& operator=(const CSSStyleValue&) = delete;
~CSSStyleValue() override = default; ~CSSStyleValue() override = default;
virtual StyleValueType GetType() const = 0; virtual StyleValueType GetType() const = 0;
...@@ -82,7 +83,6 @@ class CORE_EXPORT CSSStyleValue : public ScriptWrappable { ...@@ -82,7 +83,6 @@ class CORE_EXPORT CSSStyleValue : public ScriptWrappable {
private: private:
String css_text_; String css_text_;
DISALLOW_COPY_AND_ASSIGN(CSSStyleValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VARIABLE_REFERENCE_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VARIABLE_REFERENCE_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VARIABLE_REFERENCE_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_STYLE_VARIABLE_REFERENCE_VALUE_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/css/cssom/css_unparsed_value.h" #include "third_party/blink/renderer/core/css/cssom/css_unparsed_value.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h" #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
...@@ -35,6 +34,10 @@ class CORE_EXPORT CSSStyleVariableReferenceValue final ...@@ -35,6 +34,10 @@ class CORE_EXPORT CSSStyleVariableReferenceValue final
CSSStyleVariableReferenceValue(const String& variable, CSSStyleVariableReferenceValue(const String& variable,
CSSUnparsedValue* fallback) CSSUnparsedValue* fallback)
: variable_(variable), fallback_(fallback) {} : variable_(variable), fallback_(fallback) {}
CSSStyleVariableReferenceValue(const CSSStyleVariableReferenceValue&) =
delete;
CSSStyleVariableReferenceValue& operator=(
const CSSStyleVariableReferenceValue&) = delete;
const String& variable() const { return variable_; } const String& variable() const { return variable_; }
void setVariable(const String&, ExceptionState&); void setVariable(const String&, ExceptionState&);
...@@ -50,9 +53,6 @@ class CORE_EXPORT CSSStyleVariableReferenceValue final ...@@ -50,9 +53,6 @@ class CORE_EXPORT CSSStyleVariableReferenceValue final
protected: protected:
String variable_; String variable_;
Member<CSSUnparsedValue> fallback_; Member<CSSUnparsedValue> fallback_;
private:
DISALLOW_COPY_AND_ASSIGN(CSSStyleVariableReferenceValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_COMPONENT_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_COMPONENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_COMPONENT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_COMPONENT_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/css/css_function_value.h" #include "third_party/blink/renderer/core/css/css_function_value.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h" #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
...@@ -35,6 +34,8 @@ class CORE_EXPORT CSSTransformComponent : public ScriptWrappable { ...@@ -35,6 +34,8 @@ class CORE_EXPORT CSSTransformComponent : public ScriptWrappable {
kTranslationType, kTranslationType,
}; };
CSSTransformComponent(const CSSTransformComponent&) = delete;
CSSTransformComponent& operator=(const CSSTransformComponent&) = delete;
~CSSTransformComponent() override = default; ~CSSTransformComponent() override = default;
// Blink-internal ways of creating CSSTransformComponents. // Blink-internal ways of creating CSSTransformComponents.
...@@ -56,7 +57,6 @@ class CORE_EXPORT CSSTransformComponent : public ScriptWrappable { ...@@ -56,7 +57,6 @@ class CORE_EXPORT CSSTransformComponent : public ScriptWrappable {
private: private:
bool is2D_; bool is2D_;
DISALLOW_COPY_AND_ASSIGN(CSSTransformComponent);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSFORM_VALUE_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/css/cssom/css_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
...@@ -34,6 +33,8 @@ class CORE_EXPORT CSSTransformValue final : public CSSStyleValue { ...@@ -34,6 +33,8 @@ class CORE_EXPORT CSSTransformValue final : public CSSStyleValue {
CSSTransformValue( CSSTransformValue(
const HeapVector<Member<CSSTransformComponent>>& transform_components) const HeapVector<Member<CSSTransformComponent>>& transform_components)
: CSSStyleValue(), transform_components_(transform_components) {} : CSSStyleValue(), transform_components_(transform_components) {}
CSSTransformValue(const CSSTransformValue&) = delete;
CSSTransformValue& operator=(const CSSTransformValue&) = delete;
bool is2D() const; bool is2D() const;
...@@ -60,7 +61,6 @@ class CORE_EXPORT CSSTransformValue final : public CSSStyleValue { ...@@ -60,7 +61,6 @@ class CORE_EXPORT CSSTransformValue final : public CSSStyleValue {
private: private:
HeapVector<Member<CSSTransformComponent>> transform_components_; HeapVector<Member<CSSTransformComponent>> transform_components_;
DISALLOW_COPY_AND_ASSIGN(CSSTransformValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSLATE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSLATE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSLATE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_TRANSLATE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h" #include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_transform_component.h" #include "third_party/blink/renderer/core/css/cssom/css_transform_component.h"
...@@ -44,6 +43,8 @@ class CORE_EXPORT CSSTranslate final : public CSSTransformComponent { ...@@ -44,6 +43,8 @@ class CORE_EXPORT CSSTranslate final : public CSSTransformComponent {
CSSNumericValue* y, CSSNumericValue* y,
CSSNumericValue* z, CSSNumericValue* z,
bool is2D); bool is2D);
CSSTranslate(const CSSTranslate&) = delete;
CSSTranslate& operator=(const CSSTranslate&) = delete;
// Getters and setters for attributes defined in the IDL. // Getters and setters for attributes defined in the IDL.
CSSNumericValue* x() { return x_; } CSSNumericValue* x() { return x_; }
...@@ -70,7 +71,6 @@ class CORE_EXPORT CSSTranslate final : public CSSTransformComponent { ...@@ -70,7 +71,6 @@ class CORE_EXPORT CSSTranslate final : public CSSTransformComponent {
Member<CSSNumericValue> x_; Member<CSSNumericValue> x_;
Member<CSSNumericValue> y_; Member<CSSNumericValue> y_;
Member<CSSNumericValue> z_; Member<CSSNumericValue> z_;
DISALLOW_COPY_AND_ASSIGN(CSSTranslate);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNIT_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNIT_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNIT_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNIT_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h" #include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h" #include "third_party/blink/renderer/core/css/cssom/css_numeric_value.h"
#include "third_party/blink/renderer/platform/wtf/casting.h" #include "third_party/blink/renderer/platform/wtf/casting.h"
...@@ -33,6 +32,8 @@ class CORE_EXPORT CSSUnitValue final : public CSSNumericValue { ...@@ -33,6 +32,8 @@ class CORE_EXPORT CSSUnitValue final : public CSSNumericValue {
: CSSNumericValue(CSSNumericValueType(unit)), : CSSNumericValue(CSSNumericValueType(unit)),
value_(value), value_(value),
unit_(unit) {} unit_(unit) {}
CSSUnitValue(const CSSUnitValue&) = delete;
CSSUnitValue& operator=(const CSSUnitValue&) = delete;
// Setters and getters for attributes defined in the IDL. // Setters and getters for attributes defined in the IDL.
void setValue(double new_value) { value_ = new_value; } void setValue(double new_value) { value_ = new_value; }
...@@ -67,7 +68,6 @@ class CORE_EXPORT CSSUnitValue final : public CSSNumericValue { ...@@ -67,7 +68,6 @@ class CORE_EXPORT CSSUnitValue final : public CSSNumericValue {
double value_; double value_;
CSSPrimitiveValue::UnitType unit_; CSSPrimitiveValue::UnitType unit_;
DISALLOW_COPY_AND_ASSIGN(CSSUnitValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNPARSED_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNPARSED_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNPARSED_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNPARSED_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/bindings/core/v8/string_or_css_variable_reference_value.h" #include "third_party/blink/renderer/bindings/core/v8/string_or_css_variable_reference_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
#include "third_party/blink/renderer/platform/wtf/casting.h" #include "third_party/blink/renderer/platform/wtf/casting.h"
...@@ -42,6 +41,8 @@ class CORE_EXPORT CSSUnparsedValue final : public CSSStyleValue { ...@@ -42,6 +41,8 @@ class CORE_EXPORT CSSUnparsedValue final : public CSSStyleValue {
CSSUnparsedValue(const HeapVector<CSSUnparsedSegment>& tokens) CSSUnparsedValue(const HeapVector<CSSUnparsedSegment>& tokens)
: CSSStyleValue(), tokens_(tokens) {} : CSSStyleValue(), tokens_(tokens) {}
CSSUnparsedValue(const CSSUnparsedValue&) = delete;
CSSUnparsedValue& operator=(const CSSUnparsedValue&) = delete;
const CSSValue* ToCSSValue() const override; const CSSValue* ToCSSValue() const override;
...@@ -74,7 +75,6 @@ class CORE_EXPORT CSSUnparsedValue final : public CSSStyleValue { ...@@ -74,7 +75,6 @@ class CORE_EXPORT CSSUnparsedValue final : public CSSStyleValue {
FRIEND_TEST_ALL_PREFIXES(CSSVariableReferenceValueTest, MixedList); FRIEND_TEST_ALL_PREFIXES(CSSVariableReferenceValueTest, MixedList);
HeapVector<CSSUnparsedSegment> tokens_; HeapVector<CSSUnparsedSegment> tokens_;
DISALLOW_COPY_AND_ASSIGN(CSSUnparsedValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_COLOR_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_COLOR_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_COLOR_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_COLOR_VALUE_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/css/css_color_value.h" #include "third_party/blink/renderer/core/css/css_color_value.h"
#include "third_party/blink/renderer/core/css/cssom/css_unsupported_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_unsupported_style_value.h"
...@@ -32,6 +31,8 @@ class CORE_EXPORT CSSUnsupportedColorValue final ...@@ -32,6 +31,8 @@ class CORE_EXPORT CSSUnsupportedColorValue final
color_value_(color) {} color_value_(color) {}
explicit CSSUnsupportedColorValue(const cssvalue::CSSColorValue& color_value) explicit CSSUnsupportedColorValue(const cssvalue::CSSColorValue& color_value)
: CSSUnsupportedColorValue(color_value.Value()) {} : CSSUnsupportedColorValue(color_value.Value()) {}
CSSUnsupportedColorValue(const CSSUnsupportedColorValue&) = delete;
CSSUnsupportedColorValue& operator=(const CSSUnsupportedColorValue&) = delete;
StyleValueType GetType() const override { return kUnsupportedColorType; } StyleValueType GetType() const override { return kUnsupportedColorType; }
...@@ -41,7 +42,6 @@ class CORE_EXPORT CSSUnsupportedColorValue final ...@@ -41,7 +42,6 @@ class CORE_EXPORT CSSUnsupportedColorValue final
private: private:
Color color_value_; Color color_value_;
DISALLOW_COPY_AND_ASSIGN(CSSUnsupportedColorValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_STYLE_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_STYLE_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_STYLE_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_UNSUPPORTED_STYLE_VALUE_H_
#include "base/macros.h"
#include "base/optional.h" #include "base/optional.h"
#include "third_party/blink/renderer/core/css/css_property_name.h" #include "third_party/blink/renderer/core/css/css_property_name.h"
#include "third_party/blink/renderer/core/css/cssom/css_style_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_value.h"
...@@ -35,6 +34,8 @@ class CORE_EXPORT CSSUnsupportedStyleValue : public CSSStyleValue { ...@@ -35,6 +34,8 @@ class CORE_EXPORT CSSUnsupportedStyleValue : public CSSStyleValue {
: name_(name) { : name_(name) {
SetCSSText(value.CssText()); SetCSSText(value.CssText());
} }
CSSUnsupportedStyleValue(const CSSUnsupportedStyleValue&) = delete;
CSSUnsupportedStyleValue& operator=(const CSSUnsupportedStyleValue&) = delete;
StyleValueType GetType() const override { StyleValueType GetType() const override {
return StyleValueType::kUnknownType; return StyleValueType::kUnknownType;
...@@ -52,7 +53,6 @@ class CORE_EXPORT CSSUnsupportedStyleValue : public CSSStyleValue { ...@@ -52,7 +53,6 @@ class CORE_EXPORT CSSUnsupportedStyleValue : public CSSStyleValue {
private: private:
base::Optional<CSSPropertyName> name_; base::Optional<CSSPropertyName> name_;
DISALLOW_COPY_AND_ASSIGN(CSSUnsupportedStyleValue);
}; };
template <> template <>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_URL_IMAGE_VALUE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_URL_IMAGE_VALUE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_URL_IMAGE_VALUE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_CSS_URL_IMAGE_VALUE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/css_style_image_value.h" #include "third_party/blink/renderer/core/css/cssom/css_style_image_value.h"
namespace blink { namespace blink {
...@@ -15,6 +14,8 @@ class CSSImageValue; ...@@ -15,6 +14,8 @@ class CSSImageValue;
class CORE_EXPORT CSSURLImageValue final : public CSSStyleImageValue { class CORE_EXPORT CSSURLImageValue final : public CSSStyleImageValue {
public: public:
explicit CSSURLImageValue(const CSSImageValue& value) : value_(value) {} explicit CSSURLImageValue(const CSSImageValue& value) : value_(value) {}
CSSURLImageValue(const CSSURLImageValue&) = delete;
CSSURLImageValue& operator=(const CSSURLImageValue&) = delete;
const String& url() const; const String& url() const;
...@@ -37,7 +38,6 @@ class CORE_EXPORT CSSURLImageValue final : public CSSStyleImageValue { ...@@ -37,7 +38,6 @@ class CORE_EXPORT CSSURLImageValue final : public CSSStyleImageValue {
scoped_refptr<Image> GetImage() const; scoped_refptr<Image> GetImage() const;
Member<const CSSImageValue> value_; Member<const CSSImageValue> value_;
DISALLOW_COPY_AND_ASSIGN(CSSURLImageValue);
}; };
} // namespace blink } // namespace blink
......
...@@ -23,6 +23,8 @@ class StyleRule; ...@@ -23,6 +23,8 @@ class StyleRule;
class CORE_EXPORT DeclaredStylePropertyMap final : public StylePropertyMap { class CORE_EXPORT DeclaredStylePropertyMap final : public StylePropertyMap {
public: public:
explicit DeclaredStylePropertyMap(CSSStyleRule* owner_rule); explicit DeclaredStylePropertyMap(CSSStyleRule* owner_rule);
DeclaredStylePropertyMap(const DeclaredStylePropertyMap&) = delete;
DeclaredStylePropertyMap& operator=(const DeclaredStylePropertyMap&) = delete;
void Trace(Visitor* visitor) const override { void Trace(Visitor* visitor) const override {
visitor->Trace(owner_rule_); visitor->Trace(owner_rule_);
...@@ -50,8 +52,6 @@ class CORE_EXPORT DeclaredStylePropertyMap final : public StylePropertyMap { ...@@ -50,8 +52,6 @@ class CORE_EXPORT DeclaredStylePropertyMap final : public StylePropertyMap {
StyleRule* GetStyleRule() const; StyleRule* GetStyleRule() const;
WeakMember<CSSStyleRule> owner_rule_; WeakMember<CSSStyleRule> owner_rule_;
DISALLOW_COPY_AND_ASSIGN(DeclaredStylePropertyMap);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_INLINE_STYLE_PROPERTY_MAP_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_INLINE_STYLE_PROPERTY_MAP_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_INLINE_STYLE_PROPERTY_MAP_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_INLINE_STYLE_PROPERTY_MAP_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/style_property_map.h" #include "third_party/blink/renderer/core/css/cssom/style_property_map.h"
#include "third_party/blink/renderer/core/dom/element.h" #include "third_party/blink/renderer/core/dom/element.h"
...@@ -15,6 +14,8 @@ class CORE_EXPORT InlineStylePropertyMap final : public StylePropertyMap { ...@@ -15,6 +14,8 @@ class CORE_EXPORT InlineStylePropertyMap final : public StylePropertyMap {
public: public:
explicit InlineStylePropertyMap(Element* owner_element) explicit InlineStylePropertyMap(Element* owner_element)
: owner_element_(owner_element) {} : owner_element_(owner_element) {}
InlineStylePropertyMap(const InlineStylePropertyMap&) = delete;
InlineStylePropertyMap& operator=(const InlineStylePropertyMap&) = delete;
void Trace(Visitor* visitor) const override { void Trace(Visitor* visitor) const override {
visitor->Trace(owner_element_); visitor->Trace(owner_element_);
...@@ -40,7 +41,6 @@ class CORE_EXPORT InlineStylePropertyMap final : public StylePropertyMap { ...@@ -40,7 +41,6 @@ class CORE_EXPORT InlineStylePropertyMap final : public StylePropertyMap {
private: private:
Member<Element> owner_element_; Member<Element> owner_element_;
DISALLOW_COPY_AND_ASSIGN(InlineStylePropertyMap);
}; };
} // namespace blink } // namespace blink
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <memory> #include <memory>
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h" #include "third_party/blink/renderer/core/css/cssom/cross_thread_style_value.h"
#include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only.h" #include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only.h"
#include "third_party/blink/renderer/platform/graphics/compositor_element_id.h" #include "third_party/blink/renderer/platform/graphics/compositor_element_id.h"
...@@ -50,6 +49,9 @@ class CORE_EXPORT PaintWorkletStylePropertyMap ...@@ -50,6 +49,9 @@ class CORE_EXPORT PaintWorkletStylePropertyMap
// This constructor should be called on the worklet-thread only. // This constructor should be called on the worklet-thread only.
explicit PaintWorkletStylePropertyMap(CrossThreadData data); explicit PaintWorkletStylePropertyMap(CrossThreadData data);
PaintWorkletStylePropertyMap(const PaintWorkletStylePropertyMap&) = delete;
PaintWorkletStylePropertyMap& operator=(const PaintWorkletStylePropertyMap&) =
delete;
CSSStyleValue* get(const ExecutionContext*, CSSStyleValue* get(const ExecutionContext*,
const String& property_name, const String& property_name,
...@@ -75,8 +77,6 @@ class CORE_EXPORT PaintWorkletStylePropertyMap ...@@ -75,8 +77,6 @@ class CORE_EXPORT PaintWorkletStylePropertyMap
IterationSource* StartIteration(ScriptState*, ExceptionState&) override; IterationSource* StartIteration(ScriptState*, ExceptionState&) override;
CrossThreadData data_; CrossThreadData data_;
DISALLOW_COPY_AND_ASSIGN(PaintWorkletStylePropertyMap);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_PREPOPULATED_COMPUTED_STYLE_PROPERTY_MAP_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_PREPOPULATED_COMPUTED_STYLE_PROPERTY_MAP_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_PREPOPULATED_COMPUTED_STYLE_PROPERTY_MAP_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_PREPOPULATED_COMPUTED_STYLE_PROPERTY_MAP_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/css/css_property_id_templates.h" #include "third_party/blink/renderer/core/css/css_property_id_templates.h"
#include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.h" #include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string_hash.h" #include "third_party/blink/renderer/platform/wtf/text/atomic_string_hash.h"
...@@ -34,6 +33,10 @@ class CORE_EXPORT PrepopulatedComputedStylePropertyMap ...@@ -34,6 +33,10 @@ class CORE_EXPORT PrepopulatedComputedStylePropertyMap
const ComputedStyle&, const ComputedStyle&,
const Vector<CSSPropertyID>& native_properties, const Vector<CSSPropertyID>& native_properties,
const Vector<AtomicString>& custom_properties); const Vector<AtomicString>& custom_properties);
PrepopulatedComputedStylePropertyMap(
const PrepopulatedComputedStylePropertyMap&) = delete;
PrepopulatedComputedStylePropertyMap& operator=(
const PrepopulatedComputedStylePropertyMap&) = delete;
// Updates the values of the properties based on the new computed style. // Updates the values of the properties based on the new computed style.
void UpdateStyle(const Document&, const ComputedStyle&); void UpdateStyle(const Document&, const ComputedStyle&);
...@@ -56,8 +59,6 @@ class CORE_EXPORT PrepopulatedComputedStylePropertyMap ...@@ -56,8 +59,6 @@ class CORE_EXPORT PrepopulatedComputedStylePropertyMap
HeapHashMap<CSSPropertyID, Member<const CSSValue>> native_values_; HeapHashMap<CSSPropertyID, Member<const CSSValue>> native_values_;
HeapHashMap<AtomicString, Member<const CSSValue>> custom_values_; HeapHashMap<AtomicString, Member<const CSSValue>> custom_values_;
DISALLOW_COPY_AND_ASSIGN(PrepopulatedComputedStylePropertyMap);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_STYLE_PROPERTY_MAP_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_STYLE_PROPERTY_MAP_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_STYLE_PROPERTY_MAP_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSSOM_STYLE_PROPERTY_MAP_H_
#include "base/macros.h"
#include "third_party/blink/renderer/bindings/core/v8/css_style_value_or_string.h" #include "third_party/blink/renderer/bindings/core/v8/css_style_value_or_string.h"
#include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.h" #include "third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h" #include "third_party/blink/renderer/core/execution_context/execution_context.h"
...@@ -19,6 +18,9 @@ class CORE_EXPORT StylePropertyMap : public StylePropertyMapReadOnlyMainThread { ...@@ -19,6 +18,9 @@ class CORE_EXPORT StylePropertyMap : public StylePropertyMapReadOnlyMainThread {
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
public: public:
StylePropertyMap(const StylePropertyMap&) = delete;
StylePropertyMap& operator=(const StylePropertyMap&) = delete;
void set(const ExecutionContext*, void set(const ExecutionContext*,
const String& property_name, const String& property_name,
const HeapVector<CSSStyleValueOrString>& values, const HeapVector<CSSStyleValueOrString>& values,
...@@ -43,9 +45,6 @@ class CORE_EXPORT StylePropertyMap : public StylePropertyMapReadOnlyMainThread { ...@@ -43,9 +45,6 @@ class CORE_EXPORT StylePropertyMap : public StylePropertyMapReadOnlyMainThread {
virtual void RemoveAllProperties() = 0; virtual void RemoveAllProperties() = 0;
StylePropertyMap() = default; StylePropertyMap() = default;
private:
DISALLOW_COPY_AND_ASSIGN(StylePropertyMap);
}; };
} // namespace blink } // namespace blink
......
...@@ -17,6 +17,10 @@ class CORE_EXPORT StylePropertyMapReadOnlyMainThread ...@@ -17,6 +17,10 @@ class CORE_EXPORT StylePropertyMapReadOnlyMainThread
public: public:
using StylePropertyMapEntry = std::pair<String, CSSStyleValueVector>; using StylePropertyMapEntry = std::pair<String, CSSStyleValueVector>;
StylePropertyMapReadOnlyMainThread(
const StylePropertyMapReadOnlyMainThread&) = delete;
StylePropertyMapReadOnlyMainThread& operator=(
const StylePropertyMapReadOnlyMainThread&) = delete;
~StylePropertyMapReadOnlyMainThread() override = default; ~StylePropertyMapReadOnlyMainThread() override = default;
CSSStyleValue* get(const ExecutionContext*, CSSStyleValue* get(const ExecutionContext*,
...@@ -47,9 +51,6 @@ class CORE_EXPORT StylePropertyMapReadOnlyMainThread ...@@ -47,9 +51,6 @@ class CORE_EXPORT StylePropertyMapReadOnlyMainThread
IterationSource* StartIteration(ScriptState*, ExceptionState&) override; IterationSource* StartIteration(ScriptState*, ExceptionState&) override;
CSSStyleValue* GetShorthandProperty(const CSSProperty&) const; CSSStyleValue* GetShorthandProperty(const CSSProperty&) const;
private:
DISALLOW_COPY_AND_ASSIGN(StylePropertyMapReadOnlyMainThread);
}; };
} // 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