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 10 matching lines...) Expand all Loading... |
21 * | 21 * |
22 */ | 22 */ |
23 | 23 |
24 #ifndef HTMLLinkElement_h | 24 #ifndef HTMLLinkElement_h |
25 #define HTMLLinkElement_h | 25 #define HTMLLinkElement_h |
26 | 26 |
27 #include "bindings/core/v8/TraceWrapperMember.h" | 27 #include "bindings/core/v8/TraceWrapperMember.h" |
28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
29 #include "core/dom/DOMTokenList.h" | 29 #include "core/dom/DOMTokenList.h" |
30 #include "core/dom/IncrementLoadEventDelayCount.h" | 30 #include "core/dom/IncrementLoadEventDelayCount.h" |
| 31 #include "core/fetch/FetchRequest.h" |
31 #include "core/html/HTMLElement.h" | 32 #include "core/html/HTMLElement.h" |
32 #include "core/html/LinkRelAttribute.h" | 33 #include "core/html/LinkRelAttribute.h" |
33 #include "core/html/LinkResource.h" | 34 #include "core/html/LinkResource.h" |
34 #include "core/html/LinkStyle.h" | 35 #include "core/html/LinkStyle.h" |
35 #include "core/html/RelList.h" | 36 #include "core/html/RelList.h" |
36 #include "core/loader/LinkLoader.h" | 37 #include "core/loader/LinkLoader.h" |
37 #include "core/loader/LinkLoaderClient.h" | 38 #include "core/loader/LinkLoaderClient.h" |
38 #include <memory> | 39 #include <memory> |
39 | 40 |
40 namespace blink { | 41 namespace blink { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 const String& as, | 100 const String& as, |
100 const String& media, | 101 const String& media, |
101 ReferrerPolicy, | 102 ReferrerPolicy, |
102 const KURL&); | 103 const KURL&); |
103 bool isAlternate() const { | 104 bool isAlternate() const { |
104 return linkStyle()->isUnset() && m_relAttribute.isAlternate(); | 105 return linkStyle()->isUnset() && m_relAttribute.isAlternate(); |
105 } | 106 } |
106 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } | 107 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } |
107 bool isCreatedByParser() const { return m_createdByParser; } | 108 bool isCreatedByParser() const { return m_createdByParser; } |
108 | 109 |
| 110 FetchRequest createFetchRequest() const; |
| 111 |
109 DECLARE_VIRTUAL_TRACE(); | 112 DECLARE_VIRTUAL_TRACE(); |
110 | 113 |
111 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 114 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
112 | 115 |
113 private: | 116 private: |
114 HTMLLinkElement(Document&, bool createdByParser); | 117 HTMLLinkElement(Document&, bool createdByParser); |
115 | 118 |
116 LinkStyle* linkStyle() const; | 119 LinkStyle* linkStyle() const; |
117 LinkImport* linkImport() const; | 120 LinkImport* linkImport() const; |
118 LinkResource* linkResourceToProcess(); | 121 LinkResource* linkResourceToProcess(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 TraceWrapperMember<RelList> m_relList; | 161 TraceWrapperMember<RelList> m_relList; |
159 LinkRelAttribute m_relAttribute; | 162 LinkRelAttribute m_relAttribute; |
160 String m_scope; | 163 String m_scope; |
161 | 164 |
162 bool m_createdByParser; | 165 bool m_createdByParser; |
163 }; | 166 }; |
164 | 167 |
165 } // namespace blink | 168 } // namespace blink |
166 | 169 |
167 #endif // HTMLLinkElement_h | 170 #endif // HTMLLinkElement_h |
OLD | NEW |