WebCore:
Reviewed by Mitz.
Fix <rdar://problem/
5425951>
REGRESSION: change to updateLayoutIgnorePendingStylesheets causes SAP Portal page to render wrong
If new nodes have been added or style recalc has been done with style sheets still pending, some nodes
may not have had their real style calculated yet. Normally this state gets cleaned when style sheets arrive
but in updateLayoutIgnorePendingStylesheets() we need to do full style recalc to get up-to-date style immediatly.
Added a document flag to track if there are any nodes that did not have their real style calculated due to
pending stylesheets.
Test: fast/dynamic/style-access-late-stylesheet-load.html
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::styleForElement):
* dom/Document.cpp:
(WebCore::Document::Document):
(WebCore::Document::recalcStyle):
(WebCore::Document::updateLayoutIgnorePendingStylesheets):
* dom/Document.h:
(WebCore::Document::setHasNodesWithPlaceholderStyle):
LayoutTests:
Reviewed by Mitz.
Test for <rdar://problem/
5425951>
REGRESSION: change to updateLayoutIgnorePendingStylesheets causes SAP Portal page to render wrong
* fast/dynamic/style-access-late-stylesheet-load-expected.txt: Added.
* fast/dynamic/style-access-late-stylesheet-load.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25308
268f45cc-cd09-0410-ab3c-
d52691b4dbfc