OLD | NEW |
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 379 |
380 PassRefPtrWillBeRawPtr<DocumentState> DocumentState::create() | 380 PassRefPtrWillBeRawPtr<DocumentState> DocumentState::create() |
381 { | 381 { |
382 return adoptRefWillBeNoop(new DocumentState); | 382 return adoptRefWillBeNoop(new DocumentState); |
383 } | 383 } |
384 | 384 |
385 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DocumentState) | 385 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DocumentState) |
386 | 386 |
387 void DocumentState::trace(Visitor* visitor) | 387 void DocumentState::trace(Visitor* visitor) |
388 { | 388 { |
| 389 #if ENABLE(OILPAN) |
389 visitor->trace(m_formControls); | 390 visitor->trace(m_formControls); |
| 391 #endif |
390 } | 392 } |
391 | 393 |
392 void DocumentState::addControl(HTMLFormControlElementWithState* control) | 394 void DocumentState::addControl(HTMLFormControlElementWithState* control) |
393 { | 395 { |
394 ASSERT(!m_formControls.contains(control)); | 396 ASSERT(!m_formControls.contains(control)); |
395 m_formControls.add(control); | 397 m_formControls.add(control); |
396 } | 398 } |
397 | 399 |
398 void DocumentState::removeControl(HTMLFormControlElementWithState* control) | 400 void DocumentState::removeControl(HTMLFormControlElementWithState* control) |
399 { | 401 { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 { | 555 { |
554 m_documentState->addControl(&control); | 556 m_documentState->addControl(&control); |
555 } | 557 } |
556 | 558 |
557 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) | 559 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) |
558 { | 560 { |
559 m_documentState->removeControl(&control); | 561 m_documentState->removeControl(&control); |
560 } | 562 } |
561 | 563 |
562 } // namespace WebCore | 564 } // namespace WebCore |
OLD | NEW |