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

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

Issue 106423005: Only 'form associated' elements have a potential form owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use 'error' instead of 'click' events when testing form ownership Created 7 years 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
« no previous file with comments | « Source/core/html/HTMLLabelElement.idl ('k') | Source/core/html/HTMLObjectElement.cpp » ('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 * 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 19 matching lines...) Expand all
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 public: 34 public:
35 static PassRefPtr<HTMLObjectElement> create(Document&, HTMLFormElement*, boo l createdByParser); 35 static PassRefPtr<HTMLObjectElement> create(Document&, HTMLFormElement*, boo l createdByParser);
36 virtual ~HTMLObjectElement(); 36 virtual ~HTMLObjectElement();
37 37
38 const String& classId() const { return m_classId; } 38 const String& classId() const { return m_classId; }
39 39
40 virtual HTMLFormElement* formOwner() const OVERRIDE;
41
40 bool containsJavaApplet() const; 42 bool containsJavaApplet() const;
41 43
42 virtual bool useFallbackContent() const OVERRIDE; 44 virtual bool useFallbackContent() const OVERRIDE;
43 virtual void renderFallbackContent() OVERRIDE; 45 virtual void renderFallbackContent() OVERRIDE;
44 46
45 virtual bool isFormControlElement() const { return false; } 47 virtual bool isFormControlElement() const { return false; }
46 48
47 virtual bool isEnumeratable() const { return true; } 49 virtual bool isEnumeratable() const { return true; }
48 virtual bool isInteractiveContent() const OVERRIDE; 50 virtual bool isInteractiveContent() const OVERRIDE;
49 virtual bool appendFormData(FormDataList&, bool); 51 virtual bool appendFormData(FormDataList&, bool);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 96
95 // FIXME: This function should not deal with url or serviceType 97 // FIXME: This function should not deal with url or serviceType
96 // so that we can better share code between <object> and <embed>. 98 // so that we can better share code between <object> and <embed>.
97 void parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramVa lues, String& url, String& serviceType); 99 void parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramVa lues, String& url, String& serviceType);
98 100
99 bool shouldAllowQuickTimeClassIdQuirk(); 101 bool shouldAllowQuickTimeClassIdQuirk();
100 bool hasValidClassId(); 102 bool hasValidClassId();
101 103
102 virtual void refFormAssociatedElement() { ref(); } 104 virtual void refFormAssociatedElement() { ref(); }
103 virtual void derefFormAssociatedElement() { deref(); } 105 virtual void derefFormAssociatedElement() { deref(); }
104 virtual HTMLFormElement* virtualForm() const;
105 106
106 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } 107 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; }
107 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true; } 108 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true; }
108 109
109 String m_classId; 110 String m_classId;
110 bool m_useFallbackContent : 1; 111 bool m_useFallbackContent : 1;
111 }; 112 };
112 113
113 DEFINE_NODE_TYPE_CASTS(HTMLObjectElement, hasTagName(HTMLNames::objectTag)); 114 DEFINE_NODE_TYPE_CASTS(HTMLObjectElement, hasTagName(HTMLNames::objectTag));
114 115
(...skipping 13 matching lines...) Expand all
128 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element); 129 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element);
129 // We need to assert after the cast because FormAssociatedElement doesn't 130 // We need to assert after the cast because FormAssociatedElement doesn't
130 // have hasTagName. 131 // have hasTagName.
131 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag)); 132 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag));
132 return objectElement; 133 return objectElement;
133 } 134 }
134 135
135 } 136 }
136 137
137 #endif 138 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLLabelElement.idl ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698