Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 109959) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -3003,20 +3003,21 @@ |
#endif |
bool stylesheetChangeRequiresStyleRecalc = updateActiveStylesheets(updateFlag); |
- if (!stylesheetChangeRequiresStyleRecalc) |
- return; |
if (updateFlag == DeferRecalcStyle) { |
scheduleForcedStyleRecalc(); |
return; |
} |
- |
+ |
if (didLayoutWithPendingStylesheets() && m_pendingStylesheets <= 0) { |
m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; |
if (renderer()) |
renderer()->repaint(); |
} |
+ if (!stylesheetChangeRequiresStyleRecalc) |
+ return; |
+ |
// This recalcStyle initiates a new recalc cycle. We need to bracket it to |
// make sure animations get the correct update time |
if (m_frame) |