| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 67e29c95e205616ad139015f196de9e2d76be911..0062ab37ad6142bec2e87584c301b5fc5b704988 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -2425,7 +2425,7 @@ void Element::updateFocusAppearance(SelectionBehaviorOnFocus selectionBehavior)
|
| {
|
| if (selectionBehavior == SelectionBehaviorOnFocus::None)
|
| return;
|
| - if (isRootEditableElement()) {
|
| + if (isRootEditableElement(*this)) {
|
| LocalFrame* frame = document().frame();
|
| if (!frame)
|
| return;
|
| @@ -2465,7 +2465,7 @@ bool Element::supportsFocus() const
|
| // it won't be focusable. Furthermore, supportsFocus cannot just return true
|
| // always or else tabIndex() will change for all HTML elements.
|
| return hasElementFlag(TabIndexWasSetExplicitly)
|
| - || isRootEditableElement()
|
| + || isRootEditableElement(*this)
|
| || (isShadowHost(this) && authorShadowRoot() && authorShadowRoot()->delegatesFocus())
|
| || supportsSpatialNavigationFocus();
|
| }
|
|
|