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

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

Issue 24045002: Remove some HTMLObjectElement logic from FrameLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/HTMLFrameOwnerElement.h ('k') | Source/core/loader/DocumentLoader.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 24 matching lines...) Expand all
35 static PassRefPtr<HTMLObjectElement> create(const QualifiedName&, Document&, HTMLFormElement*, bool createdByParser); 35 static PassRefPtr<HTMLObjectElement> create(const QualifiedName&, Document&, HTMLFormElement*, bool createdByParser);
36 virtual ~HTMLObjectElement(); 36 virtual ~HTMLObjectElement();
37 37
38 bool isDocNamedItem() const { return m_docNamedItem; } 38 bool isDocNamedItem() const { return m_docNamedItem; }
39 39
40 const String& classId() const { return m_classId; } 40 const String& classId() const { return m_classId; }
41 41
42 bool containsJavaApplet() const; 42 bool containsJavaApplet() const;
43 43
44 virtual bool useFallbackContent() const { return m_useFallbackContent; } 44 virtual bool useFallbackContent() const { return m_useFallbackContent; }
45 void renderFallbackContent(); 45 virtual void renderFallbackContent() OVERRIDE;
46 46
47 // Implementations of FormAssociatedElement 47 // Implementations of FormAssociatedElement
48 HTMLFormElement* form() const { return FormAssociatedElement::form(); } 48 HTMLFormElement* form() const { return FormAssociatedElement::form(); }
49 49
50 virtual bool isFormControlElement() const { return false; } 50 virtual bool isFormControlElement() const { return false; }
51 51
52 virtual bool isEnumeratable() const { return true; } 52 virtual bool isEnumeratable() const { return true; }
53 virtual bool appendFormData(FormDataList&, bool); 53 virtual bool appendFormData(FormDataList&, bool);
54 54
55 virtual bool isObjectElement() const OVERRIDE { return true; }
56
55 // Implementations of constraint validation API. 57 // Implementations of constraint validation API.
56 // Note that the object elements are always barred from constraint validatio n. 58 // Note that the object elements are always barred from constraint validatio n.
57 virtual String validationMessage() const OVERRIDE { return String(); } 59 virtual String validationMessage() const OVERRIDE { return String(); }
58 bool checkValidity() { return true; } 60 bool checkValidity() { return true; }
59 virtual void setCustomValidity(const String&) OVERRIDE { } 61 virtual void setCustomValidity(const String&) OVERRIDE { }
60 62
61 using Node::ref; 63 using Node::ref;
62 using Node::deref; 64 using Node::deref;
63 65
64 virtual bool canContainRangeEndPoint() const { return useFallbackContent(); } 66 virtual bool canContainRangeEndPoint() const { return useFallbackContent(); }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 115
114 inline HTMLObjectElement* toHTMLObjectElement(Node* node) 116 inline HTMLObjectElement* toHTMLObjectElement(Node* node)
115 { 117 {
116 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::object Tag)); 118 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::object Tag));
117 return static_cast<HTMLObjectElement*>(node); 119 return static_cast<HTMLObjectElement*>(node);
118 } 120 }
119 121
120 } 122 }
121 123
122 #endif 124 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameOwnerElement.h ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698