| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2  * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 
| 3  * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. | 3  * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. | 
| 4  * | 4  * | 
| 5  * This library is free software; you can redistribute it and/or | 5  * This library is free software; you can redistribute it and/or | 
| 6  * modify it under the terms of the GNU Library General Public | 6  * modify it under the terms of the GNU Library General Public | 
| 7  * License as published by the Free Software Foundation; either | 7  * License as published by the Free Software Foundation; either | 
| 8  * version 2 of the License, or (at your option) any later version. | 8  * version 2 of the License, or (at your option) any later version. | 
| 9  * | 9  * | 
| 10  * This library is distributed in the hope that it will be useful, | 10  * This library is distributed in the hope that it will be useful, | 
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 406         for (unsigned i = 0; i < styleSheet->m_importRules.size(); ++i) { | 406         for (unsigned i = 0; i < styleSheet->m_importRules.size(); ++i) { | 
| 407             StyleRuleImport* importRule = styleSheet->m_importRules[i].get(); | 407             StyleRuleImport* importRule = styleSheet->m_importRules[i].get(); | 
| 408             if (importRule->styleSheet()) { | 408             if (importRule->styleSheet()) { | 
| 409                 styleSheetQueue.append(importRule->styleSheet()); | 409                 styleSheetQueue.append(importRule->styleSheet()); | 
| 410                 addSubresourceURL(urls, importRule->styleSheet()->baseURL()); | 410                 addSubresourceURL(urls, importRule->styleSheet()->baseURL()); | 
| 411             } | 411             } | 
| 412         } | 412         } | 
| 413         for (unsigned i = 0; i < styleSheet->m_childRules.size(); ++i) { | 413         for (unsigned i = 0; i < styleSheet->m_childRules.size(); ++i) { | 
| 414             StyleRuleBase* rule = styleSheet->m_childRules[i].get(); | 414             StyleRuleBase* rule = styleSheet->m_childRules[i].get(); | 
| 415             if (rule->isStyleRule()) | 415             if (rule->isStyleRule()) | 
| 416                 static_cast<StyleRule*>(rule)->properties()->addSubresourceStyle
     URLs(urls, this); | 416                 toStyleRule(rule)->properties()->addSubresourceStyleURLs(urls, t
     his); | 
| 417             else if (rule->isFontFaceRule()) | 417             else if (rule->isFontFaceRule()) | 
| 418                 static_cast<StyleRuleFontFace*>(rule)->properties()->addSubresou
     rceStyleURLs(urls, this); | 418                 static_cast<StyleRuleFontFace*>(rule)->properties()->addSubresou
     rceStyleURLs(urls, this); | 
| 419         } | 419         } | 
| 420     } | 420     } | 
| 421 } | 421 } | 
| 422 | 422 | 
| 423 static bool childRulesHaveFailedOrCanceledSubresources(const Vector<RefPtr<Style
     RuleBase> >& rules) | 423 static bool childRulesHaveFailedOrCanceledSubresources(const Vector<RefPtr<Style
     RuleBase> >& rules) | 
| 424 { | 424 { | 
| 425     for (unsigned i = 0; i < rules.size(); ++i) { | 425     for (unsigned i = 0; i < rules.size(); ++i) { | 
| 426         const StyleRuleBase* rule = rules[i].get(); | 426         const StyleRuleBase* rule = rules[i].get(); | 
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 499     m_isInMemoryCache = false; | 499     m_isInMemoryCache = false; | 
| 500 } | 500 } | 
| 501 | 501 | 
| 502 void StyleSheetContents::shrinkToFit() | 502 void StyleSheetContents::shrinkToFit() | 
| 503 { | 503 { | 
| 504     m_importRules.shrinkToFit(); | 504     m_importRules.shrinkToFit(); | 
| 505     m_childRules.shrinkToFit(); | 505     m_childRules.shrinkToFit(); | 
| 506 } | 506 } | 
| 507 | 507 | 
| 508 } | 508 } | 
| OLD | NEW | 
|---|