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

Side by Side Diff: Source/core/html/forms/FormController.cpp

Issue 274023002: Oilpan: Avoid declaring a destructor for garbage collected ListHashSet. (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
« no previous file with comments | « Source/core/html/forms/FormController.h ('k') | Source/wtf/ListHashSet.h » ('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) 2006, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 m_formToKeyMap.remove(form); 372 m_formToKeyMap.remove(form);
373 } 373 }
374 374
375 // ---------------------------------------------------------------------------- 375 // ----------------------------------------------------------------------------
376 376
377 PassRefPtrWillBeRawPtr<DocumentState> DocumentState::create() 377 PassRefPtrWillBeRawPtr<DocumentState> DocumentState::create()
378 { 378 {
379 return adoptRefWillBeNoop(new DocumentState); 379 return adoptRefWillBeNoop(new DocumentState);
380 } 380 }
381 381
382 DocumentState::~DocumentState() 382 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED()
Erik Corry 2014/05/09 07:46:03 You didn't put the class name in the (). Does thi
383 {
384 }
385 383
386 void DocumentState::trace(Visitor* visitor) 384 void DocumentState::trace(Visitor* visitor)
387 { 385 {
388 visitor->trace(m_formControls); 386 visitor->trace(m_formControls);
389 } 387 }
390 388
391 void DocumentState::addControl(HTMLFormControlElementWithState* control) 389 void DocumentState::addControl(HTMLFormControlElementWithState* control)
392 { 390 {
393 ASSERT(!m_formControls.contains(control)); 391 ASSERT(!m_formControls.contains(control));
394 m_formControls.add(control); 392 m_formControls.add(control);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 { 548 {
551 m_documentState->addControl(&control); 549 m_documentState->addControl(&control);
552 } 550 }
553 551
554 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta te& control) 552 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta te& control)
555 { 553 {
556 m_documentState->removeControl(&control); 554 m_documentState->removeControl(&control);
557 } 555 }
558 556
559 } // namespace WebCore 557 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/forms/FormController.h ('k') | Source/wtf/ListHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698