Index: Source/core/html/HTMLEmbedElement.cpp |
diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp |
index cb1fe1d71ec64eacda0d67bb077300b1257faf3d..0af7cd3c8b04d34b5db2723133e2e6e1d0db5fa2 100644 |
--- a/Source/core/html/HTMLEmbedElement.cpp |
+++ b/Source/core/html/HTMLEmbedElement.cpp |
@@ -211,4 +211,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; |
+} |
+ |
} |