| 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 } else if (name == multipleAttr) { | 737 } else if (name == multipleAttr) { |
| 738 m_inputTypeView->multipleAttributeChanged(); | 738 m_inputTypeView->multipleAttributeChanged(); |
| 739 setNeedsValidityCheck(); | 739 setNeedsValidityCheck(); |
| 740 } else if (name == stepAttr) { | 740 } else if (name == stepAttr) { |
| 741 m_inputTypeView->stepAttributeChanged(); | 741 m_inputTypeView->stepAttributeChanged(); |
| 742 setNeedsValidityCheck(); | 742 setNeedsValidityCheck(); |
| 743 UseCounter::count(document(), UseCounter::StepAttribute); | 743 UseCounter::count(document(), UseCounter::StepAttribute); |
| 744 } else if (name == patternAttr) { | 744 } else if (name == patternAttr) { |
| 745 setNeedsValidityCheck(); | 745 setNeedsValidityCheck(); |
| 746 UseCounter::count(document(), UseCounter::PatternAttribute); | 746 UseCounter::count(document(), UseCounter::PatternAttribute); |
| 747 } else if (name == disabledAttr) { | |
| 748 HTMLTextFormControlElement::parseAttribute(name, oldValue, value); | |
| 749 m_inputTypeView->disabledAttributeChanged(); | |
| 750 } else if (name == readonlyAttr) { | 747 } else if (name == readonlyAttr) { |
| 751 HTMLTextFormControlElement::parseAttribute(name, oldValue, value); | 748 HTMLTextFormControlElement::parseAttribute(name, oldValue, value); |
| 752 m_inputTypeView->readonlyAttributeChanged(); | 749 m_inputTypeView->readonlyAttributeChanged(); |
| 753 } else if (name == listAttr) { | 750 } else if (name == listAttr) { |
| 754 m_hasNonEmptyList = !value.isEmpty(); | 751 m_hasNonEmptyList = !value.isEmpty(); |
| 755 if (m_hasNonEmptyList) { | 752 if (m_hasNonEmptyList) { |
| 756 resetListAttributeTargetObserver(); | 753 resetListAttributeTargetObserver(); |
| 757 listAttributeTargetChanged(); | 754 listAttributeTargetChanged(); |
| 758 } | 755 } |
| 759 UseCounter::count(document(), UseCounter::ListAttribute); | 756 UseCounter::count(document(), UseCounter::ListAttribute); |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 } | 1523 } |
| 1527 | 1524 |
| 1528 void HTMLInputElement::requiredAttributeChanged() | 1525 void HTMLInputElement::requiredAttributeChanged() |
| 1529 { | 1526 { |
| 1530 HTMLTextFormControlElement::requiredAttributeChanged(); | 1527 HTMLTextFormControlElement::requiredAttributeChanged(); |
| 1531 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) | 1528 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
| 1532 scope->requiredAttributeChanged(this); | 1529 scope->requiredAttributeChanged(this); |
| 1533 m_inputTypeView->requiredAttributeChanged(); | 1530 m_inputTypeView->requiredAttributeChanged(); |
| 1534 } | 1531 } |
| 1535 | 1532 |
| 1533 void HTMLInputElement::disabledAttributeChanged() |
| 1534 { |
| 1535 HTMLTextFormControlElement::disabledAttributeChanged(); |
| 1536 m_inputTypeView->disabledAttributeChanged(); |
| 1537 } |
| 1538 |
| 1536 void HTMLInputElement::selectColorInColorChooser(const Color& color) | 1539 void HTMLInputElement::selectColorInColorChooser(const Color& color) |
| 1537 { | 1540 { |
| 1538 if (ColorChooserClient* client = m_inputType->colorChooserClient()) | 1541 if (ColorChooserClient* client = m_inputType->colorChooserClient()) |
| 1539 client->didChooseColor(color); | 1542 client->didChooseColor(color); |
| 1540 } | 1543 } |
| 1541 | 1544 |
| 1542 void HTMLInputElement::endColorChooser() | 1545 void HTMLInputElement::endColorChooser() |
| 1543 { | 1546 { |
| 1544 if (ColorChooserClient* client = m_inputType->colorChooserClient()) | 1547 if (ColorChooserClient* client = m_inputType->colorChooserClient()) |
| 1545 client->didEndChooser(); | 1548 client->didEndChooser(); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 void HTMLInputElement::ensurePrimaryContent() | 1909 void HTMLInputElement::ensurePrimaryContent() |
| 1907 { | 1910 { |
| 1908 m_inputTypeView->ensurePrimaryContent(); | 1911 m_inputTypeView->ensurePrimaryContent(); |
| 1909 } | 1912 } |
| 1910 | 1913 |
| 1911 bool HTMLInputElement::hasFallbackContent() const | 1914 bool HTMLInputElement::hasFallbackContent() const |
| 1912 { | 1915 { |
| 1913 return m_inputTypeView->hasFallbackContent(); | 1916 return m_inputTypeView->hasFallbackContent(); |
| 1914 } | 1917 } |
| 1915 } // namespace blink | 1918 } // namespace blink |
| OLD | NEW |