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

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

Issue 1011103002: Allow cross-origin cssRules access to CORS-fetched stylesheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: improve test coverage a bit 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index ca79516aa5f07fec0f40282727c2b0018574f4b4..4727bfcad1cc3b6b7d9e6ab8dd67b5e14b4afe56 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -104,12 +104,20 @@ private:
void removePendingSheet();
Document& document();
+ void setCrossOriginStylesheetStatus(const KURL&, CSSStyleSheet*);
+ void setFetchFollowingCORS()
+ {
+ ASSERT(!m_fetchFollowingCORS);
Mike West 2015/03/17 20:05:46 Why ASSERT here?
sof 2015/03/17 21:52:15 Just sanity checking that it represents a state tr
+ m_fetchFollowingCORS = true;
+ }
+
RefPtrWillBeMember<CSSStyleSheet> m_sheet;
DisabledState m_disabledState;
PendingSheetType m_pendingSheetType;
bool m_loading;
bool m_firedLoad;
bool m_loadedSheet;
+ bool m_fetchFollowingCORS;
};

Powered by Google App Engine
This is Rietveld 408576698