webengine/osswebengine/WebCore/html/HTMLLinkElement.cpp
changeset 27 6297cdf66332
parent 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
26:cb62a4f66ebe 27:6297cdf66332
   190 
   190 
   191     String type = m_type.lower();
   191     String type = m_type.lower();
   192 
   192 
   193     // IE extension: location of small icon for locationbar / bookmarks
   193     // IE extension: location of small icon for locationbar / bookmarks
   194     // We'll record this URL per document, even if we later only use it in top level frames
   194     // We'll record this URL per document, even if we later only use it in top level frames
   195     if (m_isIcon && !m_url.isEmpty())
   195     if (m_isIcon && !m_url.isEmpty()) {
   196         document()->setIconURL(m_url, type);
   196         document()->setIconURL(m_url, type);
       
   197         if(document()->frame() && document()->frame()->loader()) {
       
   198             // Notify frame loader to retry icon loading
       
   199             document()->frame()->loader()->iconLoadDecisionAvailable();
       
   200         }
       
   201     }
   197 
   202 
   198     // Stylesheet
   203     // Stylesheet
   199     // This was buggy and would incorrectly match <link rel="alternate">, which has a different specified meaning. -dwh
   204     // This was buggy and would incorrectly match <link rel="alternate">, which has a different specified meaning. -dwh
   200     if (m_disabledState != 2 && (type.contains("text/css") || m_isStyleSheet) && document()->frame()) {
   205     if (m_disabledState != 2 && (type.contains("text/css") || m_isStyleSheet) && document()->frame()) {
   201         // no need to load style sheets which aren't for the screen output
   206         // no need to load style sheets which aren't for the screen output