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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 void dispatchPendingEvent(LinkEventSender*); | 135 void dispatchPendingEvent(LinkEventSender*); |
136 static void dispatchPendingLoadEvents(); | 136 static void dispatchPendingLoadEvents(); |
137 | 137 |
138 // From LinkLoaderClient | 138 // From LinkLoaderClient |
139 virtual bool shouldLoadLink() OVERRIDE; | 139 virtual bool shouldLoadLink() OVERRIDE; |
140 | 140 |
141 // For LinkStyle | 141 // For LinkStyle |
142 bool loadLink(const String& type, const KURL& url) { return m_linkLoader.loa
dLink(m_relAttribute, type, url, document()); } | 142 bool loadLink(const String& type, const KURL& url) { return m_linkLoader.loa
dLink(m_relAttribute, type, url, document()); } |
143 bool isAlternate() const { return m_link->isUnset() && m_relAttribute.isAlte
rnate(); } | 143 bool isAlternate() const { return m_link->isUnset() && m_relAttribute.isAlte
rnate(); } |
144 bool shouldProcessStyle(); | 144 bool shouldProcessStyle() { return linkStyleToProcess(); } |
145 | 145 |
146 private: | 146 private: |
147 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 147 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
148 | 148 |
| 149 LinkStyle* linkStyle() const { return m_link.get(); } |
| 150 LinkStyle* linkStyleToProcess(); |
| 151 |
149 void process(); | 152 void process(); |
150 static void processCallback(Node*); | 153 static void processCallback(Node*); |
151 | 154 |
152 // From Node and subclassses | 155 // From Node and subclassses |
153 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 156 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
154 virtual void removedFrom(ContainerNode*) OVERRIDE; | 157 virtual void removedFrom(ContainerNode*) OVERRIDE; |
155 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 158 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
156 virtual bool sheetLoaded() OVERRIDE; | 159 virtual bool sheetLoaded() OVERRIDE; |
157 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred)
OVERRIDE; | 160 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred)
OVERRIDE; |
158 virtual void startLoadingDynamicSheet() OVERRIDE; | 161 virtual void startLoadingDynamicSheet() OVERRIDE; |
(...skipping 20 matching lines...) Expand all Loading... |
179 LinkRelAttribute m_relAttribute; | 182 LinkRelAttribute m_relAttribute; |
180 | 183 |
181 bool m_createdByParser; | 184 bool m_createdByParser; |
182 bool m_isInShadowTree; | 185 bool m_isInShadowTree; |
183 int m_beforeLoadRecurseCount; | 186 int m_beforeLoadRecurseCount; |
184 }; | 187 }; |
185 | 188 |
186 } //namespace | 189 } //namespace |
187 | 190 |
188 #endif | 191 #endif |
OLD | NEW |