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

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

Issue 1032033002: Fire error events for a variety of script and style failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 9 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
« no previous file with comments | « Source/core/dom/StyleElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 explicit LinkStyle(HTMLLinkElement* owner); 62 explicit LinkStyle(HTMLLinkElement* owner);
63 virtual ~LinkStyle(); 63 virtual ~LinkStyle();
64 64
65 virtual Type type() const override { return Style; } 65 virtual Type type() const override { return Style; }
66 virtual void process() override; 66 virtual void process() override;
67 virtual void ownerRemoved() override; 67 virtual void ownerRemoved() override;
68 virtual bool hasLoaded() const override { return m_loadedSheet; } 68 virtual bool hasLoaded() const override { return m_loadedSheet; }
69 DECLARE_VIRTUAL_TRACE(); 69 DECLARE_VIRTUAL_TRACE();
70 70
71 void startLoadingDynamicSheet(); 71 void startLoadingDynamicSheet();
72 void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred); 72 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu s);
73 bool sheetLoaded(); 73 bool sheetLoaded();
74 74
75 void setDisabledState(bool); 75 void setDisabledState(bool);
76 void setSheetTitle(const String&); 76 void setSheetTitle(const String&);
77 77
78 bool styleSheetIsLoading() const; 78 bool styleSheetIsLoading() const;
79 bool hasSheet() const { return m_sheet; } 79 bool hasSheet() const { return m_sheet; }
80 bool isDisabled() const { return m_disabledState == Disabled; } 80 bool isDisabled() const { return m_disabledState == Disabled; }
81 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript ; } 81 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript ; }
82 bool isUnset() const { return m_disabledState == Unset; } 82 bool isUnset() const { return m_disabledState == Unset; }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void process(); 185 void process();
186 static void processCallback(Node*); 186 static void processCallback(Node*);
187 187
188 // From Node and subclassses 188 // From Node and subclassses
189 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 189 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
190 virtual void removedFrom(ContainerNode*) override; 190 virtual void removedFrom(ContainerNode*) override;
191 virtual bool isURLAttribute(const Attribute&) const override; 191 virtual bool isURLAttribute(const Attribute&) const override;
192 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; 192 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override;
193 virtual const QualifiedName& subResourceAttributeName() const override; 193 virtual const QualifiedName& subResourceAttributeName() const override;
194 virtual bool sheetLoaded() override; 194 virtual bool sheetLoaded() override;
195 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred) override; 195 virtual void notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErrorSta tus) override;
196 virtual void startLoadingDynamicSheet() override; 196 virtual void startLoadingDynamicSheet() override;
197 virtual void finishParsingChildren() override; 197 virtual void finishParsingChildren() override;
198 198
199 // From LinkLoaderClient 199 // From LinkLoaderClient
200 virtual void linkLoaded() override; 200 virtual void linkLoaded() override;
201 virtual void linkLoadingErrored() override; 201 virtual void linkLoadingErrored() override;
202 virtual void didStartLinkPrerender() override; 202 virtual void didStartLinkPrerender() override;
203 virtual void didStopLinkPrerender() override; 203 virtual void didStopLinkPrerender() override;
204 virtual void didSendLoadForLinkPrerender() override; 204 virtual void didSendLoadForLinkPrerender() override;
205 virtual void didSendDOMContentLoadedForLinkPrerender() override; 205 virtual void didSendDOMContentLoadedForLinkPrerender() override;
(...skipping 10 matching lines...) Expand all
216 Vector<IntSize> m_iconSizes; 216 Vector<IntSize> m_iconSizes;
217 LinkRelAttribute m_relAttribute; 217 LinkRelAttribute m_relAttribute;
218 218
219 bool m_createdByParser; 219 bool m_createdByParser;
220 bool m_isInShadowTree; 220 bool m_isInShadowTree;
221 }; 221 };
222 222
223 } // namespace blink 223 } // namespace blink
224 224
225 #endif // HTMLLinkElement_h 225 #endif // HTMLLinkElement_h
OLDNEW
« no previous file with comments | « Source/core/dom/StyleElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698