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 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 { | 1461 { |
1462 if (!needsSuspensionCallback()) | 1462 if (!needsSuspensionCallback()) |
1463 document()->unregisterForPageCacheSuspensionCallbacks(this); | 1463 document()->unregisterForPageCacheSuspensionCallbacks(this); |
1464 } | 1464 } |
1465 | 1465 |
1466 bool HTMLInputElement::isRequiredFormControl() const | 1466 bool HTMLInputElement::isRequiredFormControl() const |
1467 { | 1467 { |
1468 return m_inputType->supportsRequired() && required(); | 1468 return m_inputType->supportsRequired() && required(); |
1469 } | 1469 } |
1470 | 1470 |
| 1471 bool HTMLInputElement::shouldMatchReadOnlySelector() const |
| 1472 { |
| 1473 return m_inputType->supportsReadOnly() && readOnly(); |
| 1474 } |
| 1475 |
| 1476 bool HTMLInputElement::shouldMatchReadWriteSelector() const |
| 1477 { |
| 1478 return m_inputType->supportsReadOnly() && !readOnly(); |
| 1479 } |
| 1480 |
1471 void HTMLInputElement::addSearchResult() | 1481 void HTMLInputElement::addSearchResult() |
1472 { | 1482 { |
1473 m_inputType->addSearchResult(); | 1483 m_inputType->addSearchResult(); |
1474 } | 1484 } |
1475 | 1485 |
1476 void HTMLInputElement::onSearch() | 1486 void HTMLInputElement::onSearch() |
1477 { | 1487 { |
1478 ASSERT(isSearchField()); | 1488 ASSERT(isSearchField()); |
1479 if (m_inputType) | 1489 if (m_inputType) |
1480 static_cast<SearchInputType*>(m_inputType.get())->stopSearchEventTimer()
; | 1490 static_cast<SearchInputType*>(m_inputType.get())->stopSearchEventTimer()
; |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1902 { | 1912 { |
1903 if (!m_inputType->supportsSelectionAPI()) { | 1913 if (!m_inputType->supportsSelectionAPI()) { |
1904 ec = INVALID_STATE_ERR; | 1914 ec = INVALID_STATE_ERR; |
1905 return; | 1915 return; |
1906 } | 1916 } |
1907 | 1917 |
1908 HTMLTextFormControlElement::setRangeText(replacement, start, end, selectionM
ode, ec); | 1918 HTMLTextFormControlElement::setRangeText(replacement, start, end, selectionM
ode, ec); |
1909 } | 1919 } |
1910 | 1920 |
1911 } // namespace | 1921 } // namespace |
OLD | NEW |