Title: [204827] releases/WebKitGTK/webkit-2.12/Source/WebCore
- Revision
- 204827
- Author
- [email protected]
- Date
- 2016-08-23 05:59:38 -0700 (Tue, 23 Aug 2016)
Log Message
Merge r201332 - REGRESSION (r196629): Safari can get into a state where switching Reader theme doesn't apply to the webpage
https://bugs.webkit.org/show_bug.cgi?id=158018
<rdar://problem/24732776>
Reviewed by Darin Adler.
When a tab goes to background we clear the style resolver. It is recreated lazily when the tab is again active.
However style invalidation code tests if the style resolver exists and skips the invalidation if it doesn't.
With sufficiently simple document (like in Reader) we may never create one for other reasons and so style
invalidation doesn't work.
No test, don't know how to make one.
* dom/Element.cpp:
(WebCore::Element::needsStyleInvalidation):
Remove styleResolverIfExists() check and do the invalidation normally.
Instead check for forced style recalc. If there is one pending we don't need to bother with invalidation.
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.12/Source/WebCore/ChangeLog (204826 => 204827)
--- releases/WebKitGTK/webkit-2.12/Source/WebCore/ChangeLog 2016-08-23 12:57:27 UTC (rev 204826)
+++ releases/WebKitGTK/webkit-2.12/Source/WebCore/ChangeLog 2016-08-23 12:59:38 UTC (rev 204827)
@@ -1,3 +1,24 @@
+2016-05-24 Antti Koivisto <[email protected]>
+
+ REGRESSION (r196629): Safari can get into a state where switching Reader theme doesn't apply to the webpage
+ https://bugs.webkit.org/show_bug.cgi?id=158018
+ <rdar://problem/24732776>
+
+ Reviewed by Darin Adler.
+
+ When a tab goes to background we clear the style resolver. It is recreated lazily when the tab is again active.
+ However style invalidation code tests if the style resolver exists and skips the invalidation if it doesn't.
+ With sufficiently simple document (like in Reader) we may never create one for other reasons and so style
+ invalidation doesn't work.
+
+ No test, don't know how to make one.
+
+ * dom/Element.cpp:
+ (WebCore::Element::needsStyleInvalidation):
+
+ Remove styleResolverIfExists() check and do the invalidation normally.
+ Instead check for forced style recalc. If there is one pending we don't need to bother with invalidation.
+
2016-05-31 Dave Hyatt <[email protected]>
REGRESSION (r189567): Elements with aspect ratios not handled correctly inside flexbox.
Modified: releases/WebKitGTK/webkit-2.12/Source/WebCore/dom/Element.cpp (204826 => 204827)
--- releases/WebKitGTK/webkit-2.12/Source/WebCore/dom/Element.cpp 2016-08-23 12:57:27 UTC (rev 204826)
+++ releases/WebKitGTK/webkit-2.12/Source/WebCore/dom/Element.cpp 2016-08-23 12:59:38 UTC (rev 204827)
@@ -2489,7 +2489,7 @@
return false;
if (styleChangeType() >= FullStyleChange)
return false;
- if (!document().styleResolverIfExists())
+ if (document().hasPendingForcedStyleRecalc())
return false;
return true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes