| Index: Source/core/dom/ContainerNode.cpp
|
| diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
|
| index c81792c5d44f71d36032e2bb889cdc74c31be2f5..f399213a53970bcd7f8a6b467d8ce43cac065ba5 100644
|
| --- a/Source/core/dom/ContainerNode.cpp
|
| +++ b/Source/core/dom/ContainerNode.cpp
|
| @@ -1084,20 +1084,6 @@ void ContainerNode::focusStateChanged()
|
|
|
| void ContainerNode::setFocus(bool received)
|
| {
|
| - // Recurse up the shadow trees to mark shadow hosts if it matches :focus.
|
| - if (isInShadowTree() && shadowHost()->shadowRoot())
|
| - shadowHost()->setFocus(received);
|
| -
|
| - // If this is an author shadow host and indirectly focused (has focused element within
|
| - // its shadow root), update focus.
|
| - // TODO(kochi): Handle UA shadow which marks multiple nodes as focused such as
|
| - // <input type="date"> the same way as author shadow.
|
| - if (document().focusedElement() && document().focusedElement() != this) {
|
| - Element* host = toElement(this);
|
| - if (host->shadowRoot())
|
| - received = received && host->tabIndex() >= 0 && !host->tabStop();
|
| - }
|
| -
|
| if (focused() == received)
|
| return;
|
|
|
|
|