Chromium Code Reviews

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

Issue 1413563005: Reset CORS status upon re-initiating fetch of a stylesheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 93 matching lines...)
104 void addPendingSheet(PendingSheetType); 104 void addPendingSheet(PendingSheetType);
105 void removePendingSheet(); 105 void removePendingSheet();
106 Document& document(); 106 Document& document();
107 107
108 void setCrossOriginStylesheetStatus(CSSStyleSheet*); 108 void setCrossOriginStylesheetStatus(CSSStyleSheet*);
109 void setFetchFollowingCORS() 109 void setFetchFollowingCORS()
110 { 110 {
111 ASSERT(!m_fetchFollowingCORS); 111 ASSERT(!m_fetchFollowingCORS);
112 m_fetchFollowingCORS = true; 112 m_fetchFollowingCORS = true;
113 } 113 }
114 void clearFetchFollowingCORS()
115 {
116 m_fetchFollowingCORS = false;
117 }
114 118
115 RefPtrWillBeMember<CSSStyleSheet> m_sheet; 119 RefPtrWillBeMember<CSSStyleSheet> m_sheet;
116 DisabledState m_disabledState; 120 DisabledState m_disabledState;
117 PendingSheetType m_pendingSheetType; 121 PendingSheetType m_pendingSheetType;
118 bool m_loading; 122 bool m_loading;
119 bool m_firedLoad; 123 bool m_firedLoad;
120 bool m_loadedSheet; 124 bool m_loadedSheet;
121 bool m_fetchFollowingCORS; 125 bool m_fetchFollowingCORS;
122 }; 126 };
123 127
(...skipping 94 matching lines...)
218 Vector<IntSize> m_iconSizes; 222 Vector<IntSize> m_iconSizes;
219 LinkRelAttribute m_relAttribute; 223 LinkRelAttribute m_relAttribute;
220 224
221 bool m_createdByParser; 225 bool m_createdByParser;
222 bool m_isInShadowTree; 226 bool m_isInShadowTree;
223 }; 227 };
224 228
225 } // namespace blink 229 } // namespace blink
226 230
227 #endif // HTMLLinkElement_h 231 #endif // HTMLLinkElement_h
OLDNEW

Powered by Google App Engine