Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: third_party/WebKit/Source/core/html/LinkStyle.h

Issue 2552353003: Setting preferred stylesheet simplified. (Closed)
Patch Set: Rebased. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.cpp ('k') | third_party/WebKit/Source/core/html/LinkStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698