| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 const AtomicString& nameValue = fastGetAttribute(nameAttr); | 465 const AtomicString& nameValue = fastGetAttribute(nameAttr); |
| 466 if (!nameValue.isEmpty()) { | 466 if (!nameValue.isEmpty()) { |
| 467 if (equalIgnoringCase(nameValue, "viewport")) | 467 if (equalIgnoringCase(nameValue, "viewport")) |
| 468 processViewportContentAttribute(contentValue, ViewportDescription::V
iewportMeta); | 468 processViewportContentAttribute(contentValue, ViewportDescription::V
iewportMeta); |
| 469 else if (equalIgnoringCase(nameValue, "referrer")) | 469 else if (equalIgnoringCase(nameValue, "referrer")) |
| 470 document().processReferrerPolicy(contentValue); | 470 document().processReferrerPolicy(contentValue); |
| 471 else if (equalIgnoringCase(nameValue, "handheldfriendly") && equalIgnori
ngCase(contentValue, "true")) | 471 else if (equalIgnoringCase(nameValue, "handheldfriendly") && equalIgnori
ngCase(contentValue, "true")) |
| 472 processViewportContentAttribute("width=device-width", ViewportDescri
ption::HandheldFriendlyMeta); | 472 processViewportContentAttribute("width=device-width", ViewportDescri
ption::HandheldFriendlyMeta); |
| 473 else if (equalIgnoringCase(nameValue, "mobileoptimized")) | 473 else if (equalIgnoringCase(nameValue, "mobileoptimized")) |
| 474 processViewportContentAttribute("width=device-width, initial-scale=1
", ViewportDescription::MobileOptimizedMeta); | 474 processViewportContentAttribute("width=device-width, initial-scale=1
", ViewportDescription::MobileOptimizedMeta); |
| 475 else if (RuntimeEnabledFeatures::themeColorEnabled() && equalIgnoringCas
e(nameValue, "theme-color") && document().frame()) | 475 else if (equalIgnoringCase(nameValue, "theme-color") && document().frame
()) |
| 476 document().frame()->loader().client()->dispatchDidChangeThemeColor()
; | 476 document().frame()->loader().client()->dispatchDidChangeThemeColor()
; |
| 477 } | 477 } |
| 478 | 478 |
| 479 // Get the document to process the tag, but only if we're actually part of D
OM | 479 // Get the document to process the tag, but only if we're actually part of D
OM |
| 480 // tree (changing a meta tag while it's not in the tree shouldn't have any e
ffect | 480 // tree (changing a meta tag while it's not in the tree shouldn't have any e
ffect |
| 481 // on the document). | 481 // on the document). |
| 482 | 482 |
| 483 const AtomicString& httpEquivValue = fastGetAttribute(http_equivAttr); | 483 const AtomicString& httpEquivValue = fastGetAttribute(http_equivAttr); |
| 484 if (!httpEquivValue.isEmpty()) | 484 if (!httpEquivValue.isEmpty()) |
| 485 document().processHttpEquiv(httpEquivValue, contentValue, inDocumentHead
(this)); | 485 document().processHttpEquiv(httpEquivValue, contentValue, inDocumentHead
(this)); |
| 486 } | 486 } |
| 487 | 487 |
| 488 const AtomicString& HTMLMetaElement::content() const | 488 const AtomicString& HTMLMetaElement::content() const |
| 489 { | 489 { |
| 490 return getAttribute(contentAttr); | 490 return getAttribute(contentAttr); |
| 491 } | 491 } |
| 492 | 492 |
| 493 const AtomicString& HTMLMetaElement::httpEquiv() const | 493 const AtomicString& HTMLMetaElement::httpEquiv() const |
| 494 { | 494 { |
| 495 return getAttribute(http_equivAttr); | 495 return getAttribute(http_equivAttr); |
| 496 } | 496 } |
| 497 | 497 |
| 498 const AtomicString& HTMLMetaElement::name() const | 498 const AtomicString& HTMLMetaElement::name() const |
| 499 { | 499 { |
| 500 return getNameAttribute(); | 500 return getNameAttribute(); |
| 501 } | 501 } |
| 502 | 502 |
| 503 } | 503 } |
| OLD | NEW |