| 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 parseMaxLengthAttribute(value); | 725 parseMaxLengthAttribute(value); |
| 726 } else if (name == minlengthAttr) { | 726 } else if (name == minlengthAttr) { |
| 727 parseMinLengthAttribute(value); | 727 parseMinLengthAttribute(value); |
| 728 } else if (name == sizeAttr) { | 728 } else if (name == sizeAttr) { |
| 729 int oldSize = m_size; | 729 int oldSize = m_size; |
| 730 m_size = defaultSize; | 730 m_size = defaultSize; |
| 731 int valueAsInteger; | 731 int valueAsInteger; |
| 732 if (!value.isEmpty() && parseHTMLInteger(value, valueAsInteger) && value
AsInteger > 0) | 732 if (!value.isEmpty() && parseHTMLInteger(value, valueAsInteger) && value
AsInteger > 0) |
| 733 m_size = valueAsInteger; | 733 m_size = valueAsInteger; |
| 734 if (m_size != oldSize && layoutObject()) | 734 if (m_size != oldSize && layoutObject()) |
| 735 layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid
ation(); | 735 layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid
ation(LayoutInvalidationReason::AttributeChanged); |
| 736 } else if (name == altAttr) | 736 } else if (name == altAttr) |
| 737 m_inputTypeView->altAttributeChanged(); | 737 m_inputTypeView->altAttributeChanged(); |
| 738 else if (name == srcAttr) | 738 else if (name == srcAttr) |
| 739 m_inputTypeView->srcAttributeChanged(); | 739 m_inputTypeView->srcAttributeChanged(); |
| 740 else if (name == usemapAttr || name == accesskeyAttr) { | 740 else if (name == usemapAttr || name == accesskeyAttr) { |
| 741 // FIXME: ignore for the moment | 741 // FIXME: ignore for the moment |
| 742 } else if (name == onsearchAttr) { | 742 } else if (name == onsearchAttr) { |
| 743 // Search field and slider attributes all just cause updateFromElement t
o be called through style recalcing. | 743 // Search field and slider attributes all just cause updateFromElement t
o be called through style recalcing. |
| 744 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi
stener(this, name, value, eventParameterName())); | 744 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi
stener(this, name, value, eventParameterName())); |
| 745 } else if (name == resultsAttr) { | 745 } else if (name == resultsAttr) { |
| (...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1923 void HTMLInputElement::ensurePrimaryContent() | 1923 void HTMLInputElement::ensurePrimaryContent() |
| 1924 { | 1924 { |
| 1925 m_inputTypeView->ensurePrimaryContent(); | 1925 m_inputTypeView->ensurePrimaryContent(); |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 bool HTMLInputElement::hasFallbackContent() const | 1928 bool HTMLInputElement::hasFallbackContent() const |
| 1929 { | 1929 { |
| 1930 return m_inputTypeView->hasFallbackContent(); | 1930 return m_inputTypeView->hasFallbackContent(); |
| 1931 } | 1931 } |
| 1932 } // namespace | 1932 } // namespace |
| OLD | NEW |