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

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

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/HTMLFieldSetElement.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 12 matching lines...) Expand all
23 23
24 #ifndef HTMLFormControlElement_h 24 #ifndef HTMLFormControlElement_h
25 #define HTMLFormControlElement_h 25 #define HTMLFormControlElement_h
26 26
27 #include "core/html/FormAssociatedElement.h" 27 #include "core/html/FormAssociatedElement.h"
28 #include "core/html/LabelableElement.h" 28 #include "core/html/LabelableElement.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class FormDataList; 32 class FormDataList;
33 class HTMLFieldSetElement;
34 class HTMLFormElement; 33 class HTMLFormElement;
35 class HTMLLegendElement; 34 class HTMLLegendElement;
36 class ValidationMessage; 35 class ValidationMessage;
37 class ValidityState; 36 class ValidityState;
38 37
39 // HTMLFormControlElement is the default implementation of FormAssociatedElement , 38 // HTMLFormControlElement is the default implementation of FormAssociatedElement ,
40 // and form-associated element implementations should use HTMLFormControlElement 39 // and form-associated element implementations should use HTMLFormControlElement
41 // unless there is a special reason. 40 // unless there is a special reason.
42 class HTMLFormControlElement : public LabelableElement, public FormAssociatedEle ment { 41 class HTMLFormControlElement : public LabelableElement, public FormAssociatedEle ment {
43 public: 42 public:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // This must be called when a validation constraint or control value is chan ged. 91 // This must be called when a validation constraint or control value is chan ged.
93 void setNeedsValidityCheck(); 92 void setNeedsValidityCheck();
94 virtual void setCustomValidity(const String&) OVERRIDE; 93 virtual void setCustomValidity(const String&) OVERRIDE;
95 94
96 bool isReadOnly() const { return m_isReadOnly; } 95 bool isReadOnly() const { return m_isReadOnly; }
97 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe adOnly; } 96 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe adOnly; }
98 97
99 bool hasAutofocused() { return m_hasAutofocused; } 98 bool hasAutofocused() { return m_hasAutofocused; }
100 void setAutofocused() { m_hasAutofocused = true; } 99 void setAutofocused() { m_hasAutofocused = true; }
101 100
102 static HTMLFormControlElement* enclosingFormControlElement(Node*); 101 static Result<HTMLFormControlElement> enclosingFormControlElement(Node*);
103 102
104 using Node::ref; 103 using Node::ref;
105 using Node::deref; 104 using Node::deref;
106 105
107 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 106 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
108 107
108 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE;
109
109 protected: 110 protected:
110 HTMLFormControlElement(const QualifiedName& tagName, Document*, HTMLFormElem ent*); 111 HTMLFormControlElement(const QualifiedName& tagName, Document*, HTMLFormElem ent*);
111 112
112 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 113 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
113 virtual void requiredAttributeChanged(); 114 virtual void requiredAttributeChanged();
114 virtual void disabledAttributeChanged(); 115 virtual void disabledAttributeChanged();
115 virtual void attach(); 116 virtual void attach();
116 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 117 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
117 virtual void removedFrom(ContainerNode*) OVERRIDE; 118 virtual void removedFrom(ContainerNode*) OVERRIDE;
118 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; 119 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 bool m_isValid : 1; 168 bool m_isValid : 1;
168 169
169 bool m_wasChangedSinceLastFormControlChangeEvent : 1; 170 bool m_wasChangedSinceLastFormControlChangeEvent : 1;
170 171
171 bool m_hasAutofocused : 1; 172 bool m_hasAutofocused : 1;
172 }; 173 };
173 174
174 } // namespace 175 } // namespace
175 176
176 #endif 177 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFieldSetElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698