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

Side by Side Diff: Source/core/html/HTMLFieldSetElement.cpp

Issue 270823004: Oilpan: Prepare to move FormAssociatedElement to Oilpan heap, part 2. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 , m_documentVersion(0) 42 , m_documentVersion(0)
43 { 43 {
44 ScriptWrappable::init(this); 44 ScriptWrappable::init(this);
45 } 45 }
46 46
47 PassRefPtrWillBeRawPtr<HTMLFieldSetElement> HTMLFieldSetElement::create(Document & document, HTMLFormElement* form) 47 PassRefPtrWillBeRawPtr<HTMLFieldSetElement> HTMLFieldSetElement::create(Document & document, HTMLFormElement* form)
48 { 48 {
49 return adoptRefWillBeRefCountedGarbageCollected(new HTMLFieldSetElement(docu ment, form)); 49 return adoptRefWillBeRefCountedGarbageCollected(new HTMLFieldSetElement(docu ment, form));
50 } 50 }
51 51
52 void HTMLFieldSetElement::trace(Visitor* visitor)
53 {
54 #if ENABLE(OILPAN)
55 visitor->trace(m_associatedElements);
56 #endif
57 HTMLFormControlElement::trace(visitor);
58 }
59
52 void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base) 60 void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base)
53 { 61 {
54 for (Element* element = ElementTraversal::firstWithin(base); element; elemen t = ElementTraversal::next(*element, &base)) { 62 for (Element* element = ElementTraversal::firstWithin(base); element; elemen t = ElementTraversal::next(*element, &base)) {
55 if (element->isFormControlElement()) 63 if (element->isFormControlElement())
56 toHTMLFormControlElement(element)->ancestorDisabledStateWasChanged() ; 64 toHTMLFormControlElement(element)->ancestorDisabledStateWasChanged() ;
57 } 65 }
58 } 66 }
59 67
60 void HTMLFieldSetElement::disabledAttributeChanged() 68 void HTMLFieldSetElement::disabledAttributeChanged()
61 { 69 {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 continue; 121 continue;
114 } 122 }
115 123
116 if (!element->isFormControlElement()) 124 if (!element->isFormControlElement())
117 continue; 125 continue;
118 126
119 m_associatedElements.append(toHTMLFormControlElement(element)); 127 m_associatedElements.append(toHTMLFormControlElement(element));
120 } 128 }
121 } 129 }
122 130
123 const Vector<FormAssociatedElement*>& HTMLFieldSetElement::associatedElements() const 131 const FormAssociatedElement::List& HTMLFieldSetElement::associatedElements() con st
124 { 132 {
125 refreshElementsIfNeeded(); 133 refreshElementsIfNeeded();
126 return m_associatedElements; 134 return m_associatedElements;
127 } 135 }
128 136
129 } // namespace 137 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698