| Index: Source/WebCore/dom/Document.cpp
|
| ===================================================================
|
| --- Source/WebCore/dom/Document.cpp (revision 105785)
|
| +++ Source/WebCore/dom/Document.cpp (working copy)
|
| @@ -2958,8 +2958,10 @@
|
| {
|
| // Don't bother updating, since we haven't loaded all our style info yet
|
| // and haven't calculated the style selector for the first time.
|
| - if (!attached() || (!m_didCalculateStyleSelector && !haveStylesheetsLoaded()))
|
| + if (!attached() || (!m_didCalculateStyleSelector && !haveStylesheetsLoaded())) {
|
| + m_styleSelector.clear();
|
| return;
|
| + }
|
|
|
| #ifdef INSTRUMENT_LAYOUT_SCHEDULING
|
| if (!ownerElement())
|
|
|