| 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 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 notifyFormRemovedFromTree(images, root); | 178 notifyFormRemovedFromTree(images, root); |
| 179 } | 179 } |
| 180 } | 180 } |
| 181 document().formController().willDeleteForm(this); | 181 document().formController().willDeleteForm(this); |
| 182 HTMLElement::removedFrom(insertionPoint); | 182 HTMLElement::removedFrom(insertionPoint); |
| 183 } | 183 } |
| 184 | 184 |
| 185 void HTMLFormElement::handleLocalEvents(Event& event) | 185 void HTMLFormElement::handleLocalEvents(Event& event) |
| 186 { | 186 { |
| 187 Node* targetNode = event.target()->toNode(); | 187 Node* targetNode = event.target()->toNode(); |
| 188 if (event.eventPhase() != Event::CAPTURING_PHASE && targetNode && targetNode
!= this && (event.type() == EventTypeNames::submit || event.type() == EventType
Names::reset)) { | 188 if (event.eventPhase() != Event::kCapturingPhase && targetNode && targetNode
!= this && (event.type() == EventTypeNames::submit || event.type() == EventType
Names::reset)) { |
| 189 event.stopPropagation(); | 189 event.stopPropagation(); |
| 190 return; | 190 return; |
| 191 } | 191 } |
| 192 HTMLElement::handleLocalEvents(event); | 192 HTMLElement::handleLocalEvents(event); |
| 193 } | 193 } |
| 194 | 194 |
| 195 unsigned HTMLFormElement::length() const | 195 unsigned HTMLFormElement::length() const |
| 196 { | 196 { |
| 197 const FormAssociatedElement::List& elements = associatedElements(); | 197 const FormAssociatedElement::List& elements = associatedElements(); |
| 198 unsigned len = 0; | 198 unsigned len = 0; |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 { | 789 { |
| 790 for (const auto& control : associatedElements()) { | 790 for (const auto& control : associatedElements()) { |
| 791 if (!control->isFormControlElement()) | 791 if (!control->isFormControlElement()) |
| 792 continue; | 792 continue; |
| 793 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) | 793 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) |
| 794 toHTMLFormControlElement(control)->pseudoStateChanged(CSSSelector::P
seudoDefault); | 794 toHTMLFormControlElement(control)->pseudoStateChanged(CSSSelector::P
seudoDefault); |
| 795 } | 795 } |
| 796 } | 796 } |
| 797 | 797 |
| 798 } // namespace blink | 798 } // namespace blink |
| OLD | NEW |