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) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
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 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 void HTMLObjectElement::insertedIntoDocument() | 312 void HTMLObjectElement::insertedIntoDocument() |
313 { | 313 { |
314 if (isDocNamedItem() && document()->isHTMLDocument()) { | 314 if (isDocNamedItem() && document()->isHTMLDocument()) { |
315 HTMLDocument* document = static_cast<HTMLDocument*>(this->document()); | 315 HTMLDocument* document = static_cast<HTMLDocument*>(this->document()); |
316 document->addNamedItem(m_name); | 316 document->addNamedItem(m_name); |
317 document->addExtraNamedItem(m_id); | 317 document->addExtraNamedItem(m_id); |
318 } | 318 } |
319 | 319 |
320 HTMLPlugInImageElement::insertedIntoDocument(); | 320 HTMLPlugInImageElement::insertedIntoDocument(); |
| 321 FormAssociatedElement::insertedIntoDocument(); |
321 } | 322 } |
322 | 323 |
323 void HTMLObjectElement::removedFromDocument() | 324 void HTMLObjectElement::removedFromDocument() |
324 { | 325 { |
325 if (isDocNamedItem() && document()->isHTMLDocument()) { | 326 if (isDocNamedItem() && document()->isHTMLDocument()) { |
326 HTMLDocument* document = static_cast<HTMLDocument*>(this->document()); | 327 HTMLDocument* document = static_cast<HTMLDocument*>(this->document()); |
327 document->removeNamedItem(m_name); | 328 document->removeNamedItem(m_name); |
328 document->removeExtraNamedItem(m_id); | 329 document->removeExtraNamedItem(m_id); |
329 } | 330 } |
330 | 331 |
331 HTMLPlugInImageElement::removedFromDocument(); | 332 HTMLPlugInImageElement::removedFromDocument(); |
| 333 FormAssociatedElement::removedFromDocument(); |
332 } | 334 } |
333 | 335 |
334 void HTMLObjectElement::attributeChanged(Attribute* attr, bool preserveDecls) | 336 void HTMLObjectElement::attributeChanged(Attribute* attr, bool preserveDecls) |
335 { | 337 { |
336 if (attr->name() == formAttr) | 338 if (attr->name() == formAttr) |
337 formAttributeChanged(); | 339 formAttributeChanged(); |
338 else | 340 else |
339 HTMLPlugInImageElement::attributeChanged(attr, preserveDecls); | 341 HTMLPlugInImageElement::attributeChanged(attr, preserveDecls); |
340 } | 342 } |
341 | 343 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 // FIXME: Implements this function. | 504 // FIXME: Implements this function. |
503 return false; | 505 return false; |
504 } | 506 } |
505 | 507 |
506 const AtomicString& HTMLObjectElement::formControlName() const | 508 const AtomicString& HTMLObjectElement::formControlName() const |
507 { | 509 { |
508 return m_name.isNull() ? emptyAtom : m_name; | 510 return m_name.isNull() ? emptyAtom : m_name; |
509 } | 511 } |
510 | 512 |
511 } | 513 } |
OLD | NEW |