| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 const Vector<FileChooserFileInfo>& selectedFiles = HTMLInputElement:
:filesFromFileInputFormControlState(*queIterator); | 281 const Vector<FileChooserFileInfo>& selectedFiles = HTMLInputElement:
:filesFromFileInputFormControlState(*queIterator); |
| 282 for (size_t i = 0; i < selectedFiles.size(); ++i) | 282 for (size_t i = 0; i < selectedFiles.size(); ++i) |
| 283 toReturn.append(selectedFiles[i].path); | 283 toReturn.append(selectedFiles[i].path); |
| 284 } | 284 } |
| 285 } | 285 } |
| 286 return toReturn; | 286 return toReturn; |
| 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) |
| 298 { | 298 { |
| 299 #if ENABLE(OILPAN) | 299 #if ENABLE(OILPAN) |
| 300 visitor->trace(m_formToKeyMap); | 300 visitor->trace(m_formToKeyMap); |
| 301 #endif | 301 #endif |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 { | 560 { |
| 561 m_documentState->addControl(&control); | 561 m_documentState->addControl(&control); |
| 562 } | 562 } |
| 563 | 563 |
| 564 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) | 564 void FormController::unregisterStatefulFormControl(HTMLFormControlElementWithSta
te& control) |
| 565 { | 565 { |
| 566 m_documentState->removeControl(&control); | 566 m_documentState->removeControl(&control); |
| 567 } | 567 } |
| 568 | 568 |
| 569 } // namespace blink | 569 } // namespace blink |
| OLD | NEW |