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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 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/HTMLObjectElement.h ('k') | Source/core/html/HTMLOptGroupElement.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "core/page/Settings.h" 43 #include "core/page/Settings.h"
44 #include "core/platform/MIMETypeRegistry.h" 44 #include "core/platform/MIMETypeRegistry.h"
45 #include "core/platform/Widget.h" 45 #include "core/platform/Widget.h"
46 #include "core/plugins/PluginView.h" 46 #include "core/plugins/PluginView.h"
47 #include "core/rendering/RenderEmbeddedObject.h" 47 #include "core/rendering/RenderEmbeddedObject.h"
48 48
49 namespace WebCore { 49 namespace WebCore {
50 50
51 using namespace HTMLNames; 51 using namespace HTMLNames;
52 52
53 inline HTMLObjectElement::HTMLObjectElement(const QualifiedName& tagName, Docume nt* document, HTMLFormElement* form, bool createdByParser) 53 inline HTMLObjectElement::HTMLObjectElement(const QualifiedName& tagName, Docume nt& document, HTMLFormElement* form, bool createdByParser)
54 : HTMLPlugInImageElement(tagName, document, createdByParser, ShouldNotPrefer PlugInsForImages) 54 : HTMLPlugInImageElement(tagName, document, createdByParser, ShouldNotPrefer PlugInsForImages)
55 , m_docNamedItem(true) 55 , m_docNamedItem(true)
56 , m_useFallbackContent(false) 56 , m_useFallbackContent(false)
57 { 57 {
58 ASSERT(hasTagName(objectTag)); 58 ASSERT(hasTagName(objectTag));
59 setForm(form ? form : findFormAncestor()); 59 setForm(form ? form : findFormAncestor());
60 ScriptWrappable::init(this); 60 ScriptWrappable::init(this);
61 } 61 }
62 62
63 inline HTMLObjectElement::~HTMLObjectElement() 63 inline HTMLObjectElement::~HTMLObjectElement()
64 { 64 {
65 } 65 }
66 66
67 PassRefPtr<HTMLObjectElement> HTMLObjectElement::create(const QualifiedName& tag Name, Document* document, HTMLFormElement* form, bool createdByParser) 67 PassRefPtr<HTMLObjectElement> HTMLObjectElement::create(const QualifiedName& tag Name, Document& document, HTMLFormElement* form, bool createdByParser)
68 { 68 {
69 return adoptRef(new HTMLObjectElement(tagName, document, form, createdByPars er)); 69 return adoptRef(new HTMLObjectElement(tagName, document, form, createdByPars er));
70 } 70 }
71 71
72 RenderWidget* HTMLObjectElement::existingRenderWidget() const 72 RenderWidget* HTMLObjectElement::existingRenderWidget() const
73 { 73 {
74 return renderPart(); // This will return 0 if the renderer is not a RenderPa rt. 74 return renderPart(); // This will return 0 if the renderer is not a RenderPa rt.
75 } 75 }
76 76
77 bool HTMLObjectElement::isPresentationAttribute(const QualifiedName& name) const 77 bool HTMLObjectElement::isPresentationAttribute(const QualifiedName& name) const
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 encoding.appendData(name(), value); 502 encoding.appendData(name(), value);
503 return true; 503 return true;
504 } 504 }
505 505
506 HTMLFormElement* HTMLObjectElement::virtualForm() const 506 HTMLFormElement* HTMLObjectElement::virtualForm() const
507 { 507 {
508 return FormAssociatedElement::form(); 508 return FormAssociatedElement::form();
509 } 509 }
510 510
511 } 511 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.h ('k') | Source/core/html/HTMLOptGroupElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698