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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 formKeyBuilder.append(signature); | 383 formKeyBuilder.append(signature); |
384 formKeyBuilder.append(" #"); | 384 formKeyBuilder.append(" #"); |
385 formKeyBuilder.appendNumber(nextIndex); | 385 formKeyBuilder.appendNumber(nextIndex); |
386 FormToKeyMap::AddResult addFormKeyresult = | 386 FormToKeyMap::AddResult addFormKeyresult = |
387 m_formToKeyMap.add(form, formKeyBuilder.toAtomicString()); | 387 m_formToKeyMap.add(form, formKeyBuilder.toAtomicString()); |
388 return addFormKeyresult.storedValue->value; | 388 return addFormKeyresult.storedValue->value; |
389 } | 389 } |
390 | 390 |
391 void FormKeyGenerator::willDeleteForm(HTMLFormElement* form) { | 391 void FormKeyGenerator::willDeleteForm(HTMLFormElement* form) { |
392 DCHECK(form); | 392 DCHECK(form); |
393 m_formToKeyMap.remove(form); | 393 m_formToKeyMap.erase(form); |
394 } | 394 } |
395 | 395 |
396 // ---------------------------------------------------------------------------- | 396 // ---------------------------------------------------------------------------- |
397 | 397 |
398 DocumentState* DocumentState::create() { | 398 DocumentState* DocumentState::create() { |
399 return new DocumentState; | 399 return new DocumentState; |
400 } | 400 } |
401 | 401 |
402 DEFINE_TRACE(DocumentState) { | 402 DEFINE_TRACE(DocumentState) { |
403 visitor->trace(m_formControls); | 403 visitor->trace(m_formControls); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 HTMLFormControlElementWithState& control) { | 570 HTMLFormControlElementWithState& control) { |
571 m_documentState->addControl(&control); | 571 m_documentState->addControl(&control); |
572 } | 572 } |
573 | 573 |
574 void FormController::unregisterStatefulFormControl( | 574 void FormController::unregisterStatefulFormControl( |
575 HTMLFormControlElementWithState& control) { | 575 HTMLFormControlElementWithState& control) { |
576 m_documentState->removeControl(&control); | 576 m_documentState->removeControl(&control); |
577 } | 577 } |
578 | 578 |
579 } // namespace blink | 579 } // namespace blink |
OLD | NEW |