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

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

Issue 271533009: Oilpan: Prepare to move FormAssociatedElement to Oilpan heap, part 1. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
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) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 13 matching lines...) Expand all
24 #define HTMLObjectElement_h 24 #define HTMLObjectElement_h
25 25
26 #include "core/html/FormAssociatedElement.h" 26 #include "core/html/FormAssociatedElement.h"
27 #include "core/html/HTMLPlugInElement.h" 27 #include "core/html/HTMLPlugInElement.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 class HTMLFormElement; 31 class HTMLFormElement;
32 32
33 class HTMLObjectElement FINAL : public HTMLPlugInElement, public FormAssociatedE lement { 33 class HTMLObjectElement FINAL : public HTMLPlugInElement, public FormAssociatedE lement {
34 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLObjectElement);
35
34 public: 36 public:
35 static PassRefPtrWillBeRawPtr<HTMLObjectElement> create(Document&, HTMLFormE lement*, bool createdByParser); 37 static PassRefPtrWillBeRawPtr<HTMLObjectElement> create(Document&, HTMLFormE lement*, bool createdByParser);
36 virtual ~HTMLObjectElement(); 38 virtual ~HTMLObjectElement();
39 using HTMLPlugInElement::trace;
haraken 2014/05/08 07:24:45 Do you need this? I wonder why you need the using
tkent 2014/05/08 08:15:32 Ah, it's unnecessary. Probably I was confused dur
40 virtual void trace(Visitor*) OVERRIDE;
37 41
38 const String& classId() const { return m_classId; } 42 const String& classId() const { return m_classId; }
39 43
40 virtual HTMLFormElement* formOwner() const OVERRIDE; 44 virtual HTMLFormElement* formOwner() const OVERRIDE;
41 45
42 bool containsJavaApplet() const; 46 bool containsJavaApplet() const;
43 47
44 virtual bool useFallbackContent() const OVERRIDE; 48 virtual bool useFallbackContent() const OVERRIDE;
45 virtual void renderFallbackContent() OVERRIDE; 49 virtual void renderFallbackContent() OVERRIDE;
46 50
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 100
97 // FIXME: This function should not deal with url or serviceType 101 // FIXME: This function should not deal with url or serviceType
98 // so that we can better share code between <object> and <embed>. 102 // so that we can better share code between <object> and <embed>.
99 void parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramVa lues, String& url, String& serviceType); 103 void parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramVa lues, String& url, String& serviceType);
100 104
101 bool shouldAllowQuickTimeClassIdQuirk(); 105 bool shouldAllowQuickTimeClassIdQuirk();
102 bool hasValidClassId(); 106 bool hasValidClassId();
103 107
104 void reloadPluginOnAttributeChange(const QualifiedName&); 108 void reloadPluginOnAttributeChange(const QualifiedName&);
105 109
110 #if !ENABLE(OILPAN)
106 virtual void refFormAssociatedElement() OVERRIDE { ref(); } 111 virtual void refFormAssociatedElement() OVERRIDE { ref(); }
107 virtual void derefFormAssociatedElement() OVERRIDE { deref(); } 112 virtual void derefFormAssociatedElement() OVERRIDE { deref(); }
113 #endif
108 114
109 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } 115 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; }
110 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true; } 116 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true; }
111 117
112 String m_classId; 118 String m_classId;
113 bool m_useFallbackContent : 1; 119 bool m_useFallbackContent : 1;
114 }; 120 };
115 121
116 // Intentionally left unimplemented, template specialization needs to be provide d for specific 122 // Intentionally left unimplemented, template specialization needs to be provide d for specific
117 // return types. 123 // return types.
(...skipping 17 matching lines...) Expand all
135 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element); 141 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element);
136 // We need to assert after the cast because FormAssociatedElement doesn't 142 // We need to assert after the cast because FormAssociatedElement doesn't
137 // have hasTagName. 143 // have hasTagName.
138 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag)); 144 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag));
139 return objectElement; 145 return objectElement;
140 } 146 }
141 147
142 } 148 }
143 149
144 #endif 150 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698