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

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

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list Created 6 years, 6 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/HTMLFormControlElement.h ('k') | Source/core/html/HTMLImageElement.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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 , m_isInResetFunction(false) 74 , m_isInResetFunction(false)
75 , m_wasDemoted(false) 75 , m_wasDemoted(false)
76 , m_pendingAutocompleteEventsQueue(GenericEventQueue::create(this)) 76 , m_pendingAutocompleteEventsQueue(GenericEventQueue::create(this))
77 { 77 {
78 ScriptWrappable::init(this); 78 ScriptWrappable::init(this);
79 } 79 }
80 80
81 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLFormElement::create(Document& docume nt) 81 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLFormElement::create(Document& docume nt)
82 { 82 {
83 UseCounter::count(document, UseCounter::FormElement); 83 UseCounter::count(document, UseCounter::FormElement);
84 return adoptRefWillBeRefCountedGarbageCollected(new HTMLFormElement(document )); 84 return adoptRefWillBeNoop(new HTMLFormElement(document));
85 } 85 }
86 86
87 HTMLFormElement::~HTMLFormElement() 87 HTMLFormElement::~HTMLFormElement()
88 { 88 {
89 #if !ENABLE(OILPAN) 89 #if !ENABLE(OILPAN)
90 // With Oilpan, either removedFrom is called or the document and 90 // With Oilpan, either removedFrom is called or the document and
91 // form controller are dead as well and there is no need to remove 91 // form controller are dead as well and there is no need to remove
92 // this form element from it. 92 // this form element from it.
93 document().formController().willDeleteForm(this); 93 document().formController().willDeleteForm(this);
94 #endif 94 #endif
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 } 799 }
800 800
801 void HTMLFormElement::setDemoted(bool demoted) 801 void HTMLFormElement::setDemoted(bool demoted)
802 { 802 {
803 if (demoted) 803 if (demoted)
804 UseCounter::count(document(), UseCounter::DemotedFormElement); 804 UseCounter::count(document(), UseCounter::DemotedFormElement);
805 m_wasDemoted = demoted; 805 m_wasDemoted = demoted;
806 } 806 }
807 807
808 } // namespace 808 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormControlElement.h ('k') | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698