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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 490 |
491 // Get the document to process the tag, but only if we're actually part of DOM | 491 // Get the document to process the tag, but only if we're actually part of DOM |
492 // tree (changing a meta tag while it's not in the tree shouldn't have any | 492 // tree (changing a meta tag while it's not in the tree shouldn't have any |
493 // effect on the document). | 493 // effect on the document). |
494 | 494 |
495 const AtomicString& httpEquivValue = fastGetAttribute(http_equivAttr); | 495 const AtomicString& httpEquivValue = fastGetAttribute(http_equivAttr); |
496 if (httpEquivValue.isEmpty()) | 496 if (httpEquivValue.isEmpty()) |
497 return; | 497 return; |
498 | 498 |
499 HttpEquiv::process(document(), httpEquivValue, contentValue, | 499 HttpEquiv::process(document(), httpEquivValue, contentValue, |
500 inDocumentHead(this)); | 500 inDocumentHead(this), this); |
501 } | 501 } |
502 | 502 |
503 WTF::TextEncoding HTMLMetaElement::computeEncoding() const { | 503 WTF::TextEncoding HTMLMetaElement::computeEncoding() const { |
504 HTMLAttributeList attributeList; | 504 HTMLAttributeList attributeList; |
505 for (const Attribute& attr : attributes()) | 505 for (const Attribute& attr : attributes()) |
506 attributeList.append( | 506 attributeList.append( |
507 std::make_pair(attr.name().localName(), attr.value().getString())); | 507 std::make_pair(attr.name().localName(), attr.value().getString())); |
508 return encodingFromMetaAttributes(attributeList); | 508 return encodingFromMetaAttributes(attributeList); |
509 } | 509 } |
510 | 510 |
511 const AtomicString& HTMLMetaElement::content() const { | 511 const AtomicString& HTMLMetaElement::content() const { |
512 return getAttribute(contentAttr); | 512 return getAttribute(contentAttr); |
513 } | 513 } |
514 | 514 |
515 const AtomicString& HTMLMetaElement::httpEquiv() const { | 515 const AtomicString& HTMLMetaElement::httpEquiv() const { |
516 return getAttribute(http_equivAttr); | 516 return getAttribute(http_equivAttr); |
517 } | 517 } |
518 | 518 |
519 const AtomicString& HTMLMetaElement::name() const { | 519 const AtomicString& HTMLMetaElement::name() const { |
520 return getNameAttribute(); | 520 return getNameAttribute(); |
521 } | 521 } |
522 } | 522 } |
OLD | NEW |