| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index 59e0cba45f063250b31e2a2163e13c282a11bf59..8eb8c19b2410213c17b090ca9e38f3d5d6fed2ce 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -934,6 +934,13 @@ bool HTMLElement::isInteractiveContent() const
|
| return false;
|
| }
|
|
|
| +HTMLMenuElement* HTMLElement::assignedContextMenu() const
|
| +{
|
| + if (HTMLMenuElement* menu = contextMenu())
|
| + return menu;
|
| +
|
| + return parentElement() && parentElement()->isHTMLElement() ? toHTMLElement(parentElement())->assignedContextMenu() : nullptr;
|
| +}
|
|
|
| HTMLMenuElement* HTMLElement::contextMenu() const
|
| {
|
|
|