Title: [252339] trunk/Source/WebCore
- Revision
- 252339
- Author
- [email protected]
- Date
- 2019-11-11 14:43:56 -0800 (Mon, 11 Nov 2019)
Log Message
Empty property sets should not mark MatchedProperties uncacheable
https://bugs.webkit.org/show_bug.cgi?id=204079
Reviewed by Zalan Bujtas.
* css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::addElementStyleProperties):
Bail out if there are no incoming properties.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (252338 => 252339)
--- trunk/Source/WebCore/ChangeLog 2019-11-11 22:13:55 UTC (rev 252338)
+++ trunk/Source/WebCore/ChangeLog 2019-11-11 22:43:56 UTC (rev 252339)
@@ -1,3 +1,15 @@
+2019-11-11 Antti Koivisto <[email protected]>
+
+ Empty property sets should not mark MatchedProperties uncacheable
+ https://bugs.webkit.org/show_bug.cgi?id=204079
+
+ Reviewed by Zalan Bujtas.
+
+ * css/ElementRuleCollector.cpp:
+ (WebCore::ElementRuleCollector::addElementStyleProperties):
+
+ Bail out if there are no incoming properties.
+
2019-11-11 Andy Estes <[email protected]>
PaymentRequest / PaymentResponse should not prevent entering the back/forward cache
Modified: trunk/Source/WebCore/css/ElementRuleCollector.cpp (252338 => 252339)
--- trunk/Source/WebCore/css/ElementRuleCollector.cpp 2019-11-11 22:13:55 UTC (rev 252338)
+++ trunk/Source/WebCore/css/ElementRuleCollector.cpp 2019-11-11 22:43:56 UTC (rev 252339)
@@ -123,13 +123,13 @@
inline void ElementRuleCollector::addElementStyleProperties(const StyleProperties* propertySet, bool isCacheable)
{
- if (!propertySet)
+ if (!propertySet || propertySet->isEmpty())
return;
- addMatchedProperties({ propertySet }, DeclarationOrigin::Author);
-
if (!isCacheable)
m_result.isCacheable = false;
+
+ addMatchedProperties({ propertySet }, DeclarationOrigin::Author);
}
void ElementRuleCollector::collectMatchingRules(const MatchRequest& matchRequest)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes