| 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 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2011 Google 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 public: | 134 public: |
| 135 static HTMLLinkElement* create(Document&, bool createdByParser); | 135 static HTMLLinkElement* create(Document&, bool createdByParser); |
| 136 ~HTMLLinkElement() override; | 136 ~HTMLLinkElement() override; |
| 137 | 137 |
| 138 KURL href() const; | 138 KURL href() const; |
| 139 const AtomicString& rel() const; | 139 const AtomicString& rel() const; |
| 140 String media() const { return m_media; } | 140 String media() const { return m_media; } |
| 141 String typeValue() const { return m_type; } | 141 String typeValue() const { return m_type; } |
| 142 String asValue() const { return m_as; } | 142 String asValue() const { return m_as; } |
| 143 String referrerPolicy() const { return m_referrerPolicy; } |
| 143 const LinkRelAttribute& relAttribute() const { return m_relAttribute; } | 144 const LinkRelAttribute& relAttribute() const { return m_relAttribute; } |
| 144 DOMTokenList& relList() const { | 145 DOMTokenList& relList() const { |
| 145 return static_cast<DOMTokenList&>(*m_relList); | 146 return static_cast<DOMTokenList&>(*m_relList); |
| 146 } | 147 } |
| 147 String scope() const { return m_scope; } | 148 String scope() const { return m_scope; } |
| 148 | 149 |
| 149 const AtomicString& type() const; | 150 const AtomicString& type() const; |
| 150 | 151 |
| 151 IconType getIconType() const; | 152 IconType getIconType() const; |
| 152 | 153 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 173 void dispatchPendingEvent(std::unique_ptr<IncrementLoadEventDelayCount>); | 174 void dispatchPendingEvent(std::unique_ptr<IncrementLoadEventDelayCount>); |
| 174 void scheduleEvent(); | 175 void scheduleEvent(); |
| 175 | 176 |
| 176 // From LinkLoaderClient | 177 // From LinkLoaderClient |
| 177 bool shouldLoadLink() override; | 178 bool shouldLoadLink() override; |
| 178 | 179 |
| 179 // For LinkStyle | 180 // For LinkStyle |
| 180 bool loadLink(const String& type, | 181 bool loadLink(const String& type, |
| 181 const String& as, | 182 const String& as, |
| 182 const String& media, | 183 const String& media, |
| 184 const String& referrerPolicy, |
| 183 const KURL&); | 185 const KURL&); |
| 184 bool isAlternate() const { | 186 bool isAlternate() const { |
| 185 return linkStyle()->isUnset() && m_relAttribute.isAlternate(); | 187 return linkStyle()->isUnset() && m_relAttribute.isAlternate(); |
| 186 } | 188 } |
| 187 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } | 189 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } |
| 188 bool isCreatedByParser() const { return m_createdByParser; } | 190 bool isCreatedByParser() const { return m_createdByParser; } |
| 189 | 191 |
| 190 DECLARE_VIRTUAL_TRACE(); | 192 DECLARE_VIRTUAL_TRACE(); |
| 191 | 193 |
| 192 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 194 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 228 |
| 227 // From DOMTokenListObserver | 229 // From DOMTokenListObserver |
| 228 void valueWasSet() final; | 230 void valueWasSet() final; |
| 229 | 231 |
| 230 Member<LinkResource> m_link; | 232 Member<LinkResource> m_link; |
| 231 Member<LinkLoader> m_linkLoader; | 233 Member<LinkLoader> m_linkLoader; |
| 232 | 234 |
| 233 String m_type; | 235 String m_type; |
| 234 String m_as; | 236 String m_as; |
| 235 String m_media; | 237 String m_media; |
| 238 String m_referrerPolicy; |
| 236 Member<DOMTokenList> m_sizes; | 239 Member<DOMTokenList> m_sizes; |
| 237 Vector<IntSize> m_iconSizes; | 240 Vector<IntSize> m_iconSizes; |
| 238 Member<RelList> m_relList; | 241 Member<RelList> m_relList; |
| 239 LinkRelAttribute m_relAttribute; | 242 LinkRelAttribute m_relAttribute; |
| 240 String m_scope; | 243 String m_scope; |
| 241 | 244 |
| 242 bool m_createdByParser; | 245 bool m_createdByParser; |
| 243 }; | 246 }; |
| 244 | 247 |
| 245 } // namespace blink | 248 } // namespace blink |
| 246 | 249 |
| 247 #endif // HTMLLinkElement_h | 250 #endif // HTMLLinkElement_h |
| OLD | NEW |