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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 26 matching lines...) Expand all
37 37
38 namespace blink { 38 namespace blink {
39 39
40 using namespace HTMLNames; 40 using namespace HTMLNames;
41 41
42 inline HTMLEmbedElement::HTMLEmbedElement(Document& document, bool createdByPars er) 42 inline HTMLEmbedElement::HTMLEmbedElement(Document& document, bool createdByPars er)
43 : HTMLPlugInElement(embedTag, document, createdByParser, ShouldPreferPlugIns ForImages) 43 : HTMLPlugInElement(embedTag, document, createdByParser, ShouldPreferPlugIns ForImages)
44 { 44 {
45 } 45 }
46 46
47 PassRefPtrWillBeRawPtr<HTMLEmbedElement> HTMLEmbedElement::create(Document& docu ment, bool createdByParser) 47 RawPtr<HTMLEmbedElement> HTMLEmbedElement::create(Document& document, bool creat edByParser)
48 { 48 {
49 RefPtrWillBeRawPtr<HTMLEmbedElement> element = adoptRefWillBeNoop(new HTMLEm bedElement(document, createdByParser)); 49 RawPtr<HTMLEmbedElement> element = new HTMLEmbedElement(document, createdByP arser);
50 element->ensureUserAgentShadowRoot(); 50 element->ensureUserAgentShadowRoot();
51 return element.release(); 51 return element.release();
52 } 52 }
53 53
54 static inline LayoutPart* findPartLayoutObject(const Node* n) 54 static inline LayoutPart* findPartLayoutObject(const Node* n)
55 { 55 {
56 if (!n->layoutObject()) 56 if (!n->layoutObject())
57 n = Traversal<HTMLObjectElement>::firstAncestor(*n); 57 n = Traversal<HTMLObjectElement>::firstAncestor(*n);
58 58
59 if (n && n->layoutObject() && n->layoutObject()->isLayoutPart()) 59 if (n && n->layoutObject() && n->layoutObject()->isLayoutPart())
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Note these pass m_url and m_serviceType to allow better code sharing with 136 // Note these pass m_url and m_serviceType to allow better code sharing with
137 // <object> which modifies url and serviceType before calling these. 137 // <object> which modifies url and serviceType before calling these.
138 if (!allowedToLoadFrameURL(m_url)) 138 if (!allowedToLoadFrameURL(m_url))
139 return; 139 return;
140 140
141 // FIXME: These should be joined into a PluginParameters class. 141 // FIXME: These should be joined into a PluginParameters class.
142 Vector<String> paramNames; 142 Vector<String> paramNames;
143 Vector<String> paramValues; 143 Vector<String> paramValues;
144 parametersForPlugin(paramNames, paramValues); 144 parametersForPlugin(paramNames, paramValues);
145 145
146 RefPtrWillBeRawPtr<HTMLEmbedElement> protect(this); // Loading the plugin mi ght remove us from the document. 146 RawPtr<HTMLEmbedElement> protect(this); // Loading the plugin might remove u s from the document.
147 147
148 // FIXME: Can we not have layoutObject here now that beforeload events are g one? 148 // FIXME: Can we not have layoutObject here now that beforeload events are g one?
149 if (!layoutObject()) 149 if (!layoutObject())
150 return; 150 return;
151 151
152 requestObject(m_url, m_serviceType, paramNames, paramValues); 152 requestObject(m_url, m_serviceType, paramNames, paramValues);
153 } 153 }
154 154
155 bool HTMLEmbedElement::layoutObjectIsNeeded(const ComputedStyle& style) 155 bool HTMLEmbedElement::layoutObjectIsNeeded(const ComputedStyle& style)
156 { 156 {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 { 201 {
202 // http://www.whatwg.org/specs/web-apps/current-work/#exposed 202 // http://www.whatwg.org/specs/web-apps/current-work/#exposed
203 for (HTMLObjectElement* object = Traversal<HTMLObjectElement>::firstAncestor (*this); object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) { 203 for (HTMLObjectElement* object = Traversal<HTMLObjectElement>::firstAncestor (*this); object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) {
204 if (object->isExposed()) 204 if (object->isExposed())
205 return false; 205 return false;
206 } 206 }
207 return true; 207 return true;
208 } 208 }
209 209
210 } // namespace blink 210 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLEmbedElement.h ('k') | third_party/WebKit/Source/core/html/HTMLFieldSetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698