OLD | NEW |
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 bool hasSheet() const { return m_sheet; } | 80 bool hasSheet() const { return m_sheet; } |
81 bool isDisabled() const { return m_disabledState == Disabled; } | 81 bool isDisabled() const { return m_disabledState == Disabled; } |
82 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript
; } | 82 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript
; } |
83 bool isUnset() const { return m_disabledState == Unset; } | 83 bool isUnset() const { return m_disabledState == Unset; } |
84 | 84 |
85 CSSStyleSheet* sheet() const { return m_sheet.get(); } | 85 CSSStyleSheet* sheet() const { return m_sheet.get(); } |
86 | 86 |
87 private: | 87 private: |
88 // From StyleSheetResourceClient | 88 // From StyleSheetResourceClient |
89 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String&
charset, const CSSStyleSheetResource*) override; | 89 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String&
charset, const CSSStyleSheetResource*) override; |
| 90 String debugName() const override { return "LinkStyle"; } |
90 | 91 |
91 enum DisabledState { | 92 enum DisabledState { |
92 Unset, | 93 Unset, |
93 EnabledViaScript, | 94 EnabledViaScript, |
94 Disabled | 95 Disabled |
95 }; | 96 }; |
96 | 97 |
97 enum PendingSheetType { | 98 enum PendingSheetType { |
98 None, | 99 None, |
99 NonBlocking, | 100 NonBlocking, |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 Vector<IntSize> m_iconSizes; | 223 Vector<IntSize> m_iconSizes; |
223 LinkRelAttribute m_relAttribute; | 224 LinkRelAttribute m_relAttribute; |
224 | 225 |
225 bool m_createdByParser; | 226 bool m_createdByParser; |
226 bool m_isInShadowTree; | 227 bool m_isInShadowTree; |
227 }; | 228 }; |
228 | 229 |
229 } // namespace blink | 230 } // namespace blink |
230 | 231 |
231 #endif // HTMLLinkElement_h | 232 #endif // HTMLLinkElement_h |
OLD | NEW |