| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 } | 287 } |
| 288 | 288 |
| 289 // ---------------------------------------------------------------------------- | 289 // ---------------------------------------------------------------------------- |
| 290 | 290 |
| 291 class FormKeyGenerator FINAL : public NoBaseWillBeGarbageCollectedFinalized<Form
KeyGenerator> { | 291 class FormKeyGenerator FINAL : public NoBaseWillBeGarbageCollectedFinalized<Form
KeyGenerator> { |
| 292 WTF_MAKE_NONCOPYABLE(FormKeyGenerator); | 292 WTF_MAKE_NONCOPYABLE(FormKeyGenerator); |
| 293 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 293 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 294 | 294 |
| 295 public: | 295 public: |
| 296 static PassOwnPtrWillBeRawPtr<FormKeyGenerator> create() { return adoptPtrWi
llBeNoop(new FormKeyGenerator); } | 296 static PassOwnPtrWillBeRawPtr<FormKeyGenerator> create() { return adoptPtrWi
llBeNoop(new FormKeyGenerator); } |
| 297 void trace(Visitor* visitor) | 297 void trace(Visitor* visitor) { visitor->trace(m_formToKeyMap); } |
| 298 { | |
| 299 #if ENABLE(OILPAN) | |
| 300 visitor->trace(m_formToKeyMap); | |
| 301 #endif | |
| 302 } | |
| 303 const AtomicString& formKey(const HTMLFormControlElementWithState&); | 298 const AtomicString& formKey(const HTMLFormControlElementWithState&); |
| 304 void willDeleteForm(HTMLFormElement*); | 299 void willDeleteForm(HTMLFormElement*); |
| 305 | 300 |
| 306 private: | 301 private: |
| 307 FormKeyGenerator() { } | 302 FormKeyGenerator() { } |
| 308 | 303 |
| 309 typedef WillBeHeapHashMap<RawPtrWillBeMember<HTMLFormElement>, AtomicString>
FormToKeyMap; | 304 typedef WillBeHeapHashMap<RawPtrWillBeMember<HTMLFormElement>, AtomicString>
FormToKeyMap; |
| 310 typedef HashMap<String, unsigned> FormSignatureToNextIndexMap; | 305 typedef HashMap<String, unsigned> FormSignatureToNextIndexMap; |
| 311 FormToKeyMap m_formToKeyMap; | 306 FormToKeyMap m_formToKeyMap; |
| 312 FormSignatureToNextIndexMap m_formSignatureToNextIndexMap; | 307 FormSignatureToNextIndexMap m_formSignatureToNextIndexMap; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 { | 555 { |
| 561 m_documentState->addControl(&control); | 556 m_documentState->addControl(&control); |
| 562 } | 557 } |
| 563 | 558 |
| 564 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) | 559 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) |
| 565 { | 560 { |
| 566 m_documentState->removeControl(&control); | 561 m_documentState->removeControl(&control); |
| 567 } | 562 } |
| 568 | 563 |
| 569 } // namespace blink | 564 } // namespace blink |
| OLD | NEW |