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

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

Issue 2337193004: Setting the link title may change the preferred set. (Closed)
Patch Set: Rebased Created 4 years, 3 months 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 /* 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 11 matching lines...) Expand all
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/IncrementLoadEventDelayCount.h" 31 #include "core/dom/IncrementLoadEventDelayCount.h"
32 #include "core/dom/StyleEngineContext.h" 32 #include "core/dom/StyleEngine.h"
33 #include "core/fetch/ResourceOwner.h" 33 #include "core/fetch/ResourceOwner.h"
34 #include "core/fetch/StyleSheetResource.h" 34 #include "core/fetch/StyleSheetResource.h"
35 #include "core/fetch/StyleSheetResourceClient.h" 35 #include "core/fetch/StyleSheetResourceClient.h"
36 #include "core/html/HTMLElement.h" 36 #include "core/html/HTMLElement.h"
37 #include "core/html/LinkRelAttribute.h" 37 #include "core/html/LinkRelAttribute.h"
38 #include "core/html/LinkResource.h" 38 #include "core/html/LinkResource.h"
39 #include "core/html/RelList.h" 39 #include "core/html/RelList.h"
40 #include "core/loader/LinkLoader.h" 40 #include "core/loader/LinkLoader.h"
41 #include "core/loader/LinkLoaderClient.h" 41 #include "core/loader/LinkLoaderClient.h"
42 #include <memory> 42 #include <memory>
(...skipping 25 matching lines...) Expand all
68 void process() override; 68 void process() override;
69 void ownerRemoved() override; 69 void ownerRemoved() override;
70 bool hasLoaded() const override { return m_loadedSheet; } 70 bool hasLoaded() const override { return m_loadedSheet; }
71 DECLARE_VIRTUAL_TRACE(); 71 DECLARE_VIRTUAL_TRACE();
72 72
73 void startLoadingDynamicSheet(); 73 void startLoadingDynamicSheet();
74 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu s); 74 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu s);
75 bool sheetLoaded(); 75 bool sheetLoaded();
76 76
77 void setDisabledState(bool); 77 void setDisabledState(bool);
78 void setSheetTitle(const String&); 78 void setSheetTitle(const String&, StyleEngine::ActiveSheetsUpdate = StyleEng ine::DontUpdateActiveSheets);
79 79
80 bool styleSheetIsLoading() const; 80 bool styleSheetIsLoading() const;
81 bool hasSheet() const { return m_sheet; } 81 bool hasSheet() const { return m_sheet; }
82 bool isDisabled() const { return m_disabledState == Disabled; } 82 bool isDisabled() const { return m_disabledState == Disabled; }
83 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript ; } 83 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript ; }
84 bool isUnset() const { return m_disabledState == Unset; } 84 bool isUnset() const { return m_disabledState == Unset; }
85 85
86 CSSStyleSheet* sheet() const { return m_sheet.get(); } 86 CSSStyleSheet* sheet() const { return m_sheet.get(); }
87 87
88 private: 88 private:
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 Member<RelList> m_relList; 225 Member<RelList> m_relList;
226 LinkRelAttribute m_relAttribute; 226 LinkRelAttribute m_relAttribute;
227 String m_scope; 227 String m_scope;
228 228
229 bool m_createdByParser; 229 bool m_createdByParser;
230 }; 230 };
231 231
232 } // namespace blink 232 } // namespace blink
233 233
234 #endif // HTMLLinkElement_h 234 #endif // HTMLLinkElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698