| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 } | 452 } |
| 453 | 453 |
| 454 static bool inDocumentHead(HTMLMetaElement* element) { | 454 static bool inDocumentHead(HTMLMetaElement* element) { |
| 455 if (!element->isConnected()) | 455 if (!element->isConnected()) |
| 456 return false; | 456 return false; |
| 457 | 457 |
| 458 return Traversal<HTMLHeadElement>::firstAncestor(*element); | 458 return Traversal<HTMLHeadElement>::firstAncestor(*element); |
| 459 } | 459 } |
| 460 | 460 |
| 461 void HTMLMetaElement::process() { | 461 void HTMLMetaElement::process() { |
| 462 if (!isConnected()) | 462 if (!isInDocumentTree()) |
| 463 return; | 463 return; |
| 464 | 464 |
| 465 // All below situations require a content attribute (which can be the empty | 465 // All below situations require a content attribute (which can be the empty |
| 466 // string). | 466 // string). |
| 467 const AtomicString& contentValue = fastGetAttribute(contentAttr); | 467 const AtomicString& contentValue = fastGetAttribute(contentAttr); |
| 468 if (contentValue.isNull()) | 468 if (contentValue.isNull()) |
| 469 return; | 469 return; |
| 470 | 470 |
| 471 const AtomicString& nameValue = fastGetAttribute(nameAttr); | 471 const AtomicString& nameValue = fastGetAttribute(nameAttr); |
| 472 if (!nameValue.isEmpty()) { | 472 if (!nameValue.isEmpty()) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 } | 512 } |
| 513 | 513 |
| 514 const AtomicString& HTMLMetaElement::httpEquiv() const { | 514 const AtomicString& HTMLMetaElement::httpEquiv() const { |
| 515 return getAttribute(http_equivAttr); | 515 return getAttribute(http_equivAttr); |
| 516 } | 516 } |
| 517 | 517 |
| 518 const AtomicString& HTMLMetaElement::name() const { | 518 const AtomicString& HTMLMetaElement::name() const { |
| 519 return getNameAttribute(); | 519 return getNameAttribute(); |
| 520 } | 520 } |
| 521 } | 521 } |
| OLD | NEW |