Changeset 13371 in webkit


Ignore:
Timestamp:
Mar 17, 2006 7:22:49 PM (18 years ago)
Author:
aliceli1
Message:

Reviewed by Hyatt.

dynamically"

  • khtml/html/html_headimpl.cpp: (WebCore::HTMLLinkElementImpl::process):
  • dynamically added link-tags for stylesheets were messing up the counting of pending stylesheets. If a head link element specifies a new stylesheet but the previously specified stylesheet is still loading, tell the document that stylesheets are loaded so that there are no remaining requests for it to be loaded.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r13369 r13371  
     12006-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
    1182006-03-17  Geoffrey Garen  <ggaren@apple.com>
    219
  • trunk/WebCore/khtml/html/html_headimpl.cpp

    r13187 r13371  
    232232        // also, don't load style sheets for standalone documents
    233233        if (m_media.isNull() || m_media.contains("screen") || m_media.contains("all") || m_media.contains("print")) {
    234             m_loading = true;
    235234
    236235            // Add ourselves as a pending sheet, but only if we aren't an alternate
     
    240239           
    241240            QString chset = getAttribute(charsetAttr).qstring();
    242             if (m_cachedSheet)
     241            if (m_cachedSheet) {
     242                if (m_loading) {
     243                    getDocument()->stylesheetLoaded();
     244                }
    243245                m_cachedSheet->deref(this);
     246            }
     247            m_loading = true;
    244248            m_cachedSheet = getDocument()->docLoader()->requestStyleSheet(m_url, chset);
    245249            if (m_cachedSheet)
Note: See TracChangeset for help on using the changeset viewer.