Commit 994fb871 authored by Fredrik Söderqvist's avatar Fredrik Söderqvist Committed by Commit Bot

Fix variable naming style in Element::SetElementAttribute

Rename the local variable |explicitly_set_attr_elements_map_| to
|explicitly_set_attr_elements_map| (dropping the trailing '_').

Change-Id: I2d46f32a993c3c27b092debba48614c068c87060
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303392
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789509}
parent 342ab655
...@@ -751,7 +751,7 @@ void Element::SynchronizeContentAttributeAndElementReference( ...@@ -751,7 +751,7 @@ void Element::SynchronizeContentAttributeAndElementReference(
} }
void Element::SetElementAttribute(const QualifiedName& name, Element* element) { void Element::SetElementAttribute(const QualifiedName& name, Element* element) {
ExplicitlySetAttrElementsMap* explicitly_set_attr_elements_map_ = ExplicitlySetAttrElementsMap* explicitly_set_attr_elements_map =
GetDocument().GetExplicitlySetAttrElementsMap(this); GetDocument().GetExplicitlySetAttrElementsMap(this);
// If the reflected element is explicitly null, or is not a member of this // If the reflected element is explicitly null, or is not a member of this
...@@ -762,7 +762,7 @@ void Element::SetElementAttribute(const QualifiedName& name, Element* element) { ...@@ -762,7 +762,7 @@ void Element::SetElementAttribute(const QualifiedName& name, Element* element) {
// https://whatpr.org/html/3917/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:concept-shadow-including-ancestor // https://whatpr.org/html/3917/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:concept-shadow-including-ancestor
if (!element || if (!element ||
!ElementIsDescendantOfShadowIncludingAncestor(*this, *element)) { !ElementIsDescendantOfShadowIncludingAncestor(*this, *element)) {
explicitly_set_attr_elements_map_->erase(name); explicitly_set_attr_elements_map->erase(name);
removeAttribute(name); removeAttribute(name);
return; return;
} }
...@@ -782,7 +782,7 @@ void Element::SetElementAttribute(const QualifiedName& name, Element* element) { ...@@ -782,7 +782,7 @@ void Element::SetElementAttribute(const QualifiedName& name, Element* element) {
else else
setAttribute(name, id); setAttribute(name, id);
auto result = explicitly_set_attr_elements_map_->insert(name, nullptr); auto result = explicitly_set_attr_elements_map->insert(name, nullptr);
if (result.is_new_entry) { if (result.is_new_entry) {
result.stored_value->value = result.stored_value->value =
MakeGarbageCollected<HeapVector<Member<Element>>>(); MakeGarbageCollected<HeapVector<Member<Element>>>();
......
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