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 r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 { | 1478 { |
1479 if (!m_hasNonEmptyList) | 1479 if (!m_hasNonEmptyList) |
1480 return 0; | 1480 return 0; |
1481 | 1481 |
1482 if (!m_inputType->shouldRespectListAttribute()) | 1482 if (!m_inputType->shouldRespectListAttribute()) |
1483 return 0; | 1483 return 0; |
1484 | 1484 |
1485 Element* element = treeScope().getElementById(fastGetAttribute(listAttr)); | 1485 Element* element = treeScope().getElementById(fastGetAttribute(listAttr)); |
1486 if (!element) | 1486 if (!element) |
1487 return 0; | 1487 return 0; |
1488 if (!element->hasTagName(datalistTag)) | 1488 if (!isHTMLDataListElement(*element)) |
1489 return 0; | 1489 return 0; |
1490 | 1490 |
1491 return toHTMLDataListElement(element); | 1491 return toHTMLDataListElement(element); |
1492 } | 1492 } |
1493 | 1493 |
1494 bool HTMLInputElement::hasValidDataListOptions() const | 1494 bool HTMLInputElement::hasValidDataListOptions() const |
1495 { | 1495 { |
1496 HTMLDataListElement* dataList = this->dataList(); | 1496 HTMLDataListElement* dataList = this->dataList(); |
1497 if (!dataList) | 1497 if (!dataList) |
1498 return false; | 1498 return false; |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1868 } | 1868 } |
1869 | 1869 |
1870 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1870 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
1871 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1871 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
1872 { | 1872 { |
1873 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1873 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
1874 } | 1874 } |
1875 #endif | 1875 #endif |
1876 | 1876 |
1877 } // namespace | 1877 } // namespace |
OLD | NEW |