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

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

Issue 2290983003: CSSStyleSheetResource should cache decoded text instead of raw bytes (Closed)
Patch Set: 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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:
90 // From StyleSheetResourceClient 90 // From StyleSheetResourceClient
91 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override; 91 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, CSSStyleSheetResource*) override;
92 String debugName() const override { return "LinkStyle"; } 92 String debugName() const override { return "LinkStyle"; }
93 93
94 enum DisabledState { 94 enum DisabledState {
95 Unset, 95 Unset,
96 EnabledViaScript, 96 EnabledViaScript,
97 Disabled 97 Disabled
98 }; 98 };
99 99
100 enum PendingSheetType { 100 enum PendingSheetType {
101 None, 101 None,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698