| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 bool FormAssociatedElement::isFormControlElementWithState() const | 307 bool FormAssociatedElement::isFormControlElementWithState() const |
| 308 { | 308 { |
| 309 return false; | 309 return false; |
| 310 } | 310 } |
| 311 | 311 |
| 312 const HTMLElement& toHTMLElement(const FormAssociatedElement& associatedElement) | 312 const HTMLElement& toHTMLElement(const FormAssociatedElement& associatedElement) |
| 313 { | 313 { |
| 314 if (associatedElement.isFormControlElement()) | 314 if (associatedElement.isFormControlElement()) |
| 315 return toHTMLFormControlElement(associatedElement); | 315 return toHTMLFormControlElement(associatedElement); |
| 316 else if (associatedElement.isLabelElement()) | 316 if (associatedElement.isLabelElement()) |
| 317 return toHTMLLabelElement(associatedElement); | 317 return toHTMLLabelElement(associatedElement); |
| 318 else | 318 return toHTMLObjectElement(associatedElement); |
| 319 return toHTMLObjectElement(associatedElement); | |
| 320 } | 319 } |
| 321 | 320 |
| 322 const HTMLElement* toHTMLElement(const FormAssociatedElement* associatedElement) | 321 const HTMLElement* toHTMLElement(const FormAssociatedElement* associatedElement) |
| 323 { | 322 { |
| 324 ASSERT(associatedElement); | 323 ASSERT(associatedElement); |
| 325 return &toHTMLElement(*associatedElement); | 324 return &toHTMLElement(*associatedElement); |
| 326 } | 325 } |
| 327 | 326 |
| 328 HTMLElement* toHTMLElement(FormAssociatedElement* associatedElement) | 327 HTMLElement* toHTMLElement(FormAssociatedElement* associatedElement) |
| 329 { | 328 { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 351 visitor->trace(m_element); | 350 visitor->trace(m_element); |
| 352 IdTargetObserver::trace(visitor); | 351 IdTargetObserver::trace(visitor); |
| 353 } | 352 } |
| 354 | 353 |
| 355 void FormAttributeTargetObserver::idTargetChanged() | 354 void FormAttributeTargetObserver::idTargetChanged() |
| 356 { | 355 { |
| 357 m_element->formAttributeTargetChanged(); | 356 m_element->formAttributeTargetChanged(); |
| 358 } | 357 } |
| 359 | 358 |
| 360 } // namespace blink | 359 } // namespace blink |
| OLD | NEW |