Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(872)

Unified Diff: Source/core/html/DocumentNameCollection.cpp

Issue 1291723004: Remove all support for <applet> handling in Chrome. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hopefully all the tests Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/DocumentNameCollection.cpp
diff --git a/Source/core/html/DocumentNameCollection.cpp b/Source/core/html/DocumentNameCollection.cpp
index 2bf70b238e8622d41862543d376e22800bbd35f0..664b0f1d0802c17985607acd19e11b55f1dd602c 100644
--- a/Source/core/html/DocumentNameCollection.cpp
+++ b/Source/core/html/DocumentNameCollection.cpp
@@ -17,12 +17,12 @@ DocumentNameCollection::DocumentNameCollection(ContainerNode& document, const At
bool DocumentNameCollection::elementMatches(const HTMLElement& element) const
{
- // Match images, forms, applets, embeds, objects and iframes by name,
- // applets and object by id, and images by id but only if they have
+ // Match images, forms, embeds, objects and iframes by name,
+ // object by id, and images by id but only if they have
// a name attribute (this very strange rule matches IE)
if (isHTMLFormElement(element) || isHTMLIFrameElement(element) || (isHTMLEmbedElement(element) && toHTMLEmbedElement(element).isExposed()))
return element.getNameAttribute() == m_name;
- if (isHTMLAppletElement(element) || (isHTMLObjectElement(element) && toHTMLObjectElement(element).isExposed()))
+ if (isHTMLObjectElement(element) && toHTMLObjectElement(element).isExposed())
return element.getNameAttribute() == m_name || element.getIdAttribute() == m_name;
if (isHTMLImageElement(element))
return element.getNameAttribute() == m_name || (element.getIdAttribute() == m_name && element.hasName());

Powered by Google App Engine
This is Rietveld 408576698