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 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void HTMLFormElement::removedFromDocument() | 109 void HTMLFormElement::removedFromDocument() |
110 { | 110 { |
111 if (document()->isHTMLDocument()) | 111 if (document()->isHTMLDocument()) |
112 static_cast<HTMLDocument*>(document())->removeNamedItem(m_name); | 112 static_cast<HTMLDocument*>(document())->removeNamedItem(m_name); |
113 | 113 |
114 HTMLElement::removedFromDocument(); | 114 HTMLElement::removedFromDocument(); |
115 } | 115 } |
116 | 116 |
117 void HTMLFormElement::handleLocalEvents(Event* event, bool useCapture) | 117 void HTMLFormElement::handleLocalEvents(Event* event, bool useCapture) |
118 { | 118 { |
119 Node* targetNode = event->target()->toNode(); | 119 EventTargetNode* targetNode = event->target()->toNode(); |
120 if (!useCapture && targetNode && targetNode != this && (event->type() == eve
ntNames().submitEvent || event->type() == eventNames().resetEvent)) { | 120 if (!useCapture && targetNode && targetNode != this && (event->type() == eve
ntNames().submitEvent || event->type() == eventNames().resetEvent)) { |
121 event->stopPropagation(); | 121 event->stopPropagation(); |
122 return; | 122 return; |
123 } | 123 } |
124 HTMLElement::handleLocalEvents(event, useCapture); | 124 HTMLElement::handleLocalEvents(event, useCapture); |
125 } | 125 } |
126 | 126 |
127 unsigned HTMLFormElement::length() const | 127 unsigned HTMLFormElement::length() const |
128 { | 128 { |
129 int len = 0; | 129 int len = 0; |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 ASSERT(inputElement->isChecked()); | 630 ASSERT(inputElement->isChecked()); |
631 ASSERT(element->isRadioButton()); | 631 ASSERT(element->isRadioButton()); |
632 | 632 |
633 m_nameToCheckedRadioButtonMap->remove(it); | 633 m_nameToCheckedRadioButtonMap->remove(it); |
634 if (m_nameToCheckedRadioButtonMap->isEmpty()) | 634 if (m_nameToCheckedRadioButtonMap->isEmpty()) |
635 m_nameToCheckedRadioButtonMap.clear(); | 635 m_nameToCheckedRadioButtonMap.clear(); |
636 } | 636 } |
637 | 637 |
638 } // namespace | 638 } // namespace |
639 | 639 |
OLD | NEW |