| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 bool styleSheetIsLoading() const; | 142 bool styleSheetIsLoading() const; |
| 143 | 143 |
| 144 bool isImport() const { return linkImport(); } | 144 bool isImport() const { return linkImport(); } |
| 145 bool isDisabled() const { return linkStyle() && linkStyle()->isDisabled(); } | 145 bool isDisabled() const { return linkStyle() && linkStyle()->isDisabled(); } |
| 146 bool isEnabledViaScript() const { return linkStyle() && linkStyle()->isEnabl
edViaScript(); } | 146 bool isEnabledViaScript() const { return linkStyle() && linkStyle()->isEnabl
edViaScript(); } |
| 147 DOMSettableTokenList* sizes() const; | 147 DOMSettableTokenList* sizes() const; |
| 148 | 148 |
| 149 void dispatchPendingEvent(LinkEventSender*); | 149 void dispatchPendingEvent(LinkEventSender*); |
| 150 void scheduleEvent(); | 150 void scheduleEvent(); |
| 151 void dispatchEventImmediately(); |
| 151 static void dispatchPendingLoadEvents(); | 152 static void dispatchPendingLoadEvents(); |
| 152 | 153 |
| 153 // From LinkLoaderClient | 154 // From LinkLoaderClient |
| 154 virtual bool shouldLoadLink() OVERRIDE; | 155 virtual bool shouldLoadLink() OVERRIDE; |
| 155 | 156 |
| 156 // For LinkStyle | 157 // For LinkStyle |
| 157 bool loadLink(const String& type, const KURL& url) { return m_linkLoader.loa
dLink(m_relAttribute, type, url, document()); } | 158 bool loadLink(const String& type, const KURL& url) { return m_linkLoader.loa
dLink(m_relAttribute, type, url, document()); } |
| 158 bool isAlternate() const { return linkStyle()->isUnset() && m_relAttribute.i
sAlternate(); } | 159 bool isAlternate() const { return linkStyle()->isUnset() && m_relAttribute.i
sAlternate(); } |
| 159 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } | 160 bool shouldProcessStyle() { return linkResourceToProcess() && linkStyle(); } |
| 160 bool isCreatedByParser() const { return m_createdByParser; } | 161 bool isCreatedByParser() const { return m_createdByParser; } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 bool m_createdByParser; | 201 bool m_createdByParser; |
| 201 bool m_isInShadowTree; | 202 bool m_isInShadowTree; |
| 202 int m_beforeLoadRecurseCount; | 203 int m_beforeLoadRecurseCount; |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 DEFINE_NODE_TYPE_CASTS(HTMLLinkElement, hasTagName(HTMLNames::linkTag)); | 206 DEFINE_NODE_TYPE_CASTS(HTMLLinkElement, hasTagName(HTMLNames::linkTag)); |
| 206 | 207 |
| 207 } //namespace | 208 } //namespace |
| 208 | 209 |
| 209 #endif | 210 #endif |
| OLD | NEW |