Changeset 202104 in webkit
- Timestamp:
- Jun 15, 2016 1:52:14 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r202103 r202104 1 2016-06-15 Antti Koivisto <antti@apple.com> 2 3 GoogleMaps transit schedule explorer comes up blank initially 4 https://bugs.webkit.org/show_bug.cgi?id=158803 5 rdar://problem/25818080 6 7 Reviewed by Andreas Kling 8 9 Expand the tests to cover this case. 10 11 * fast/css/style-invalidation-attribute-change-descendants-expected.txt: 12 * fast/css/style-invalidation-attribute-change-descendants.html: 13 * fast/css/style-invalidation-class-change-descendants-expected.txt: 14 * fast/css/style-invalidation-class-change-descendants.html: 15 1 16 2016-06-15 Javier Fernandez <jfernandez@igalia.com> 2 17 -
trunk/LayoutTests/fast/css/style-invalidation-attribute-change-descendants-expected.txt
r199099 r202104 160 160 PASS testStyleChangeType("inert", "NoStyleChange") is true 161 161 PASS hasExpectedStyle is true 162 Setting attribute 'myattr3' value '' 163 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 164 PASS testStyleChangeType("target", "NoStyleChange") is true 165 PASS testStyleChangeType("inert", "NoStyleChange") is true 166 PASS hasExpectedStyle is true 167 Removing attribute 'myattr3' 168 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 169 PASS testStyleChangeType("target", "NoStyleChange") is true 170 PASS testStyleChangeType("inert", "NoStyleChange") is true 171 PASS hasExpectedStyle is true 172 Inserting stylesheet '[myattr3] target { color:rgb(12, 0, 0); }' 173 Setting attribute 'myattr3' value '' 174 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 175 PASS testStyleChangeType("target", "InlineStyleChange") is true 176 PASS testStyleChangeType("inert", "NoStyleChange") is true 177 PASS hasExpectedStyle is true 178 Removing attribute 'myattr3' 179 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 180 PASS testStyleChangeType("target", "InlineStyleChange") is true 181 PASS testStyleChangeType("inert", "NoStyleChange") is true 182 PASS hasExpectedStyle is true 162 183 PASS successfullyParsed is true 163 184 -
trunk/LayoutTests/fast/css/style-invalidation-attribute-change-descendants.html
r199099 r202104 49 49 [myattr=value11] target { 50 50 color: rgb(11, 0, 0); 51 } 52 53 [myattr3] notarget { 54 color: rgb(99, 0, 0); 51 55 } 52 56 … … 260 264 checkStyle(11); 261 265 266 setAttribute('myattr3', ''); 267 testStyleInvalidation("NoStyleChange"); 268 checkStyle(11); 269 270 removeAttribute('myattr3'); 271 testStyleInvalidation("NoStyleChange"); 272 checkStyle(11); 273 274 var dynamicSheet = document.createElement("style"); 275 dynamicSheet.innerHTML = "[myattr3] target { color:rgb(12, 0, 0); }" 276 debug("Inserting stylesheet '" + dynamicSheet.innerHTML + "'"); 277 document.head.appendChild(dynamicSheet); 278 279 setAttribute('myattr3', ''); 280 testStyleInvalidation("InlineStyleChange"); 281 checkStyle(12); 282 283 removeAttribute('myattr3'); 284 testStyleInvalidation("InlineStyleChange"); 285 checkStyle(11); 286 262 287 </script> 263 288 <script src="../../resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/css/style-invalidation-class-change-descendants-expected.txt
r198216 r202104 63 63 PASS testStyleChangeType("inert", "NoStyleChange") is true 64 64 PASS hasExpectedStyle is true 65 Adding class dynamicStyle 66 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 67 PASS testStyleChangeType("target", "NoStyleChange") is true 68 PASS testStyleChangeType("inert", "NoStyleChange") is true 69 PASS hasExpectedStyle is true 70 Removing class dynamicStyle 71 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 72 PASS testStyleChangeType("target", "NoStyleChange") is true 73 PASS testStyleChangeType("inert", "NoStyleChange") is true 74 PASS hasExpectedStyle is true 75 Inserting stylesheet 'root.dynamicStyle target { color:rgb(6, 6, 6); }' 76 Adding class dynamicStyle 77 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 78 PASS testStyleChangeType("target", "InlineStyleChange") is true 79 PASS testStyleChangeType("inert", "NoStyleChange") is true 80 PASS hasExpectedStyle is true 81 Removing class dynamicStyle 82 PASS testStyleChangeType("root", "NoStyleChange") || testStyleChangeType("root", "InlineStyleChange") is true 83 PASS testStyleChangeType("target", "InlineStyleChange") is true 84 PASS testStyleChangeType("inert", "NoStyleChange") is true 85 PASS hasExpectedStyle is true 65 86 PASS successfullyParsed is true 66 87 -
trunk/LayoutTests/fast/css/style-invalidation-class-change-descendants.html
r198216 r202104 25 25 root:not(.style5) target { 26 26 color: rgb(5, 5, 5); 27 } 28 29 root.dynamicStyle notTarget { 30 color: rgb(99, 99, 99); 27 31 } 28 32 … … 158 162 checkStyle(0); 159 163 164 addClass('dynamicStyle'); 165 testStyleInvalidation("NoStyleChange"); 166 checkStyle(0); 167 168 removeClass('dynamicStyle'); 169 testStyleInvalidation("NoStyleChange"); 170 checkStyle(0) 171 172 var dynamicSheet = document.createElement("style"); 173 dynamicSheet.innerHTML = "root.dynamicStyle target { color:rgb(6, 6, 6); }" 174 debug("Inserting stylesheet '" + dynamicSheet.innerHTML + "'"); 175 document.head.appendChild(dynamicSheet); 176 177 addClass('dynamicStyle'); 178 testStyleInvalidation("InlineStyleChange"); 179 checkStyle(6); 180 181 removeClass('dynamicStyle'); 182 testStyleInvalidation("InlineStyleChange"); 183 checkStyle(0) 184 160 185 </script> 161 186 <script src="../../resources/js-test-post.js"></script> -
trunk/Source/WebCore/ChangeLog
r202103 r202104 1 2016-06-15 Antti Koivisto <antti@apple.com> 2 3 GoogleMaps transit schedule explorer comes up blank initially 4 https://bugs.webkit.org/show_bug.cgi?id=158803 5 rdar://problem/25818080 6 7 Reviewed by Andreas Kling. 8 9 In case we had something like 10 11 .foo bar { ... } 12 13 and later a new stylesheet was added dynamically that contained 14 15 .foo baz { ... } 16 17 we would fail to add the new rules to the descendant invalidation rule sets for ".foo". This could 18 cause some style invalidations to be missed. 19 20 * css/DocumentRuleSets.cpp: 21 (WebCore::DocumentRuleSets::collectFeatures): 22 23 Reset the ancestorClassRules and ancestorAttributeRulesForHTML rule set caches when new style sheets 24 are added (==collectFeatures is called). 25 1 26 2016-06-15 Javier Fernandez <jfernandez@igalia.com> 2 27 -
trunk/Source/WebCore/css/DocumentRuleSets.cpp
r201441 r202104 115 115 m_siblingRuleSet = makeRuleSet(m_features.siblingRules); 116 116 m_uncommonAttributeRuleSet = makeRuleSet(m_features.uncommonAttributeRules); 117 118 m_ancestorClassRuleSets.clear(); 119 m_ancestorAttributeRuleSetsForHTML.clear(); 117 120 } 118 121
Note: See TracChangeset
for help on using the changeset viewer.