Changeset 201332 in webkit
- Timestamp:
- May 24, 2016, 9:46:44 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r201331 r201332 1 2016-05-24 Antti Koivisto <antti@apple.com> 2 3 REGRESSION (r196629): Safari can get into a state where switching Reader theme doesn't apply to the webpage 4 https://bugs.webkit.org/show_bug.cgi?id=158018 5 <rdar://problem/24732776> 6 7 Reviewed by Darin Adler. 8 9 When a tab goes to background we clear the style resolver. It is recreated lazily when the tab is again active. 10 However style invalidation code tests if the style resolver exists and skips the invalidation if it doesn't. 11 With sufficiently simple document (like in Reader) we may never create one for other reasons and so style 12 invalidation doesn't work. 13 14 No test, don't know how to make one. 15 16 * dom/Element.cpp: 17 (WebCore::Element::needsStyleInvalidation): 18 19 Remove styleResolverIfExists() check and do the invalidation normally. 20 Instead check for forced style recalc. If there is one pending we don't need to bother with invalidation. 21 1 22 2016-05-24 Yusuke Suzuki <utatane.tea@gmail.com> 2 23 -
trunk/Source/WebCore/dom/Element.cpp
r201205 r201332 2528 2528 if (styleChangeType() >= FullStyleChange) 2529 2529 return false; 2530 if ( !document().styleResolverIfExists())2530 if (document().hasPendingForcedStyleRecalc()) 2531 2531 return false; 2532 2532
Note:
See TracChangeset
for help on using the changeset viewer.