| Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| index 1c2af0ea6654478fede894825e28c67c030b0410..f6d1a5bd1ebcbbf54887df734c25485369ed2e20 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| @@ -784,7 +784,7 @@ void HTMLSelectElement::setRecalcListItems()
|
|
|
| m_shouldRecalcListItems = true;
|
| setOptionsChangedOnLayoutObject();
|
| - if (!inDocument()) {
|
| + if (!inShadowIncludingDocument()) {
|
| if (HTMLOptionsCollection* collection = cachedCollection<HTMLOptionsCollection>(SelectOptions))
|
| collection->invalidateCache();
|
| invalidateSelectedItems();
|
| @@ -946,7 +946,7 @@ void HTMLSelectElement::scrollToOption(HTMLOptionElement* option)
|
| void HTMLSelectElement::scrollToOptionTask()
|
| {
|
| RawPtr<HTMLOptionElement> option = m_optionToScrollTo.release();
|
| - if (!option || !inDocument())
|
| + if (!option || !inShadowIncludingDocument())
|
| return;
|
| // optionRemoved() makes sure m_optionToScrollTo doesn't have an option with
|
| // another owner.
|
|
|