| 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 69aab5a082d74cdbae8064c5554a20b466bbc5f3..8fb5e90f06d88c95b09f3919414e0472585d81d6 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;
|
|
|