| Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| index 5e2afbdf9ed21db9244ea1d51ad3fe63d8ada8e6..ea8ea9db31249f7eb1a22126f1b9a62f51e8a6f8 100644
|
| --- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp
|
| @@ -1027,13 +1027,13 @@ void ContainerNode::FocusStateChanged() {
|
| kFocusControlState);
|
| }
|
|
|
| -void ContainerNode::SetFocused(bool received) {
|
| +void ContainerNode::SetFocused(bool received, WebFocusType focus_type) {
|
| // Recurse up author shadow trees to mark shadow hosts if it matches :focus.
|
| // TODO(kochi): Handle UA shadows which marks multiple nodes as focused such
|
| // as <input type="date"> the same way as author shadow.
|
| if (ShadowRoot* root = ContainingShadowRoot()) {
|
| if (root->GetType() != ShadowRootType::kUserAgent)
|
| - OwnerShadowHost()->SetFocused(received);
|
| + OwnerShadowHost()->SetFocused(received, focus_type);
|
| }
|
|
|
| // If this is an author shadow host and indirectly focused (has focused
|
| @@ -1048,7 +1048,7 @@ void ContainerNode::SetFocused(bool received) {
|
| if (IsFocused() == received)
|
| return;
|
|
|
| - Node::SetFocused(received);
|
| + Node::SetFocused(received, focus_type);
|
|
|
| FocusStateChanged();
|
|
|
|
|