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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 HTMLObjectElement* HTMLObjectElement::create(Document& document, | 65 HTMLObjectElement* HTMLObjectElement::create(Document& document, |
66 HTMLFormElement* form, | 66 HTMLFormElement* form, |
67 bool createdByParser) { | 67 bool createdByParser) { |
68 HTMLObjectElement* element = | 68 HTMLObjectElement* element = |
69 new HTMLObjectElement(document, form, createdByParser); | 69 new HTMLObjectElement(document, form, createdByParser); |
70 element->ensureUserAgentShadowRoot(); | 70 element->ensureUserAgentShadowRoot(); |
71 return element; | 71 return element; |
72 } | 72 } |
73 | 73 |
74 DEFINE_TRACE(HTMLObjectElement) { | 74 DEFINE_TRACE(HTMLObjectElement) { |
75 FormAssociatedElement::trace(visitor); | 75 ListedElement::trace(visitor); |
76 HTMLPlugInElement::trace(visitor); | 76 HTMLPlugInElement::trace(visitor); |
77 } | 77 } |
78 | 78 |
79 LayoutPart* HTMLObjectElement::existingLayoutPart() const { | 79 LayoutPart* HTMLObjectElement::existingLayoutPart() const { |
80 // This will return 0 if the layoutObject is not a LayoutPart. | 80 // This will return 0 if the layoutObject is not a LayoutPart. |
81 return layoutPart(); | 81 return layoutPart(); |
82 } | 82 } |
83 | 83 |
84 bool HTMLObjectElement::isPresentationAttribute( | 84 bool HTMLObjectElement::isPresentationAttribute( |
85 const QualifiedName& name) const { | 85 const QualifiedName& name) const { |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 if (!url.isEmpty()) | 329 if (!url.isEmpty()) |
330 dispatchErrorEvent(); | 330 dispatchErrorEvent(); |
331 if (hasFallbackContent()) | 331 if (hasFallbackContent()) |
332 renderFallbackContent(); | 332 renderFallbackContent(); |
333 } | 333 } |
334 } | 334 } |
335 | 335 |
336 Node::InsertionNotificationRequest HTMLObjectElement::insertedInto( | 336 Node::InsertionNotificationRequest HTMLObjectElement::insertedInto( |
337 ContainerNode* insertionPoint) { | 337 ContainerNode* insertionPoint) { |
338 HTMLPlugInElement::insertedInto(insertionPoint); | 338 HTMLPlugInElement::insertedInto(insertionPoint); |
339 FormAssociatedElement::insertedInto(insertionPoint); | 339 ListedElement::insertedInto(insertionPoint); |
340 return InsertionDone; | 340 return InsertionDone; |
341 } | 341 } |
342 | 342 |
343 void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint) { | 343 void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint) { |
344 HTMLPlugInElement::removedFrom(insertionPoint); | 344 HTMLPlugInElement::removedFrom(insertionPoint); |
345 FormAssociatedElement::removedFrom(insertionPoint); | 345 ListedElement::removedFrom(insertionPoint); |
346 } | 346 } |
347 | 347 |
348 void HTMLObjectElement::childrenChanged(const ChildrenChange& change) { | 348 void HTMLObjectElement::childrenChanged(const ChildrenChange& change) { |
349 if (isConnected() && !useFallbackContent()) { | 349 if (isConnected() && !useFallbackContent()) { |
350 setNeedsWidgetUpdate(true); | 350 setNeedsWidgetUpdate(true); |
351 lazyReattachIfNeeded(); | 351 lazyReattachIfNeeded(); |
352 } | 352 } |
353 HTMLPlugInElement::childrenChanged(change); | 353 HTMLPlugInElement::childrenChanged(change); |
354 } | 354 } |
355 | 355 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 return true; | 438 return true; |
439 if (isHTMLObjectElement(child) && | 439 if (isHTMLObjectElement(child) && |
440 toHTMLObjectElement(child).containsJavaApplet()) | 440 toHTMLObjectElement(child).containsJavaApplet()) |
441 return true; | 441 return true; |
442 } | 442 } |
443 | 443 |
444 return false; | 444 return false; |
445 } | 445 } |
446 | 446 |
447 void HTMLObjectElement::didMoveToNewDocument(Document& oldDocument) { | 447 void HTMLObjectElement::didMoveToNewDocument(Document& oldDocument) { |
448 FormAssociatedElement::didMoveToNewDocument(oldDocument); | 448 ListedElement::didMoveToNewDocument(oldDocument); |
449 HTMLPlugInElement::didMoveToNewDocument(oldDocument); | 449 HTMLPlugInElement::didMoveToNewDocument(oldDocument); |
450 } | 450 } |
451 | 451 |
452 HTMLFormElement* HTMLObjectElement::formOwner() const { | 452 HTMLFormElement* HTMLObjectElement::formOwner() const { |
453 return FormAssociatedElement::form(); | 453 return ListedElement::form(); |
454 } | 454 } |
455 | 455 |
456 bool HTMLObjectElement::isInteractiveContent() const { | 456 bool HTMLObjectElement::isInteractiveContent() const { |
457 return fastHasAttribute(usemapAttr); | 457 return fastHasAttribute(usemapAttr); |
458 } | 458 } |
459 | 459 |
460 bool HTMLObjectElement::useFallbackContent() const { | 460 bool HTMLObjectElement::useFallbackContent() const { |
461 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; | 461 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; |
462 } | 462 } |
463 | 463 |
464 bool HTMLObjectElement::willUseFallbackContentAtLayout() const { | 464 bool HTMLObjectElement::willUseFallbackContentAtLayout() const { |
465 return !hasValidClassId() && hasFallbackContent(); | 465 return !hasValidClassId() && hasFallbackContent(); |
466 } | 466 } |
467 | 467 |
468 } // namespace blink | 468 } // namespace blink |
OLD | NEW |