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

Unified Diff: Source/core/html/HTMLLinkElement.h

Issue 22573005: [HTML Imports] Implement "load" and "error" events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLImportsController.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index 10c9587b3a27a1f986054db67d15354e2673e8d6..a0326b239410579622dca0009e33710bb4782829 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -65,6 +65,7 @@ public:
virtual Type type() const OVERRIDE { return Style; }
virtual void process() OVERRIDE;
virtual void ownerRemoved() OVERRIDE;
+ virtual bool hasLoaded() const OVERRIDE { return m_loadedSheet; }
void startLoadingDynamicSheet();
void notifyLoadedSheetAndAllCriticalSubresources(bool errorOccurred);
@@ -75,7 +76,6 @@ public:
bool styleSheetIsLoading() const;
bool hasSheet() const { return m_sheet; }
- bool hasLoadedSheet() const { return m_loadedSheet; }
bool isDisabled() const { return m_disabledState == Disabled; }
bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript; }
bool isUnset() const { return m_disabledState == Unset; }
@@ -149,6 +149,7 @@ public:
DOMSettableTokenList* sizes() const;
void dispatchPendingEvent(LinkEventSender*);
+ void scheduleEvent();
static void dispatchPendingLoadEvents();
// From LinkLoaderClient
« no previous file with comments | « Source/core/html/HTMLImportsController.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698