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

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

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 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
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 26 matching lines...) Expand all
37 // working according to the spec. See: 37 // working according to the spec. See:
38 // https://html.spec.whatwg.org/multipage/embedded-content.html#the-object-eleme nt 38 // https://html.spec.whatwg.org/multipage/embedded-content.html#the-object-eleme nt
39 class CORE_EXPORT HTMLObjectElement final : public HTMLPlugInElement, 39 class CORE_EXPORT HTMLObjectElement final : public HTMLPlugInElement,
40 public ListedElement, 40 public ListedElement,
41 public FormAssociated { 41 public FormAssociated {
42 DEFINE_WRAPPERTYPEINFO(); 42 DEFINE_WRAPPERTYPEINFO();
43 USING_GARBAGE_COLLECTED_MIXIN(HTMLObjectElement); 43 USING_GARBAGE_COLLECTED_MIXIN(HTMLObjectElement);
44 44
45 public: 45 public:
46 static HTMLObjectElement* create(Document&, 46 static HTMLObjectElement* create(Document&,
47 HTMLFormElement*,
48 bool createdByParser); 47 bool createdByParser);
49 ~HTMLObjectElement() override; 48 ~HTMLObjectElement() override;
50 DECLARE_VIRTUAL_TRACE(); 49 DECLARE_VIRTUAL_TRACE();
51 50
52 const String& classId() const { return m_classId; } 51 const String& classId() const { return m_classId; }
53 52
54 HTMLFormElement* formOwner() const override; 53 HTMLFormElement* formOwner() const override;
55 54
56 bool containsJavaApplet() const; 55 bool containsJavaApplet() const;
57 56
(...skipping 17 matching lines...) Expand all
75 bool canContainRangeEndPoint() const override { return useFallbackContent(); } 74 bool canContainRangeEndPoint() const override { return useFallbackContent(); }
76 75
77 bool isExposed() const; 76 bool isExposed() const;
78 77
79 bool willUseFallbackContentAtLayout() const; 78 bool willUseFallbackContentAtLayout() const;
80 79
81 FormAssociated* toFormAssociatedOrNull() override { return this; }; 80 FormAssociated* toFormAssociatedOrNull() override { return this; };
82 void associateWith(HTMLFormElement*) override; 81 void associateWith(HTMLFormElement*) override;
83 82
84 private: 83 private:
85 HTMLObjectElement(Document&, HTMLFormElement*, bool createdByParser); 84 HTMLObjectElement(Document&, bool createdByParser);
86 85
87 void parseAttribute(const QualifiedName&, 86 void parseAttribute(const QualifiedName&,
88 const AtomicString&, 87 const AtomicString&,
89 const AtomicString&) override; 88 const AtomicString&) override;
90 bool isPresentationAttribute(const QualifiedName&) const override; 89 bool isPresentationAttribute(const QualifiedName&) const override;
91 void collectStyleForPresentationAttribute(const QualifiedName&, 90 void collectStyleForPresentationAttribute(const QualifiedName&,
92 const AtomicString&, 91 const AtomicString&,
93 MutableStylePropertySet*) override; 92 MutableStylePropertySet*) override;
94 93
95 InsertionNotificationRequest insertedInto(ContainerNode*) override; 94 InsertionNotificationRequest insertedInto(ContainerNode*) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 static_cast<const HTMLObjectElement&>(element); 158 static_cast<const HTMLObjectElement&>(element);
160 // We need to assert after the cast because ListedElement doesn't 159 // We need to assert after the cast because ListedElement doesn't
161 // have hasTagName. 160 // have hasTagName.
162 SECURITY_DCHECK(objectElement.hasTagName(HTMLNames::objectTag)); 161 SECURITY_DCHECK(objectElement.hasTagName(HTMLNames::objectTag));
163 return objectElement; 162 return objectElement;
164 } 163 }
165 164
166 } // namespace blink 165 } // namespace blink
167 166
168 #endif // HTMLObjectElement_h 167 #endif // HTMLObjectElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698