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

Side by Side Diff: Source/core/html/HTMLFormControlElement.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/HTMLFontElement.cpp ('k') | Source/core/html/HTMLFormControlElement.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 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 bool hasAutofocused() { return m_hasAutofocused; } 100 bool hasAutofocused() { return m_hasAutofocused; }
101 void setAutofocused() { m_hasAutofocused = true; } 101 void setAutofocused() { m_hasAutofocused = true; }
102 102
103 static HTMLFormControlElement* enclosingFormControlElement(Node*); 103 static HTMLFormControlElement* enclosingFormControlElement(Node*);
104 104
105 using Node::ref; 105 using Node::ref;
106 using Node::deref; 106 using Node::deref;
107 107
108 protected: 108 protected:
109 HTMLFormControlElement(const QualifiedName& tagName, Document*, HTMLFormElem ent*); 109 HTMLFormControlElement(const QualifiedName& tagName, Document&, HTMLFormElem ent*);
110 110
111 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 111 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
112 virtual void requiredAttributeChanged(); 112 virtual void requiredAttributeChanged();
113 virtual void disabledAttributeChanged(); 113 virtual void disabledAttributeChanged();
114 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 114 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
115 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 115 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
116 virtual void removedFrom(ContainerNode*) OVERRIDE; 116 virtual void removedFrom(ContainerNode*) OVERRIDE;
117 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; 117 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE;
118 118
119 virtual bool supportsFocus() const OVERRIDE; 119 virtual bool supportsFocus() const OVERRIDE;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 inline HTMLFormControlElement* toHTMLFormControlElement(FormAssociatedElement* c ontrol) 180 inline HTMLFormControlElement* toHTMLFormControlElement(FormAssociatedElement* c ontrol)
181 { 181 {
182 ASSERT_WITH_SECURITY_IMPLICATION(!control || control->isFormControlElement() ); 182 ASSERT_WITH_SECURITY_IMPLICATION(!control || control->isFormControlElement() );
183 return static_cast<HTMLFormControlElement*>(control); 183 return static_cast<HTMLFormControlElement*>(control);
184 } 184 }
185 185
186 } // namespace 186 } // namespace
187 187
188 #endif 188 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFontElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698