| Index: Source/core/html/HTMLEmbedElement.cpp
|
| diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp
|
| index 69181adfb4bd83ffcfadd97fe4cf814ce0e1368e..6b90d4187988cc876aa6e62a7aa8aa3a649e8ecb 100644
|
| --- a/Source/core/html/HTMLEmbedElement.cpp
|
| +++ b/Source/core/html/HTMLEmbedElement.cpp
|
| @@ -214,4 +214,14 @@ bool HTMLEmbedElement::isInteractiveContent() const
|
| return true;
|
| }
|
|
|
| +bool HTMLEmbedElement::isExposed() const
|
| +{
|
| + // http://www.whatwg.org/specs/web-apps/current-work/#exposed
|
| + for (Node* ancestor = parentNode(); ancestor; ancestor = ancestor->parentNode()) {
|
| + if (ancestor->hasTagName(objectTag) && toHTMLObjectElement(ancestor)->isExposed())
|
| + return false;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| }
|
|
|