REGRESSION (r207669): FileMaker Pro Help pages do not render correctly
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Apr 2017 19:08:07 +0000 (19:08 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Apr 2017 19:08:07 +0000 (19:08 +0000)
commitf5bb1be970e726107fe27b8a1f3d85638a40d9df
treefe8cd45dda26ba1a90a6941f3a464784c8674828
parent9056f4a612b7a3c8aaaff42e468c5b617595ba13
REGRESSION (r207669): FileMaker Pro Help pages do not render correctly
https://bugs.webkit.org/show_bug.cgi?id=170402
<rdar://problem/31004344>

Reviewed by Simon Fraser.

Source/WebCore:

If a new stylesheet load is started from the load event the document.styleSheets does not
always reflect the already loaded stylesheets.

Test: fast/css/document-stylesheets-dynamic.html

* style/StyleScope.cpp:
(WebCore::Style::Scope::updateActiveStyleSheets):

    Remove an old optimization where we would not update active stylesheets if there were pending
    (head) stylesheet loads and they had not been updated already.
    This is probably not a valuable optimization anymore with the new lazy stylesheet update strategy.

* style/StyleScope.h:

LayoutTests:

* fast/css/document-stylesheets-dynamic-expected.html: Added.
* fast/css/document-stylesheets-dynamic.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/document-stylesheets-dynamic-expected.html [new file with mode: 0644]
LayoutTests/fast/css/document-stylesheets-dynamic.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/style/StyleScope.cpp
Source/WebCore/style/StyleScope.h