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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 return false; | 433 return false; |
434 } | 434 } |
435 return true; | 435 return true; |
436 } | 436 } |
437 | 437 |
438 bool HTMLObjectElement::containsJavaApplet() const | 438 bool HTMLObjectElement::containsJavaApplet() const |
439 { | 439 { |
440 if (MIMETypeRegistry::isJavaAppletMIMEType(getAttribute(typeAttr))) | 440 if (MIMETypeRegistry::isJavaAppletMIMEType(getAttribute(typeAttr))) |
441 return true; | 441 return true; |
442 | 442 |
443 for (HTMLElement* child = Traversal<HTMLElement>::firstWithin(*this); child;
child = Traversal<HTMLElement>::nextSkippingChildren(*child, this)) { | 443 for (HTMLElement* child = Traversal<HTMLElement>::firstChild(*this); child;
child = Traversal<HTMLElement>::nextSibling(*child)) { |
444 if (isHTMLParamElement(*child) | 444 if (isHTMLParamElement(*child) |
445 && equalIgnoringCase(child->getNameAttribute(), "type") | 445 && equalIgnoringCase(child->getNameAttribute(), "type") |
446 && MIMETypeRegistry::isJavaAppletMIMEType(child->getAttribute(va
lueAttr).string())) | 446 && MIMETypeRegistry::isJavaAppletMIMEType(child->getAttribute(va
lueAttr).string())) |
447 return true; | 447 return true; |
448 if (isHTMLObjectElement(*child) && toHTMLObjectElement(*child).containsJ
avaApplet()) | 448 if (isHTMLObjectElement(*child) && toHTMLObjectElement(*child).containsJ
avaApplet()) |
449 return true; | 449 return true; |
450 if (isHTMLAppletElement(*child)) | 450 if (isHTMLAppletElement(*child)) |
451 return true; | 451 return true; |
452 } | 452 } |
453 | 453 |
(...skipping 30 matching lines...) Expand all Loading... |
484 { | 484 { |
485 return fastHasAttribute(usemapAttr); | 485 return fastHasAttribute(usemapAttr); |
486 } | 486 } |
487 | 487 |
488 bool HTMLObjectElement::useFallbackContent() const | 488 bool HTMLObjectElement::useFallbackContent() const |
489 { | 489 { |
490 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; | 490 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; |
491 } | 491 } |
492 | 492 |
493 } | 493 } |
OLD | NEW |