| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 process(); | 442 process(); |
| 443 return InsertionDone; | 443 return InsertionDone; |
| 444 } | 444 } |
| 445 | 445 |
| 446 static bool inDocumentHead(HTMLMetaElement* element) | 446 static bool inDocumentHead(HTMLMetaElement* element) |
| 447 { | 447 { |
| 448 if (!element->inDocument()) | 448 if (!element->inDocument()) |
| 449 return false; | 449 return false; |
| 450 | 450 |
| 451 for (Element* current = element; current; current = current->parentElement()
) { | 451 for (Element* current = element; current; current = current->parentElement()
) { |
| 452 if (current->hasTagName(HTMLNames::headTag)) | 452 if (isHTMLHeadElement(*current)) |
| 453 return true; | 453 return true; |
| 454 } | 454 } |
| 455 return false; | 455 return false; |
| 456 } | 456 } |
| 457 | 457 |
| 458 void HTMLMetaElement::process() | 458 void HTMLMetaElement::process() |
| 459 { | 459 { |
| 460 if (!inDocument()) | 460 if (!inDocument()) |
| 461 return; | 461 return; |
| 462 | 462 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 { | 495 { |
| 496 return getAttribute(http_equivAttr); | 496 return getAttribute(http_equivAttr); |
| 497 } | 497 } |
| 498 | 498 |
| 499 const AtomicString& HTMLMetaElement::name() const | 499 const AtomicString& HTMLMetaElement::name() const |
| 500 { | 500 { |
| 501 return getNameAttribute(); | 501 return getNameAttribute(); |
| 502 } | 502 } |
| 503 | 503 |
| 504 } | 504 } |
| OLD | NEW |