Changeset 13371 in webkit
- Timestamp:
- Mar 17, 2006 7:22:49 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r13369 r13371 1 2006-03-17 Alice Liu <alice.liu@apple.com> 2 3 Reviewed by Hyatt. 4 5 - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=6999 6 "Dynamically added link-tag disables the use of change styles 7 dynamically" 8 9 * khtml/html/html_headimpl.cpp: 10 (WebCore::HTMLLinkElementImpl::process): 11 - dynamically added link-tags for stylesheets were messing up the 12 counting of pending stylesheets. If a head link element 13 specifies a new stylesheet but the previously specified 14 stylesheet is still loading, tell the document that stylesheets 15 are loaded so that there are no remaining requests for it to be 16 loaded. 17 1 18 2006-03-17 Geoffrey Garen <ggaren@apple.com> 2 19 -
trunk/WebCore/khtml/html/html_headimpl.cpp
r13187 r13371 232 232 // also, don't load style sheets for standalone documents 233 233 if (m_media.isNull() || m_media.contains("screen") || m_media.contains("all") || m_media.contains("print")) { 234 m_loading = true;235 234 236 235 // Add ourselves as a pending sheet, but only if we aren't an alternate … … 240 239 241 240 QString chset = getAttribute(charsetAttr).qstring(); 242 if (m_cachedSheet) 241 if (m_cachedSheet) { 242 if (m_loading) { 243 getDocument()->stylesheetLoaded(); 244 } 243 245 m_cachedSheet->deref(this); 246 } 247 m_loading = true; 244 248 m_cachedSheet = getDocument()->docLoader()->requestStyleSheet(m_url, chset); 245 249 if (m_cachedSheet)
Note: See TracChangeset
for help on using the changeset viewer.