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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement Created 4 years, 8 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 | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/dom/ElementRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index e57717fef0be40072014ca746fcd95b692d725c2..5d8d104f82c61386a7ce71a24f6020dd1e20c105 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -73,8 +73,8 @@
#include "core/dom/StyleChangeReason.h"
#include "core/dom/StyleEngine.h"
#include "core/dom/Text.h"
-#include "core/dom/custom/CustomElement.h"
-#include "core/dom/custom/CustomElementRegistrationContext.h"
+#include "core/dom/custom/V0CustomElement.h"
+#include "core/dom/custom/V0CustomElementRegistrationContext.h"
#include "core/dom/shadow/InsertionPoint.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/dom/shadow/ShadowRootInit.h"
@@ -1192,7 +1192,7 @@ const QualifiedName& Element::subResourceAttributeName() const
inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason reason)
{
if (name == isAttr)
- CustomElementRegistrationContext::setTypeExtension(this, newValue);
+ V0CustomElementRegistrationContext::setTypeExtension(this, newValue);
attributeChanged(name, nullAtom, newValue, reason);
}
@@ -1414,7 +1414,7 @@ Node::InsertionNotificationRequest Element::insertedInto(ContainerNode* insertio
}
if (isUpgradedCustomElement() && inShadowIncludingDocument())
- CustomElement::didAttach(this, document());
+ V0CustomElement::didAttach(this, document());
TreeScope& scope = insertionPoint->treeScope();
if (scope != treeScope())
@@ -1475,7 +1475,7 @@ void Element::removedFrom(ContainerNode* insertionPoint)
document().accessSVGExtensions().removeElementFromPendingResources(this);
if (isUpgradedCustomElement())
- CustomElement::didDetach(this, insertionPoint->document());
+ V0CustomElement::didDetach(this, insertionPoint->document());
if (needsStyleInvalidation())
document().styleEngine().styleInvalidator().clearInvalidation(*this);
@@ -1874,7 +1874,7 @@ void Element::setNeedsCompositingUpdate()
layoutObject->layer()->updateSelfPaintingLayer();
}
-void Element::setCustomElementDefinition(CustomElementDefinition* definition)
+void Element::setCustomElementDefinition(V0CustomElementDefinition* definition)
{
if (!hasRareData() && !definition)
return;
@@ -1882,7 +1882,7 @@ void Element::setCustomElementDefinition(CustomElementDefinition* definition)
ensureElementRareData().setCustomElementDefinition(definition);
}
-CustomElementDefinition* Element::customElementDefinition() const
+V0CustomElementDefinition* Element::customElementDefinition() const
{
if (hasRareData())
return elementRareData()->customElementDefinition();
@@ -3160,7 +3160,7 @@ void Element::willModifyAttribute(const QualifiedName& name, const AtomicString&
if (oldValue != newValue) {
document().styleEngine().attributeChangedForElement(name, *this);
if (isUpgradedCustomElement())
- CustomElement::attributeDidChange(this, name.localName(), oldValue, newValue);
+ V0CustomElement::attributeDidChange(this, name.localName(), oldValue, newValue);
}
if (MutationObserverInterestGroup* recipients = MutationObserverInterestGroup::createForAttributesMutation(*this, name))
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698