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 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1518 } | 1518 } |
1519 | 1519 |
1520 HTMLDataListElement* HTMLInputElement::dataList() const | 1520 HTMLDataListElement* HTMLInputElement::dataList() const |
1521 { | 1521 { |
1522 if (!m_hasNonEmptyList) | 1522 if (!m_hasNonEmptyList) |
1523 return 0; | 1523 return 0; |
1524 | 1524 |
1525 if (!m_inputType->shouldRespectListAttribute()) | 1525 if (!m_inputType->shouldRespectListAttribute()) |
1526 return 0; | 1526 return 0; |
1527 | 1527 |
1528 Element* element = treeScope().getElementById(fastGetAttribute(listAttr)); | 1528 Element* element = treeScope()->getElementById(fastGetAttribute(listAttr)); |
1529 if (!element) | 1529 if (!element) |
1530 return 0; | 1530 return 0; |
1531 if (!element->hasTagName(datalistTag)) | 1531 if (!element->hasTagName(datalistTag)) |
1532 return 0; | 1532 return 0; |
1533 | 1533 |
1534 return toHTMLDataListElement(element); | 1534 return toHTMLDataListElement(element); |
1535 } | 1535 } |
1536 | 1536 |
1537 void HTMLInputElement::resetListAttributeTargetObserver() | 1537 void HTMLInputElement::resetListAttributeTargetObserver() |
1538 { | 1538 { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1801 { | 1801 { |
1802 setAttribute(widthAttr, String::number(width)); | 1802 setAttribute(widthAttr, String::number(width)); |
1803 } | 1803 } |
1804 | 1804 |
1805 PassOwnPtr<ListAttributeTargetObserver> ListAttributeTargetObserver::create(cons
t AtomicString& id, HTMLInputElement* element) | 1805 PassOwnPtr<ListAttributeTargetObserver> ListAttributeTargetObserver::create(cons
t AtomicString& id, HTMLInputElement* element) |
1806 { | 1806 { |
1807 return adoptPtr(new ListAttributeTargetObserver(id, element)); | 1807 return adoptPtr(new ListAttributeTargetObserver(id, element)); |
1808 } | 1808 } |
1809 | 1809 |
1810 ListAttributeTargetObserver::ListAttributeTargetObserver(const AtomicString& id,
HTMLInputElement* element) | 1810 ListAttributeTargetObserver::ListAttributeTargetObserver(const AtomicString& id,
HTMLInputElement* element) |
1811 : IdTargetObserver(element->treeScope().idTargetObserverRegistry(), id) | 1811 : IdTargetObserver(element->treeScope()->idTargetObserverRegistry(), id) |
1812 , m_element(element) | 1812 , m_element(element) |
1813 { | 1813 { |
1814 } | 1814 } |
1815 | 1815 |
1816 void ListAttributeTargetObserver::idTargetChanged() | 1816 void ListAttributeTargetObserver::idTargetChanged() |
1817 { | 1817 { |
1818 m_element->listAttributeTargetChanged(); | 1818 m_element->listAttributeTargetChanged(); |
1819 } | 1819 } |
1820 | 1820 |
1821 void HTMLInputElement::setRangeText(const String& replacement, ExceptionState& e
s) | 1821 void HTMLInputElement::setRangeText(const String& replacement, ExceptionState& e
s) |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1887 } | 1887 } |
1888 | 1888 |
1889 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1889 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
1890 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1890 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
1891 { | 1891 { |
1892 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1892 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
1893 } | 1893 } |
1894 #endif | 1894 #endif |
1895 | 1895 |
1896 } // namespace | 1896 } // namespace |
OLD | NEW |