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

Side by Side Diff: Source/core/html/HTMLObjectElement.cpp

Issue 334713006: Use stricter typing for NodeLists throughout the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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/HTMLFormElement.cpp ('k') | Source/core/html/HTMLTableElement.h » ('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 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 10 matching lines...) Expand all
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 */ 22 */
23 23
24 #include "config.h" 24 #include "config.h"
25 #include "core/html/HTMLObjectElement.h" 25 #include "core/html/HTMLObjectElement.h"
26 26
27 #include "bindings/v8/ScriptEventListener.h" 27 #include "bindings/v8/ScriptEventListener.h"
28 #include "core/HTMLNames.h" 28 #include "core/HTMLNames.h"
29 #include "core/dom/Attribute.h" 29 #include "core/dom/Attribute.h"
30 #include "core/dom/ElementTraversal.h" 30 #include "core/dom/ElementTraversal.h"
31 #include "core/dom/TagCollection.h"
31 #include "core/dom/Text.h" 32 #include "core/dom/Text.h"
32 #include "core/dom/shadow/ShadowRoot.h" 33 #include "core/dom/shadow/ShadowRoot.h"
33 #include "core/fetch/ImageResource.h" 34 #include "core/fetch/ImageResource.h"
34 #include "core/html/FormDataList.h" 35 #include "core/html/FormDataList.h"
35 #include "core/html/HTMLCollection.h"
36 #include "core/html/HTMLDocument.h" 36 #include "core/html/HTMLDocument.h"
37 #include "core/html/HTMLImageLoader.h" 37 #include "core/html/HTMLImageLoader.h"
38 #include "core/html/HTMLMetaElement.h" 38 #include "core/html/HTMLMetaElement.h"
39 #include "core/html/HTMLParamElement.h" 39 #include "core/html/HTMLParamElement.h"
40 #include "core/html/parser/HTMLParserIdioms.h" 40 #include "core/html/parser/HTMLParserIdioms.h"
41 #include "core/frame/Settings.h" 41 #include "core/frame/Settings.h"
42 #include "core/plugins/PluginView.h" 42 #include "core/plugins/PluginView.h"
43 #include "core/rendering/RenderEmbeddedObject.h" 43 #include "core/rendering/RenderEmbeddedObject.h"
44 #include "platform/MIMETypeRegistry.h" 44 #include "platform/MIMETypeRegistry.h"
45 #include "platform/Widget.h" 45 #include "platform/Widget.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // ActiveX classid. Treat this classid as valid only if OS X Server's unique 235 // ActiveX classid. Treat this classid as valid only if OS X Server's unique
236 // 'generator' meta tag is present. Only apply this quirk if there is no 236 // 'generator' meta tag is present. Only apply this quirk if there is no
237 // fallback content, which ensures the quirk will disable itself if Wiki 237 // fallback content, which ensures the quirk will disable itself if Wiki
238 // Server is updated to generate an alternate embed tag as fallback content. 238 // Server is updated to generate an alternate embed tag as fallback content.
239 if (!document().settings() 239 if (!document().settings()
240 || !document().settings()->needsSiteSpecificQuirks() 240 || !document().settings()->needsSiteSpecificQuirks()
241 || hasFallbackContent() 241 || hasFallbackContent()
242 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD DC6B")) 242 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD DC6B"))
243 return false; 243 return false;
244 244
245 RefPtrWillBeRawPtr<HTMLCollection> metaElements = document().getElementsByTa gName(HTMLNames::metaTag.localName()); 245 RefPtrWillBeRawPtr<TagCollection> metaElements = document().getElementsByTag Name(HTMLNames::metaTag.localName());
246 unsigned length = metaElements->length(); 246 unsigned length = metaElements->length();
247 for (unsigned i = 0; i < length; ++i) { 247 for (unsigned i = 0; i < length; ++i) {
248 ASSERT(metaElements->item(i)->isHTMLElement()); 248 ASSERT(metaElements->item(i)->isHTMLElement());
249 HTMLMetaElement* metaElement = toHTMLMetaElement(metaElements->item(i)); 249 HTMLMetaElement* metaElement = toHTMLMetaElement(metaElements->item(i));
250 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement-> content().startsWith("Mac OS X Server Web Services Server", false)) 250 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement-> content().startsWith("Mac OS X Server Web Services Server", false))
251 return true; 251 return true;
252 } 252 }
253 253
254 return false; 254 return false;
255 } 255 }
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 { 489 {
490 return fastHasAttribute(usemapAttr); 490 return fastHasAttribute(usemapAttr);
491 } 491 }
492 492
493 bool HTMLObjectElement::useFallbackContent() const 493 bool HTMLObjectElement::useFallbackContent() const
494 { 494 {
495 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; 495 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent;
496 } 496 }
497 497
498 } 498 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/html/HTMLTableElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698