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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLAppletElement.idl ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003-2008, 2011, 2012, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2003-2008, 2011, 2012, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 return element.hasTagName(trTag); 221 return element.hasTagName(trTag);
222 case SelectOptions: 222 case SelectOptions:
223 return toHTMLOptionsCollection(htmlCollection).elementMatches(element); 223 return toHTMLOptionsCollection(htmlCollection).elementMatches(element);
224 case SelectedOptions: 224 case SelectedOptions:
225 return isHTMLOptionElement(element) && toHTMLOptionElement(element).sele cted(); 225 return isHTMLOptionElement(element) && toHTMLOptionElement(element).sele cted();
226 case DataListOptions: 226 case DataListOptions:
227 return toHTMLDataListOptionsCollection(htmlCollection).elementMatches(el ement); 227 return toHTMLDataListOptionsCollection(htmlCollection).elementMatches(el ement);
228 case MapAreas: 228 case MapAreas:
229 return element.hasTagName(areaTag); 229 return element.hasTagName(areaTag);
230 case DocApplets: 230 case DocApplets:
231 return element.hasTagName(appletTag) || (isHTMLObjectElement(element) && toHTMLObjectElement(element).containsJavaApplet()); 231 return isHTMLObjectElement(element) && toHTMLObjectElement(element).cont ainsJavaApplet();
232 case DocEmbeds: 232 case DocEmbeds:
233 return element.hasTagName(embedTag); 233 return element.hasTagName(embedTag);
234 case DocLinks: 234 case DocLinks:
235 return (element.hasTagName(aTag) || element.hasTagName(areaTag)) && elem ent.fastHasAttribute(hrefAttr); 235 return (element.hasTagName(aTag) || element.hasTagName(areaTag)) && elem ent.fastHasAttribute(hrefAttr);
236 case DocAnchors: 236 case DocAnchors:
237 return element.hasTagName(aTag) && element.fastHasAttribute(nameAttr); 237 return element.hasTagName(aTag) && element.fastHasAttribute(nameAttr);
238 case ClassCollectionType: 238 case ClassCollectionType:
239 case TagCollectionType: 239 case TagCollectionType:
240 case HTMLTagCollectionType: 240 case HTMLTagCollectionType:
241 case DocAll: 241 case DocAll:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 ASSERT_NOT_REACHED(); 304 ASSERT_NOT_REACHED();
305 return nullptr; 305 return nullptr;
306 } 306 }
307 307
308 static inline bool nameShouldBeVisibleInDocumentAll(const HTMLElement& element) 308 static inline bool nameShouldBeVisibleInDocumentAll(const HTMLElement& element)
309 { 309 {
310 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-in terfaces.html#dom-htmlallcollection-nameditem: 310 // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-in terfaces.html#dom-htmlallcollection-nameditem:
311 // The document.all collection returns only certain types of elements by nam e, 311 // The document.all collection returns only certain types of elements by nam e,
312 // although it returns any type of element by id. 312 // although it returns any type of element by id.
313 return element.hasTagName(aTag) 313 return element.hasTagName(aTag)
314 || element.hasTagName(appletTag)
315 || element.hasTagName(areaTag) 314 || element.hasTagName(areaTag)
316 || element.hasTagName(embedTag) 315 || element.hasTagName(embedTag)
317 || element.hasTagName(formTag) 316 || element.hasTagName(formTag)
318 || element.hasTagName(frameTag) 317 || element.hasTagName(frameTag)
319 || element.hasTagName(framesetTag) 318 || element.hasTagName(framesetTag)
320 || element.hasTagName(iframeTag) 319 || element.hasTagName(iframeTag)
321 || element.hasTagName(imgTag) 320 || element.hasTagName(imgTag)
322 || element.hasTagName(inputTag) 321 || element.hasTagName(inputTag)
323 || element.hasTagName(objectTag) 322 || element.hasTagName(objectTag)
324 || element.hasTagName(selectTag); 323 || element.hasTagName(selectTag);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 } 498 }
500 499
501 DEFINE_TRACE(HTMLCollection) 500 DEFINE_TRACE(HTMLCollection)
502 { 501 {
503 visitor->trace(m_namedItemCache); 502 visitor->trace(m_namedItemCache);
504 visitor->trace(m_collectionItemsCache); 503 visitor->trace(m_collectionItemsCache);
505 LiveNodeListBase::trace(visitor); 504 LiveNodeListBase::trace(visitor);
506 } 505 }
507 506
508 } // namespace blink 507 } // namespace blink
OLDNEW
« 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