| 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 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 dispatchEvent(Event::createBubble(EventTypeNames::select)); | 696 dispatchEvent(Event::createBubble(EventTypeNames::select)); |
| 697 } | 697 } |
| 698 } | 698 } |
| 699 | 699 |
| 700 void TextControlElement::scheduleSelectEvent() { | 700 void TextControlElement::scheduleSelectEvent() { |
| 701 Event* event = Event::createBubble(EventTypeNames::select); | 701 Event* event = Event::createBubble(EventTypeNames::select); |
| 702 event->setTarget(this); | 702 event->setTarget(this); |
| 703 document().enqueueUniqueAnimationFrameEvent(event); | 703 document().enqueueUniqueAnimationFrameEvent(event); |
| 704 } | 704 } |
| 705 | 705 |
| 706 void TextControlElement::parseAttribute(const QualifiedName& name, | 706 void TextControlElement::parseAttribute( |
| 707 const AtomicString& oldValue, | 707 const AttributeModificationParams& params) { |
| 708 const AtomicString& value) { | 708 if (params.name == autocapitalizeAttr) |
| 709 if (name == autocapitalizeAttr) | |
| 710 UseCounter::count(document(), UseCounter::AutocapitalizeAttribute); | 709 UseCounter::count(document(), UseCounter::AutocapitalizeAttribute); |
| 711 | 710 |
| 712 if (name == placeholderAttr) { | 711 if (params.name == placeholderAttr) { |
| 713 updatePlaceholderText(); | 712 updatePlaceholderText(); |
| 714 updatePlaceholderVisibility(); | 713 updatePlaceholderVisibility(); |
| 715 UseCounter::count(document(), UseCounter::PlaceholderAttribute); | 714 UseCounter::count(document(), UseCounter::PlaceholderAttribute); |
| 716 } else { | 715 } else { |
| 717 HTMLFormControlElementWithState::parseAttribute(name, oldValue, value); | 716 HTMLFormControlElementWithState::parseAttribute(params); |
| 718 } | 717 } |
| 719 } | 718 } |
| 720 | 719 |
| 721 bool TextControlElement::lastChangeWasUserEdit() const { | 720 bool TextControlElement::lastChangeWasUserEdit() const { |
| 722 if (!isTextControl()) | 721 if (!isTextControl()) |
| 723 return false; | 722 return false; |
| 724 return m_lastChangeWasUserEdit; | 723 return m_lastChangeWasUserEdit; |
| 725 } | 724 } |
| 726 | 725 |
| 727 Node* TextControlElement::createPlaceholderBreakElement() const { | 726 Node* TextControlElement::createPlaceholderBreakElement() const { |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 | 1162 |
| 1164 void TextControlElement::copyNonAttributePropertiesFromElement( | 1163 void TextControlElement::copyNonAttributePropertiesFromElement( |
| 1165 const Element& source) { | 1164 const Element& source) { |
| 1166 const TextControlElement& sourceElement = | 1165 const TextControlElement& sourceElement = |
| 1167 static_cast<const TextControlElement&>(source); | 1166 static_cast<const TextControlElement&>(source); |
| 1168 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; | 1167 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; |
| 1169 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); | 1168 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); |
| 1170 } | 1169 } |
| 1171 | 1170 |
| 1172 } // namespace blink | 1171 } // namespace blink |
| OLD | NEW |