| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef LinkStyle_h | 5 #ifndef LinkStyle_h |
| 6 #define LinkStyle_h | 6 #define LinkStyle_h |
| 7 | 7 |
| 8 #include "core/dom/Node.h" | 8 #include "core/dom/Node.h" |
| 9 #include "core/dom/StyleEngine.h" | 9 #include "core/dom/StyleEngine.h" |
| 10 #include "core/fetch/ResourceOwner.h" | 10 #include "core/fetch/ResourceOwner.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void ownerRemoved() override; | 38 void ownerRemoved() override; |
| 39 bool hasLoaded() const override { return m_loadedSheet; } | 39 bool hasLoaded() const override { return m_loadedSheet; } |
| 40 DECLARE_VIRTUAL_TRACE(); | 40 DECLARE_VIRTUAL_TRACE(); |
| 41 | 41 |
| 42 void startLoadingDynamicSheet(); | 42 void startLoadingDynamicSheet(); |
| 43 void notifyLoadedSheetAndAllCriticalSubresources( | 43 void notifyLoadedSheetAndAllCriticalSubresources( |
| 44 Node::LoadedSheetErrorStatus); | 44 Node::LoadedSheetErrorStatus); |
| 45 bool sheetLoaded(); | 45 bool sheetLoaded(); |
| 46 | 46 |
| 47 void setDisabledState(bool); | 47 void setDisabledState(bool); |
| 48 void setSheetTitle( | 48 void setSheetTitle(const String&); |
| 49 const String&, | |
| 50 StyleEngine::ActiveSheetsUpdate = StyleEngine::DontUpdateActiveSheets); | |
| 51 | 49 |
| 52 bool styleSheetIsLoading() const; | 50 bool styleSheetIsLoading() const; |
| 53 bool hasSheet() const { return m_sheet; } | 51 bool hasSheet() const { return m_sheet; } |
| 54 bool isDisabled() const { return m_disabledState == Disabled; } | 52 bool isDisabled() const { return m_disabledState == Disabled; } |
| 55 bool isEnabledViaScript() const { | 53 bool isEnabledViaScript() const { |
| 56 return m_disabledState == EnabledViaScript; | 54 return m_disabledState == EnabledViaScript; |
| 57 } | 55 } |
| 58 bool isUnset() const { return m_disabledState == Unset; } | 56 bool isUnset() const { return m_disabledState == Unset; } |
| 59 | 57 |
| 60 CSSStyleSheet* sheet() const { return m_sheet.get(); } | 58 CSSStyleSheet* sheet() const { return m_sheet.get(); } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 StyleEngineContext m_styleEngineContext; | 90 StyleEngineContext m_styleEngineContext; |
| 93 bool m_loading; | 91 bool m_loading; |
| 94 bool m_firedLoad; | 92 bool m_firedLoad; |
| 95 bool m_loadedSheet; | 93 bool m_loadedSheet; |
| 96 bool m_fetchFollowingCORS; | 94 bool m_fetchFollowingCORS; |
| 97 }; | 95 }; |
| 98 | 96 |
| 99 } // namespace blink | 97 } // namespace blink |
| 100 | 98 |
| 101 #endif | 99 #endif |
| OLD | NEW |