| Index: WebCore/css/CSSImportRule.cpp
|
| ===================================================================
|
| --- WebCore/css/CSSImportRule.cpp (revision 73036)
|
| +++ WebCore/css/CSSImportRule.cpp (working copy)
|
| @@ -142,7 +142,7 @@
|
| // if the import rule is issued dynamically, the sheet may be
|
| // removed from the pending sheet count, so let the doc know
|
| // the sheet being imported is pending.
|
| - if (parentSheet && parentSheet->loadCompleted() && root == parentSheet)
|
| + if (parentSheet && parentSheet->loadCompleted() && parentSheet->document())
|
| parentSheet->document()->addPendingSheet();
|
| m_loading = true;
|
| m_cachedSheet->addClient(this);
|
|
|