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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix 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/HTMLOListElement.cpp ('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 14 matching lines...) Expand all
25 25
26 #include "core/html/FormAssociatedElement.h" 26 #include "core/html/FormAssociatedElement.h"
27 #include "core/html/HTMLPlugInImageElement.h" 27 #include "core/html/HTMLPlugInImageElement.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 class HTMLFormElement; 31 class HTMLFormElement;
32 32
33 class HTMLObjectElement FINAL : public HTMLPlugInImageElement, public FormAssoci atedElement { 33 class HTMLObjectElement FINAL : public HTMLPlugInImageElement, public FormAssoci atedElement {
34 public: 34 public:
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 void renderFallbackContent();
(...skipping 11 matching lines...) Expand all
57 virtual String validationMessage() const OVERRIDE { return String(); } 57 virtual String validationMessage() const OVERRIDE { return String(); }
58 bool checkValidity() { return true; } 58 bool checkValidity() { return true; }
59 virtual void setCustomValidity(const String&) OVERRIDE { } 59 virtual void setCustomValidity(const String&) OVERRIDE { }
60 60
61 using Node::ref; 61 using Node::ref;
62 using Node::deref; 62 using Node::deref;
63 63
64 virtual bool canContainRangeEndPoint() const { return useFallbackContent(); } 64 virtual bool canContainRangeEndPoint() const { return useFallbackContent(); }
65 65
66 private: 66 private:
67 HTMLObjectElement(const QualifiedName&, Document*, HTMLFormElement*, bool cr eatedByParser); 67 HTMLObjectElement(const QualifiedName&, Document&, HTMLFormElement*, bool cr eatedByParser);
68 68
69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
70 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 70 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
71 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 71 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
72 72
73 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 73 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
74 virtual void removedFrom(ContainerNode*) OVERRIDE; 74 virtual void removedFrom(ContainerNode*) OVERRIDE;
75 75
76 virtual bool rendererIsNeeded(const NodeRenderingContext&); 76 virtual bool rendererIsNeeded(const NodeRenderingContext&);
77 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; 77 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 inline HTMLObjectElement* toHTMLObjectElement(Node* node) 114 inline HTMLObjectElement* toHTMLObjectElement(Node* node)
115 { 115 {
116 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::object Tag)); 116 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::object Tag));
117 return static_cast<HTMLObjectElement*>(node); 117 return static_cast<HTMLObjectElement*>(node);
118 } 118 }
119 119
120 } 120 }
121 121
122 #endif 122 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOListElement.cpp ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698