| 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, 2011 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights
reserved. |
| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 if (isRecognizedTagName(element->tagQName()) && !element->hasTagName
(paramTag)) | 431 if (isRecognizedTagName(element->tagQName()) && !element->hasTagName
(paramTag)) |
| 432 isNamedItem = false; | 432 isNamedItem = false; |
| 433 } else if (child->isTextNode()) { | 433 } else if (child->isTextNode()) { |
| 434 if (!toText(child)->containsOnlyWhitespace()) | 434 if (!toText(child)->containsOnlyWhitespace()) |
| 435 isNamedItem = false; | 435 isNamedItem = false; |
| 436 } else | 436 } else |
| 437 isNamedItem = false; | 437 isNamedItem = false; |
| 438 child = child->nextSibling(); | 438 child = child->nextSibling(); |
| 439 } | 439 } |
| 440 if (isNamedItem != wasNamedItem && document().isHTMLDocument()) { | 440 if (isNamedItem != wasNamedItem && document().isHTMLDocument()) { |
| 441 HTMLDocument* document = toHTMLDocument(&this->document()); | 441 HTMLDocument& document = toHTMLDocument(this->document()); |
| 442 if (isNamedItem) { | 442 if (isNamedItem) { |
| 443 document->addNamedItem(getNameAttribute()); | 443 document.addNamedItem(getNameAttribute()); |
| 444 document->addExtraNamedItem(getIdAttribute()); | 444 document.addExtraNamedItem(getIdAttribute()); |
| 445 } else { | 445 } else { |
| 446 document->removeNamedItem(getNameAttribute()); | 446 document.removeNamedItem(getNameAttribute()); |
| 447 document->removeExtraNamedItem(getIdAttribute()); | 447 document.removeExtraNamedItem(getIdAttribute()); |
| 448 } | 448 } |
| 449 } | 449 } |
| 450 m_docNamedItem = isNamedItem; | 450 m_docNamedItem = isNamedItem; |
| 451 } | 451 } |
| 452 | 452 |
| 453 bool HTMLObjectElement::containsJavaApplet() const | 453 bool HTMLObjectElement::containsJavaApplet() const |
| 454 { | 454 { |
| 455 if (MIMETypeRegistry::isJavaAppletMIMEType(getAttribute(typeAttr))) | 455 if (MIMETypeRegistry::isJavaAppletMIMEType(getAttribute(typeAttr))) |
| 456 return true; | 456 return true; |
| 457 | 457 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 encoding.appendData(name(), value); | 502 encoding.appendData(name(), value); |
| 503 return true; | 503 return true; |
| 504 } | 504 } |
| 505 | 505 |
| 506 HTMLFormElement* HTMLObjectElement::virtualForm() const | 506 HTMLFormElement* HTMLObjectElement::virtualForm() const |
| 507 { | 507 { |
| 508 return FormAssociatedElement::form(); | 508 return FormAssociatedElement::form(); |
| 509 } | 509 } |
| 510 | 510 |
| 511 } | 511 } |
| OLD | NEW |