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

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

Issue 1501393003: Deprecate fetching stylesheets with unsupported type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 /* 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 DECLARE_VIRTUAL_TRACE(); 70 DECLARE_VIRTUAL_TRACE();
71 71
72 void startLoadingDynamicSheet(); 72 void startLoadingDynamicSheet();
73 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu s); 73 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu s);
74 bool sheetLoaded(); 74 bool sheetLoaded();
75 75
76 void setDisabledState(bool); 76 void setDisabledState(bool);
77 void setSheetTitle(const String&); 77 void setSheetTitle(const String&);
78 78
79 bool styleSheetIsLoading() const; 79 bool styleSheetIsLoading() const;
80 bool styleSheetTypeIsSupported(const String& type) const;
80 bool hasSheet() const { return m_sheet; } 81 bool hasSheet() const { return m_sheet; }
81 bool isDisabled() const { return m_disabledState == Disabled; } 82 bool isDisabled() const { return m_disabledState == Disabled; }
82 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript ; } 83 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript ; }
83 bool isUnset() const { return m_disabledState == Unset; } 84 bool isUnset() const { return m_disabledState == Unset; }
84 85
85 CSSStyleSheet* sheet() const { return m_sheet.get(); } 86 CSSStyleSheet* sheet() const { return m_sheet.get(); }
86 87
87 private: 88 private:
88 // From StyleSheetResourceClient 89 // From StyleSheetResourceClient
89 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override; 90 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 Vector<IntSize> m_iconSizes; 225 Vector<IntSize> m_iconSizes;
225 LinkRelAttribute m_relAttribute; 226 LinkRelAttribute m_relAttribute;
226 227
227 bool m_createdByParser; 228 bool m_createdByParser;
228 bool m_isInShadowTree; 229 bool m_isInShadowTree;
229 }; 230 };
230 231
231 } // namespace blink 232 } // namespace blink
232 233
233 #endif // HTMLLinkElement_h 234 #endif // HTMLLinkElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698