| Index: third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
|
| index 6d182e74de929b2d723745e871b07b0a06fc73ea..4d34464269a88164f70cb7d19ebc76145db72bda 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
|
| @@ -245,7 +245,7 @@ void HTMLLabelElement::accessKeyAction(bool sendMouseEvents)
|
|
|
| void HTMLLabelElement::updateLabel(TreeScope& scope, const AtomicString& oldForAttributeValue, const AtomicString& newForAttributeValue)
|
| {
|
| - if (!inDocument())
|
| + if (!inShadowIncludingDocument())
|
| return;
|
|
|
| if (oldForAttributeValue == newForAttributeValue)
|
| @@ -268,7 +268,7 @@ Node::InsertionNotificationRequest HTMLLabelElement::insertedInto(ContainerNode*
|
| }
|
|
|
| // Trigger for elements outside of forms.
|
| - if (!formOwner() && insertionPoint->inDocument())
|
| + if (!formOwner() && insertionPoint->inShadowIncludingDocument())
|
| document().didAssociateFormControl(this);
|
|
|
| return result;
|
|
|