| Index: third_party/WebKit/Source/core/dom/Node.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
|
| index 12c26b7752626f68c6410eb4e0898526e9251e62..ecd955ee4ecef4166e6da1956cab6bc85d59d377 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -995,6 +995,21 @@ bool Node::isSlotOrActiveInsertionPoint() const
|
| return isHTMLSlotElement(*this) || isActiveInsertionPoint(*this);
|
| }
|
|
|
| +AtomicString Node::slotName() const
|
| +{
|
| + DCHECK(slottable());
|
| + if (isElementNode())
|
| + return normalizeSlotName(toElement(*this).fastGetAttribute(HTMLNames::slotAttr));
|
| + DCHECK(isTextNode());
|
| + return emptyAtom;
|
| +}
|
| +
|
| +// static
|
| +AtomicString Node::normalizeSlotName(const AtomicString& name)
|
| +{
|
| + return (name.isNull() || name.isEmpty()) ? emptyAtom : name;
|
| +}
|
| +
|
| bool Node::isInV1ShadowTree() const
|
| {
|
| ShadowRoot* shadowRoot = containingShadowRoot();
|
|
|