Commit dea5b9bd 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/xml/*

Bug: 565932
Change-Id: I98a8766fd355146f8709b4057c9c6b96f9f5eb57
Reviewed-on: https://chromium-review.googlesource.com/816494Reviewed-by: default avatarChris Watkins <watk@chromium.org>
Reviewed-by: default avatarSasha Morrissey <sashab@chromium.org>
Commit-Queue: Eve Martin-Jones <evem@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523341}
parent b2022098
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef DocumentXSLT_h #ifndef DocumentXSLT_h
#define DocumentXSLT_h #define DocumentXSLT_h
#include "base/macros.h"
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "core/dom/Document.h" #include "core/dom/Document.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
...@@ -16,7 +17,6 @@ class ProcessingInstruction; ...@@ -16,7 +17,6 @@ class ProcessingInstruction;
class DocumentXSLT final : public GarbageCollected<DocumentXSLT>, class DocumentXSLT final : public GarbageCollected<DocumentXSLT>,
public Supplement<Document> { public Supplement<Document> {
WTF_MAKE_NONCOPYABLE(DocumentXSLT);
USING_GARBAGE_COLLECTED_MIXIN(DocumentXSLT); USING_GARBAGE_COLLECTED_MIXIN(DocumentXSLT);
public: public:
...@@ -49,6 +49,7 @@ class DocumentXSLT final : public GarbageCollected<DocumentXSLT>, ...@@ -49,6 +49,7 @@ class DocumentXSLT final : public GarbageCollected<DocumentXSLT>,
explicit DocumentXSLT(Document&); explicit DocumentXSLT(Document&);
Member<Document> transform_source_document_; Member<Document> transform_source_document_;
DISALLOW_COPY_AND_ASSIGN(DocumentXSLT);
}; };
} // namespace blink } // namespace blink
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#ifndef XPathExpressionNode_h #ifndef XPathExpressionNode_h
#define XPathExpressionNode_h #define XPathExpressionNode_h
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/dom/Node.h" #include "core/dom/Node.h"
#include "core/xml/XPathValue.h" #include "core/xml/XPathValue.h"
...@@ -59,8 +60,6 @@ class CORE_EXPORT ParseNode : public GarbageCollectedFinalized<ParseNode> { ...@@ -59,8 +60,6 @@ class CORE_EXPORT ParseNode : public GarbageCollectedFinalized<ParseNode> {
}; };
class CORE_EXPORT Expression : public ParseNode { class CORE_EXPORT Expression : public ParseNode {
WTF_MAKE_NONCOPYABLE(Expression);
public: public:
Expression(); Expression();
~Expression() override; ~Expression() override;
...@@ -106,6 +105,7 @@ class CORE_EXPORT Expression : public ParseNode { ...@@ -106,6 +105,7 @@ class CORE_EXPORT Expression : public ParseNode {
bool is_context_node_sensitive_; bool is_context_node_sensitive_;
bool is_context_position_sensitive_; bool is_context_position_sensitive_;
bool is_context_size_sensitive_; bool is_context_size_sensitive_;
DISALLOW_COPY_AND_ASSIGN(Expression);
}; };
} // namespace XPath } // namespace XPath
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#define XPathParser_h #define XPathParser_h
#include <memory> #include <memory>
#include "base/macros.h"
#include "core/xml/XPathPredicate.h" #include "core/xml/XPathPredicate.h"
#include "core/xml/XPathStep.h" #include "core/xml/XPathStep.h"
#include "platform/wtf/Allocator.h" #include "platform/wtf/Allocator.h"
...@@ -59,7 +60,6 @@ struct Token { ...@@ -59,7 +60,6 @@ struct Token {
}; };
class Parser { class Parser {
WTF_MAKE_NONCOPYABLE(Parser);
STACK_ALLOCATED(); STACK_ALLOCATED();
public: public:
...@@ -113,6 +113,7 @@ class Parser { ...@@ -113,6 +113,7 @@ class Parser {
Member<XPathNSResolver> resolver_; Member<XPathNSResolver> resolver_;
HashSet<std::unique_ptr<String>> strings_; HashSet<std::unique_ptr<String>> strings_;
DISALLOW_COPY_AND_ASSIGN(Parser);
}; };
} // namespace XPath } // namespace XPath
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#ifndef XPathPredicate_h #ifndef XPathPredicate_h
#define XPathPredicate_h #define XPathPredicate_h
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/xml/XPathExpressionNode.h" #include "core/xml/XPathExpressionNode.h"
#include "core/xml/XPathValue.h" #include "core/xml/XPathValue.h"
...@@ -117,8 +118,6 @@ class Union final : public Expression { ...@@ -117,8 +118,6 @@ class Union final : public Expression {
}; };
class Predicate final : public GarbageCollected<Predicate> { class Predicate final : public GarbageCollected<Predicate> {
WTF_MAKE_NONCOPYABLE(Predicate);
public: public:
explicit Predicate(Expression*); explicit Predicate(Expression*);
void Trace(blink::Visitor*); void Trace(blink::Visitor*);
...@@ -134,6 +133,7 @@ class Predicate final : public GarbageCollected<Predicate> { ...@@ -134,6 +133,7 @@ class Predicate final : public GarbageCollected<Predicate> {
private: private:
Member<Expression> expr_; Member<Expression> expr_;
DISALLOW_COPY_AND_ASSIGN(Predicate);
}; };
} // namespace XPath } // namespace XPath
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#ifndef XPathStep_h #ifndef XPathStep_h
#define XPathStep_h #define XPathStep_h
#include "base/macros.h"
#include "core/xml/XPathExpressionNode.h" #include "core/xml/XPathExpressionNode.h"
#include "core/xml/XPathNodeSet.h" #include "core/xml/XPathNodeSet.h"
...@@ -39,8 +40,6 @@ namespace XPath { ...@@ -39,8 +40,6 @@ namespace XPath {
class Predicate; class Predicate;
class Step final : public ParseNode { class Step final : public ParseNode {
WTF_MAKE_NONCOPYABLE(Step);
public: public:
enum Axis { enum Axis {
kAncestorAxis, kAncestorAxis,
...@@ -132,6 +131,7 @@ class Step final : public ParseNode { ...@@ -132,6 +131,7 @@ class Step final : public ParseNode {
Axis axis_; Axis axis_;
Member<NodeTest> node_test_; Member<NodeTest> node_test_;
HeapVector<Member<Predicate>> predicates_; HeapVector<Member<Predicate>> predicates_;
DISALLOW_COPY_AND_ASSIGN(Step);
}; };
bool OptimizeStepPair(Step*, Step*); bool OptimizeStepPair(Step*, Step*);
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
#define XMLDocumentParserScope_h #define XMLDocumentParserScope_h
#include <libxml/xmlerror.h> #include <libxml/xmlerror.h>
#include "base/macros.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
#include "platform/wtf/Noncopyable.h"
namespace blink { namespace blink {
...@@ -36,7 +36,6 @@ class Document; ...@@ -36,7 +36,6 @@ class Document;
class XMLDocumentParserScope { class XMLDocumentParserScope {
STACK_ALLOCATED(); STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(XMLDocumentParserScope);
public: public:
explicit XMLDocumentParserScope(Document*); explicit XMLDocumentParserScope(Document*);
...@@ -54,6 +53,7 @@ class XMLDocumentParserScope { ...@@ -54,6 +53,7 @@ class XMLDocumentParserScope {
xmlGenericErrorFunc old_generic_error_func_; xmlGenericErrorFunc old_generic_error_func_;
xmlStructuredErrorFunc old_structured_error_func_; xmlStructuredErrorFunc old_structured_error_func_;
void* old_error_context_; void* old_error_context_;
DISALLOW_COPY_AND_ASSIGN(XMLDocumentParserScope);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef XMLParserScriptRunner_h #ifndef XMLParserScriptRunner_h
#define XMLParserScriptRunner_h #define XMLParserScriptRunner_h
#include "base/macros.h"
#include "core/dom/PendingScript.h" #include "core/dom/PendingScript.h"
#include "platform/wtf/text/TextPosition.h" #include "platform/wtf/text/TextPosition.h"
...@@ -20,7 +21,6 @@ class XMLParserScriptRunnerHost; ...@@ -20,7 +21,6 @@ class XMLParserScriptRunnerHost;
class XMLParserScriptRunner final class XMLParserScriptRunner final
: public GarbageCollectedFinalized<XMLParserScriptRunner>, : public GarbageCollectedFinalized<XMLParserScriptRunner>,
public PendingScriptClient { public PendingScriptClient {
WTF_MAKE_NONCOPYABLE(XMLParserScriptRunner);
USING_GARBAGE_COLLECTED_MIXIN(XMLParserScriptRunner); USING_GARBAGE_COLLECTED_MIXIN(XMLParserScriptRunner);
public: public:
...@@ -51,6 +51,7 @@ class XMLParserScriptRunner final ...@@ -51,6 +51,7 @@ class XMLParserScriptRunner final
// TODO(crbug/717643): Implement // TODO(crbug/717643): Implement
// https://html.spec.whatwg.org/#list-of-scripts-that-will-execute-when-the-document-has-finished-parsing // https://html.spec.whatwg.org/#list-of-scripts-that-will-execute-when-the-document-has-finished-parsing
DISALLOW_COPY_AND_ASSIGN(XMLParserScriptRunner);
}; };
} // 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