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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 return; | 431 return; |
432 } | 432 } |
433 | 433 |
434 if (name != nameAttr) | 434 if (name != nameAttr) |
435 HTMLElement::parseAttribute(name, value); | 435 HTMLElement::parseAttribute(name, value); |
436 } | 436 } |
437 | 437 |
438 Node::InsertionNotificationRequest HTMLMetaElement::insertedInto(ContainerNode*
insertionPoint) | 438 Node::InsertionNotificationRequest HTMLMetaElement::insertedInto(ContainerNode*
insertionPoint) |
439 { | 439 { |
440 HTMLElement::insertedInto(insertionPoint); | 440 HTMLElement::insertedInto(insertionPoint); |
441 if (insertionPoint->inDocument()) | 441 return InsertionShouldCallDidNotifySubtreeInsertions; |
442 process(); | 442 } |
443 return InsertionDone; | 443 |
| 444 void HTMLMetaElement::didNotifySubtreeInsertionsToDocument() |
| 445 { |
| 446 process(); |
444 } | 447 } |
445 | 448 |
446 static bool inDocumentHead(HTMLMetaElement* element) | 449 static bool inDocumentHead(HTMLMetaElement* element) |
447 { | 450 { |
448 if (!element->inDocument()) | 451 if (!element->inDocument()) |
449 return false; | 452 return false; |
450 | 453 |
451 for (Element* current = element; current; current = current->parentElement()
) { | 454 for (Element* current = element; current; current = current->parentElement()
) { |
452 if (isHTMLHeadElement(*current)) | 455 if (isHTMLHeadElement(*current)) |
453 return true; | 456 return true; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 { | 498 { |
496 return getAttribute(http_equivAttr); | 499 return getAttribute(http_equivAttr); |
497 } | 500 } |
498 | 501 |
499 const AtomicString& HTMLMetaElement::name() const | 502 const AtomicString& HTMLMetaElement::name() const |
500 { | 503 { |
501 return getNameAttribute(); | 504 return getNameAttribute(); |
502 } | 505 } |
503 | 506 |
504 } | 507 } |
OLD | NEW |