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

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

Issue 1291723004: Remove all support for <applet> handling in Chrome. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « Source/core/html/HTMLAppletElement.idl ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCollection.cpp
diff --git a/Source/core/html/HTMLCollection.cpp b/Source/core/html/HTMLCollection.cpp
index 6df9dec6fd7630b57267711a32b59abab408276c..486803db02728402d34962815d7ad3f280efa84a 100644
--- a/Source/core/html/HTMLCollection.cpp
+++ b/Source/core/html/HTMLCollection.cpp
@@ -228,7 +228,7 @@ static inline bool isMatchingHTMLElement(const HTMLCollection& htmlCollection, c
case MapAreas:
return element.hasTagName(areaTag);
case DocApplets:
- return element.hasTagName(appletTag) || (isHTMLObjectElement(element) && toHTMLObjectElement(element).containsJavaApplet());
+ return isHTMLObjectElement(element) && toHTMLObjectElement(element).containsJavaApplet();
case DocEmbeds:
return element.hasTagName(embedTag);
case DocLinks:
@@ -311,7 +311,6 @@ static inline bool nameShouldBeVisibleInDocumentAll(const HTMLElement& element)
// The document.all collection returns only certain types of elements by name,
// although it returns any type of element by id.
return element.hasTagName(aTag)
- || element.hasTagName(appletTag)
|| element.hasTagName(areaTag)
|| element.hasTagName(embedTag)
|| element.hasTagName(formTag)
« no previous file with comments | « Source/core/html/HTMLAppletElement.idl ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698