Changeset 214830 in webkit
- Timestamp:
- Apr 3, 2017 12:08:07 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r214820 r214830 1 2017-04-03 Antti Koivisto <antti@apple.com> 2 3 REGRESSION (r207669): FileMaker Pro Help pages do not render correctly 4 https://bugs.webkit.org/show_bug.cgi?id=170402 5 <rdar://problem/31004344> 6 7 Reviewed by Simon Fraser. 8 9 * fast/css/document-stylesheets-dynamic-expected.html: Added. 10 * fast/css/document-stylesheets-dynamic.html: Added. 11 1 12 2017-04-03 Jeremy Jones <jeremyj@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r214829 r214830 1 2017-04-03 Antti Koivisto <antti@apple.com> 2 3 REGRESSION (r207669): FileMaker Pro Help pages do not render correctly 4 https://bugs.webkit.org/show_bug.cgi?id=170402 5 <rdar://problem/31004344> 6 7 Reviewed by Simon Fraser. 8 9 If a new stylesheet load is started from the load event the document.styleSheets does not 10 always reflect the already loaded stylesheets. 11 12 Test: fast/css/document-stylesheets-dynamic.html 13 14 * style/StyleScope.cpp: 15 (WebCore::Style::Scope::updateActiveStyleSheets): 16 17 Remove an old optimization where we would not update active stylesheets if there were pending 18 (head) stylesheet loads and they had not been updated already. 19 This is probably not a valuable optimization anymore with the new lazy stylesheet update strategy. 20 21 * style/StyleScope.h: 22 1 23 2017-04-03 Anders Carlsson <andersca@apple.com> 2 24 -
trunk/Source/WebCore/style/StyleScope.cpp
r214435 r214830 444 444 } 445 445 446 // Don't bother updating, since we haven't loaded all our style info yet447 // and haven't calculated the style resolver for the first time.448 if (!m_shadowRoot && !m_didUpdateActiveStyleSheets && hasPendingSheetsBeforeBody()) {449 clearResolver();450 return;451 }452 453 m_didUpdateActiveStyleSheets = true;454 455 446 Vector<RefPtr<StyleSheet>> activeStyleSheets; 456 447 collectActiveStyleSheets(activeStyleSheets); -
trunk/Source/WebCore/style/StyleScope.h
r214378 r214830 164 164 HashSet<const Element*> m_elementsInBodyWithPendingSheets; 165 165 166 bool m_didUpdateActiveStyleSheets { false };167 168 166 std::optional<UpdateType> m_pendingUpdate; 169 167 bool m_hasDescendantWithPendingUpdate { false };
Note: See TracChangeset
for help on using the changeset viewer.