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

Unified Diff: Source/core/dom/MutationRecord.cpp

Issue 633573004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/MutationObserverRegistration.h ('k') | Source/core/dom/NameNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/MutationRecord.cpp
diff --git a/Source/core/dom/MutationRecord.cpp b/Source/core/dom/MutationRecord.cpp
index d03486e7fbf398bc056aa7291b41da8a914e16a8..ea8d65a84ebce5ad3e857ffb123c26e08efef831 100644
--- a/Source/core/dom/MutationRecord.cpp
+++ b/Source/core/dom/MutationRecord.cpp
@@ -53,7 +53,7 @@ public:
{
}
- virtual void trace(Visitor* visitor) OVERRIDE
+ virtual void trace(Visitor* visitor) override
{
visitor->trace(m_target);
visitor->trace(m_addedNodes);
@@ -64,12 +64,12 @@ public:
}
private:
- virtual const AtomicString& type() OVERRIDE;
- virtual Node* target() OVERRIDE { return m_target.get(); }
- virtual StaticNodeList* addedNodes() OVERRIDE { return m_addedNodes.get(); }
- virtual StaticNodeList* removedNodes() OVERRIDE { return m_removedNodes.get(); }
- virtual Node* previousSibling() OVERRIDE { return m_previousSibling.get(); }
- virtual Node* nextSibling() OVERRIDE { return m_nextSibling.get(); }
+ virtual const AtomicString& type() override;
+ virtual Node* target() override { return m_target.get(); }
+ virtual StaticNodeList* addedNodes() override { return m_addedNodes.get(); }
+ virtual StaticNodeList* removedNodes() override { return m_removedNodes.get(); }
+ virtual Node* previousSibling() override { return m_previousSibling.get(); }
+ virtual Node* nextSibling() override { return m_nextSibling.get(); }
RefPtrWillBeMember<Node> m_target;
RefPtrWillBeMember<StaticNodeList> m_addedNodes;
@@ -86,7 +86,7 @@ public:
{
}
- virtual void trace(Visitor* visitor) OVERRIDE
+ virtual void trace(Visitor* visitor) override
{
visitor->trace(m_target);
visitor->trace(m_addedNodes);
@@ -95,10 +95,10 @@ public:
}
private:
- virtual Node* target() OVERRIDE { return m_target.get(); }
- virtual String oldValue() OVERRIDE { return m_oldValue; }
- virtual StaticNodeList* addedNodes() OVERRIDE { return lazilyInitializeEmptyNodeList(m_addedNodes); }
- virtual StaticNodeList* removedNodes() OVERRIDE { return lazilyInitializeEmptyNodeList(m_removedNodes); }
+ virtual Node* target() override { return m_target.get(); }
+ virtual String oldValue() override { return m_oldValue; }
+ virtual StaticNodeList* addedNodes() override { return lazilyInitializeEmptyNodeList(m_addedNodes); }
+ virtual StaticNodeList* removedNodes() override { return lazilyInitializeEmptyNodeList(m_removedNodes); }
static StaticNodeList* lazilyInitializeEmptyNodeList(RefPtrWillBeMember<StaticNodeList>& nodeList)
{
@@ -123,9 +123,9 @@ public:
}
private:
- virtual const AtomicString& type() OVERRIDE;
- virtual const AtomicString& attributeName() OVERRIDE { return m_attributeName; }
- virtual const AtomicString& attributeNamespace() OVERRIDE { return m_attributeNamespace; }
+ virtual const AtomicString& type() override;
+ virtual const AtomicString& attributeName() override { return m_attributeName; }
+ virtual const AtomicString& attributeNamespace() override { return m_attributeNamespace; }
AtomicString m_attributeName;
AtomicString m_attributeNamespace;
@@ -139,7 +139,7 @@ public:
}
private:
- virtual const AtomicString& type() OVERRIDE;
+ virtual const AtomicString& type() override;
};
class MutationRecordWithNullOldValue : public MutationRecord {
@@ -149,23 +149,23 @@ public:
{
}
- virtual void trace(Visitor* visitor) OVERRIDE
+ virtual void trace(Visitor* visitor) override
{
visitor->trace(m_record);
MutationRecord::trace(visitor);
}
private:
- virtual const AtomicString& type() OVERRIDE { return m_record->type(); }
- virtual Node* target() OVERRIDE { return m_record->target(); }
- virtual StaticNodeList* addedNodes() OVERRIDE { return m_record->addedNodes(); }
- virtual StaticNodeList* removedNodes() OVERRIDE { return m_record->removedNodes(); }
- virtual Node* previousSibling() OVERRIDE { return m_record->previousSibling(); }
- virtual Node* nextSibling() OVERRIDE { return m_record->nextSibling(); }
- virtual const AtomicString& attributeName() OVERRIDE { return m_record->attributeName(); }
- virtual const AtomicString& attributeNamespace() OVERRIDE { return m_record->attributeNamespace(); }
-
- virtual String oldValue() OVERRIDE { return String(); }
+ virtual const AtomicString& type() override { return m_record->type(); }
+ virtual Node* target() override { return m_record->target(); }
+ virtual StaticNodeList* addedNodes() override { return m_record->addedNodes(); }
+ virtual StaticNodeList* removedNodes() override { return m_record->removedNodes(); }
+ virtual Node* previousSibling() override { return m_record->previousSibling(); }
+ virtual Node* nextSibling() override { return m_record->nextSibling(); }
+ virtual const AtomicString& attributeName() override { return m_record->attributeName(); }
+ virtual const AtomicString& attributeNamespace() override { return m_record->attributeNamespace(); }
+
+ virtual String oldValue() override { return String(); }
RefPtrWillBeMember<MutationRecord> m_record;
};
« no previous file with comments | « Source/core/dom/MutationObserverRegistration.h ('k') | Source/core/dom/NameNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698