| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 9 * Copyright (C) 2010 Google Inc. All rights reserved. | 9 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| (...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 HeapVector<Member<HTMLOptionElement>> filtered; | 1579 HeapVector<Member<HTMLOptionElement>> filtered; |
| 1580 HTMLDataListElement* dataList = this->dataList(); | 1580 HTMLDataListElement* dataList = this->dataList(); |
| 1581 if (!dataList) | 1581 if (!dataList) |
| 1582 return filtered; | 1582 return filtered; |
| 1583 | 1583 |
| 1584 String value = innerEditorValue(); | 1584 String value = innerEditorValue(); |
| 1585 if (multiple() && type() == InputTypeNames::email) { | 1585 if (multiple() && type() == InputTypeNames::email) { |
| 1586 Vector<String> emails; | 1586 Vector<String> emails; |
| 1587 value.split(',', true, emails); | 1587 value.split(',', true, emails); |
| 1588 if (!emails.isEmpty()) | 1588 if (!emails.isEmpty()) |
| 1589 value = emails.last().stripWhiteSpace(); | 1589 value = emails.back().stripWhiteSpace(); |
| 1590 } | 1590 } |
| 1591 | 1591 |
| 1592 HTMLDataListOptionsCollection* options = dataList->options(); | 1592 HTMLDataListOptionsCollection* options = dataList->options(); |
| 1593 filtered.reserveCapacity(options->length()); | 1593 filtered.reserveCapacity(options->length()); |
| 1594 value = value.foldCase(); | 1594 value = value.foldCase(); |
| 1595 for (unsigned i = 0; i < options->length(); ++i) { | 1595 for (unsigned i = 0; i < options->length(); ++i) { |
| 1596 HTMLOptionElement* option = options->item(i); | 1596 HTMLOptionElement* option = options->item(i); |
| 1597 DCHECK(option); | 1597 DCHECK(option); |
| 1598 if (!value.isEmpty()) { | 1598 if (!value.isEmpty()) { |
| 1599 // Firefox shows OPTIONs with matched labels, Edge shows OPTIONs | 1599 // Firefox shows OPTIONs with matched labels, Edge shows OPTIONs |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1891 | 1891 |
| 1892 bool HTMLInputElement::hasFallbackContent() const { | 1892 bool HTMLInputElement::hasFallbackContent() const { |
| 1893 return m_inputTypeView->hasFallbackContent(); | 1893 return m_inputTypeView->hasFallbackContent(); |
| 1894 } | 1894 } |
| 1895 | 1895 |
| 1896 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { | 1896 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { |
| 1897 return m_inputType->setFilesFromPaths(paths); | 1897 return m_inputType->setFilesFromPaths(paths); |
| 1898 } | 1898 } |
| 1899 | 1899 |
| 1900 } // namespace blink | 1900 } // namespace blink |
| OLD | NEW |