| 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, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 7 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
| 8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 referrer_policy_ = kReferrerPolicyDefault; | 84 referrer_policy_ = kReferrerPolicyDefault; |
| 85 if (!value.IsNull()) { | 85 if (!value.IsNull()) { |
| 86 SecurityPolicy::ReferrerPolicyFromString( | 86 SecurityPolicy::ReferrerPolicyFromString( |
| 87 value, kDoNotSupportReferrerPolicyLegacyKeywords, &referrer_policy_); | 87 value, kDoNotSupportReferrerPolicyLegacyKeywords, &referrer_policy_); |
| 88 UseCounter::Count(GetDocument(), | 88 UseCounter::Count(GetDocument(), |
| 89 UseCounter::kHTMLLinkElementReferrerPolicyAttribute); | 89 UseCounter::kHTMLLinkElementReferrerPolicyAttribute); |
| 90 } | 90 } |
| 91 } else if (name == sizesAttr) { | 91 } else if (name == sizesAttr) { |
| 92 sizes_->setValue(value); | 92 sizes_->setValue(value); |
| 93 } else if (name == mediaAttr) { | 93 } else if (name == mediaAttr) { |
| 94 media_ = value.Lower(); | 94 media_ = value.DeprecatedLower(); |
| 95 Process(); | 95 Process(); |
| 96 } else if (name == scopeAttr) { | 96 } else if (name == scopeAttr) { |
| 97 scope_ = value; | 97 scope_ = value; |
| 98 Process(); | 98 Process(); |
| 99 } else if (name == disabledAttr) { | 99 } else if (name == disabledAttr) { |
| 100 UseCounter::Count(GetDocument(), UseCounter::kHTMLLinkElementDisabled); | 100 UseCounter::Count(GetDocument(), UseCounter::kHTMLLinkElementDisabled); |
| 101 if (LinkStyle* link = GetLinkStyle()) | 101 if (LinkStyle* link = GetLinkStyle()) |
| 102 link->SetDisabledState(!value.IsNull()); | 102 link->SetDisabledState(!value.IsNull()); |
| 103 } else { | 103 } else { |
| 104 if (name == titleAttr) { | 104 if (name == titleAttr) { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 LinkLoaderClient::Trace(visitor); | 370 LinkLoaderClient::Trace(visitor); |
| 371 DOMTokenListObserver::Trace(visitor); | 371 DOMTokenListObserver::Trace(visitor); |
| 372 } | 372 } |
| 373 | 373 |
| 374 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { | 374 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { |
| 375 visitor->TraceWrappers(rel_list_); | 375 visitor->TraceWrappers(rel_list_); |
| 376 HTMLElement::TraceWrappers(visitor); | 376 HTMLElement::TraceWrappers(visitor); |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace blink | 379 } // namespace blink |
| OLD | NEW |