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

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

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
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, 2008, 2009, 2011 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011 Apple Inc. All rights reserv ed.
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 20 matching lines...) Expand all
31 #include "core/html/HTMLObjectElement.h" 31 #include "core/html/HTMLObjectElement.h"
32 #include "core/html/PluginDocument.h" 32 #include "core/html/PluginDocument.h"
33 #include "core/html/parser/HTMLParserIdioms.h" 33 #include "core/html/parser/HTMLParserIdioms.h"
34 #include "core/rendering/RenderEmbeddedObject.h" 34 #include "core/rendering/RenderEmbeddedObject.h"
35 #include "core/rendering/RenderWidget.h" 35 #include "core/rendering/RenderWidget.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 using namespace HTMLNames; 39 using namespace HTMLNames;
40 40
41 inline HTMLEmbedElement::HTMLEmbedElement(const QualifiedName& tagName, Document & document, bool createdByParser) 41 inline HTMLEmbedElement::HTMLEmbedElement(Document& document, bool createdByPars er)
42 : HTMLPlugInElement(tagName, document, createdByParser, ShouldPreferPlugInsF orImages) 42 : HTMLPlugInElement(embedTag, document, createdByParser, ShouldPreferPlugIns ForImages)
43 { 43 {
44 ASSERT(hasTagName(embedTag));
45 ScriptWrappable::init(this); 44 ScriptWrappable::init(this);
46 } 45 }
47 46
48 PassRefPtr<HTMLEmbedElement> HTMLEmbedElement::create(const QualifiedName& tagNa me, Document& document, bool createdByParser) 47 PassRefPtr<HTMLEmbedElement> HTMLEmbedElement::create(Document& document, bool c reatedByParser)
49 { 48 {
50 return adoptRef(new HTMLEmbedElement(tagName, document, createdByParser)); 49 return adoptRef(new HTMLEmbedElement(document, createdByParser));
51 }
52
53 PassRefPtr<HTMLEmbedElement> HTMLEmbedElement::create(Document& document)
54 {
55 return create(embedTag, document, false);
56 } 50 }
57 51
58 static inline RenderWidget* findWidgetRenderer(const Node* n) 52 static inline RenderWidget* findWidgetRenderer(const Node* n)
59 { 53 {
60 if (!n->renderer()) 54 if (!n->renderer())
61 do 55 do
62 n = n->parentNode(); 56 n = n->parentNode();
63 while (n && !n->hasTagName(objectTag)); 57 while (n && !n->hasTagName(objectTag));
64 58
65 if (n && n->renderer() && n->renderer()->isWidget()) 59 if (n && n->renderer() && n->renderer()->isWidget())
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 205
212 addSubresourceURL(urls, document().completeURL(getAttribute(srcAttr))); 206 addSubresourceURL(urls, document().completeURL(getAttribute(srcAttr)));
213 } 207 }
214 208
215 bool HTMLEmbedElement::isInteractiveContent() const 209 bool HTMLEmbedElement::isInteractiveContent() const
216 { 210 {
217 return true; 211 return true;
218 } 212 }
219 213
220 } 214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698