| 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 "core/CoreExport.h" | 27 #include "core/CoreExport.h" |
| 28 #include "core/css/CSSStyleSheet.h" | 28 #include "core/css/CSSStyleSheet.h" |
| 29 #include "core/dom/DOMTokenList.h" | 29 #include "core/dom/DOMTokenList.h" |
| 30 #include "core/dom/IconURL.h" | 30 #include "core/dom/IconURL.h" |
| 31 #include "core/dom/StyleEngineContext.h" | 31 #include "core/dom/StyleEngine.h" |
| 32 #include "core/fetch/ResourceOwner.h" | 32 #include "core/fetch/ResourceOwner.h" |
| 33 #include "core/fetch/StyleSheetResource.h" | 33 #include "core/fetch/StyleSheetResource.h" |
| 34 #include "core/fetch/StyleSheetResourceClient.h" | 34 #include "core/fetch/StyleSheetResourceClient.h" |
| 35 #include "core/html/HTMLElement.h" | 35 #include "core/html/HTMLElement.h" |
| 36 #include "core/html/LinkRelAttribute.h" | 36 #include "core/html/LinkRelAttribute.h" |
| 37 #include "core/html/LinkResource.h" | 37 #include "core/html/LinkResource.h" |
| 38 #include "core/html/RelList.h" | 38 #include "core/html/RelList.h" |
| 39 #include "core/loader/LinkLoader.h" | 39 #include "core/loader/LinkLoader.h" |
| 40 #include "core/loader/LinkLoaderClient.h" | 40 #include "core/loader/LinkLoaderClient.h" |
| 41 | 41 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 69 void process() override; | 69 void process() override; |
| 70 void ownerRemoved() override; | 70 void ownerRemoved() override; |
| 71 bool hasLoaded() const override { return m_loadedSheet; } | 71 bool hasLoaded() const override { return m_loadedSheet; } |
| 72 DECLARE_VIRTUAL_TRACE(); | 72 DECLARE_VIRTUAL_TRACE(); |
| 73 | 73 |
| 74 void startLoadingDynamicSheet(); | 74 void startLoadingDynamicSheet(); |
| 75 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu
s); | 75 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu
s); |
| 76 bool sheetLoaded(); | 76 bool sheetLoaded(); |
| 77 | 77 |
| 78 void setDisabledState(bool); | 78 void setDisabledState(bool); |
| 79 void setSheetTitle(const String&); | 79 void setSheetTitle(const String&, StyleEngine::ActiveSheetsUpdate = StyleEng
ine::DontUpdateActiveSheets); |
| 80 | 80 |
| 81 bool styleSheetIsLoading() const; | 81 bool styleSheetIsLoading() const; |
| 82 bool hasSheet() const { return m_sheet; } | 82 bool hasSheet() const { return m_sheet; } |
| 83 bool isDisabled() const { return m_disabledState == Disabled; } | 83 bool isDisabled() const { return m_disabledState == Disabled; } |
| 84 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript
; } | 84 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript
; } |
| 85 bool isUnset() const { return m_disabledState == Unset; } | 85 bool isUnset() const { return m_disabledState == Unset; } |
| 86 | 86 |
| 87 CSSStyleSheet* sheet() const { return m_sheet.get(); } | 87 CSSStyleSheet* sheet() const { return m_sheet.get(); } |
| 88 | 88 |
| 89 private: | 89 private: |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 Member<RelList> m_relList; | 228 Member<RelList> m_relList; |
| 229 LinkRelAttribute m_relAttribute; | 229 LinkRelAttribute m_relAttribute; |
| 230 String m_scope; | 230 String m_scope; |
| 231 | 231 |
| 232 bool m_createdByParser; | 232 bool m_createdByParser; |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 } // namespace blink | 235 } // namespace blink |
| 236 | 236 |
| 237 #endif // HTMLLinkElement_h | 237 #endif // HTMLLinkElement_h |
| OLD | NEW |