| 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) { visitor->trace(m_formToKeyMap); } | 297     void trace(Visitor* visitor) | 
|  | 298     { | 
|  | 299 #if ENABLE(OILPAN) | 
|  | 300         visitor->trace(m_formToKeyMap); | 
|  | 301 #endif | 
|  | 302     } | 
| 298     const AtomicString& formKey(const HTMLFormControlElementWithState&); | 303     const AtomicString& formKey(const HTMLFormControlElementWithState&); | 
| 299     void willDeleteForm(HTMLFormElement*); | 304     void willDeleteForm(HTMLFormElement*); | 
| 300 | 305 | 
| 301 private: | 306 private: | 
| 302     FormKeyGenerator() { } | 307     FormKeyGenerator() { } | 
| 303 | 308 | 
| 304     typedef WillBeHeapHashMap<RawPtrWillBeMember<HTMLFormElement>, AtomicString>
      FormToKeyMap; | 309     typedef WillBeHeapHashMap<RawPtrWillBeMember<HTMLFormElement>, AtomicString>
      FormToKeyMap; | 
| 305     typedef HashMap<String, unsigned> FormSignatureToNextIndexMap; | 310     typedef HashMap<String, unsigned> FormSignatureToNextIndexMap; | 
| 306     FormToKeyMap m_formToKeyMap; | 311     FormToKeyMap m_formToKeyMap; | 
| 307     FormSignatureToNextIndexMap m_formSignatureToNextIndexMap; | 312     FormSignatureToNextIndexMap m_formSignatureToNextIndexMap; | 
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 555 { | 560 { | 
| 556     m_documentState->addControl(&control); | 561     m_documentState->addControl(&control); | 
| 557 } | 562 } | 
| 558 | 563 | 
| 559 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
     te& control) | 564 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
     te& control) | 
| 560 { | 565 { | 
| 561     m_documentState->removeControl(&control); | 566     m_documentState->removeControl(&control); | 
| 562 } | 567 } | 
| 563 | 568 | 
| 564 } // namespace blink | 569 } // namespace blink | 
| OLD | NEW | 
|---|