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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 FormAssociatedElement::insertedInto(insertionPoint); | 352 FormAssociatedElement::insertedInto(insertionPoint); |
353 return InsertionDone; | 353 return InsertionDone; |
354 } | 354 } |
355 | 355 |
356 void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint) | 356 void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint) |
357 { | 357 { |
358 HTMLPlugInElement::removedFrom(insertionPoint); | 358 HTMLPlugInElement::removedFrom(insertionPoint); |
359 FormAssociatedElement::removedFrom(insertionPoint); | 359 FormAssociatedElement::removedFrom(insertionPoint); |
360 } | 360 } |
361 | 361 |
362 void HTMLObjectElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) | 362 void HTMLObjectElement::childrenChanged(const ChildrenChange& change) |
363 { | 363 { |
364 if (inDocument() && !useFallbackContent()) { | 364 if (inDocument() && !useFallbackContent()) { |
365 setNeedsWidgetUpdate(true); | 365 setNeedsWidgetUpdate(true); |
366 setNeedsStyleRecalc(SubtreeStyleChange); | 366 setNeedsStyleRecalc(SubtreeStyleChange); |
367 } | 367 } |
368 HTMLPlugInElement::childrenChanged(changedByParser, beforeChange, afterChang
e, childCountDelta); | 368 HTMLPlugInElement::childrenChanged(change); |
369 } | 369 } |
370 | 370 |
371 bool HTMLObjectElement::isURLAttribute(const Attribute& attribute) const | 371 bool HTMLObjectElement::isURLAttribute(const Attribute& attribute) const |
372 { | 372 { |
373 return attribute.name() == codebaseAttr || attribute.name() == dataAttr | 373 return attribute.name() == codebaseAttr || attribute.name() == dataAttr |
374 || (attribute.name() == usemapAttr && attribute.value().string()[0] != '
#') | 374 || (attribute.name() == usemapAttr && attribute.value().string()[0] != '
#') |
375 || HTMLPlugInElement::isURLAttribute(attribute); | 375 || HTMLPlugInElement::isURLAttribute(attribute); |
376 } | 376 } |
377 | 377 |
378 bool HTMLObjectElement::hasLegalLinkAttribute(const QualifiedName& name) const | 378 bool HTMLObjectElement::hasLegalLinkAttribute(const QualifiedName& name) const |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 { | 489 { |
490 return fastHasAttribute(usemapAttr); | 490 return fastHasAttribute(usemapAttr); |
491 } | 491 } |
492 | 492 |
493 bool HTMLObjectElement::useFallbackContent() const | 493 bool HTMLObjectElement::useFallbackContent() const |
494 { | 494 { |
495 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; | 495 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; |
496 } | 496 } |
497 | 497 |
498 } | 498 } |
OLD | NEW |