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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 control->restoreFormControlState(state); | 501 control->restoreFormControlState(state); |
502 } | 502 } |
503 } | 503 } |
504 | 504 |
505 Vector<String> FormController::getReferencedFilePaths(const Vector<String>& stat
eVector) | 505 Vector<String> FormController::getReferencedFilePaths(const Vector<String>& stat
eVector) |
506 { | 506 { |
507 Vector<String> toReturn; | 507 Vector<String> toReturn; |
508 SavedFormStateMap map; | 508 SavedFormStateMap map; |
509 formStatesFromStateVector(stateVector, map); | 509 formStatesFromStateVector(stateVector, map); |
510 for (SavedFormStateMap::const_iterator it = map.begin(); it != map.end(); ++
it) | 510 for (SavedFormStateMap::const_iterator it = map.begin(); it != map.end(); ++
it) |
511 toReturn.append(it->value->getReferencedFilePaths()); | 511 toReturn.appendVector(it->value->getReferencedFilePaths()); |
512 return toReturn; | 512 return toReturn; |
513 } | 513 } |
514 | 514 |
515 void FormController::registerStatefulFormControl(HTMLFormControlElementWithState
& control) | 515 void FormController::registerStatefulFormControl(HTMLFormControlElementWithState
& control) |
516 { | 516 { |
517 ASSERT(!m_formControls.contains(&control)); | 517 ASSERT(!m_formControls.contains(&control)); |
518 m_formControls.add(&control); | 518 m_formControls.add(&control); |
519 } | 519 } |
520 | 520 |
521 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) | 521 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) |
522 { | 522 { |
523 RELEASE_ASSERT(m_formControls.contains(&control)); | 523 RELEASE_ASSERT(m_formControls.contains(&control)); |
524 m_formControls.remove(&control); | 524 m_formControls.remove(&control); |
525 } | 525 } |
526 | 526 |
527 } // namespace WebCore | 527 } // namespace WebCore |
OLD | NEW |