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

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

Issue 69533003: Upgrade parser-created Custom Elements in creation order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring patch to head. Created 7 years, 1 month 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/Element.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 0fb87fd82ba96ed9c6922149e4532f81f10bc1bc..1ed668b1675d6b9d89c3fbb076aefcc177dc1292 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1016,7 +1016,7 @@ void Element::attributeChanged(const QualifiedName& name, const AtomicString& ne
inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason reason)
{
if (name == isAttr)
- CustomElementRegistrationContext::setTypeExtension(this, newValue, reason == ModifiedDirectly ? CustomElementRegistrationContext::CreatedByParser : CustomElementRegistrationContext::NotCreatedByParser);
+ CustomElementRegistrationContext::setTypeExtension(this, newValue);
attributeChanged(name, newValue, reason);
}
@@ -1879,9 +1879,7 @@ void Element::beginParsingChildren()
void Element::finishParsingChildren()
{
setIsParsingChildrenFinished();
- checkForSiblingStyleChanges(true, lastChild(), 0, 0);
- if (isCustomElement())
- CustomElement::didFinishParsingChildren(this);
+ checkForSiblingStyleChanges(this, lastChild(), 0, 0);
}
#ifndef NDEBUG
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698