Bug 1366657 - Set stylesheet and parent rules properly for keyframe rules. r?heycam
MozReview-Commit-ID: CdIm4IypeN0
--- a/layout/style/ServoKeyframesRule.cpp
+++ b/layout/style/ServoKeyframesRule.cpp
@@ -51,16 +51,18 @@ public:
ServoStyleSheet* GetParentObject() final { return mStyleSheet; }
ServoKeyframeRule* GetRule(uint32_t aIndex) {
if (!mRules[aIndex]) {
ServoKeyframeRule* rule = new ServoKeyframeRule(
Servo_KeyframesRule_GetKeyframe(mRawRule, aIndex).Consume());
mRules.ReplaceObjectAt(rule, aIndex);
+ rule->SetStyleSheet(mStyleSheet);
+ rule->SetParentRule(mParentRule);
}
return static_cast<ServoKeyframeRule*>(mRules[aIndex]);
}
ServoKeyframeRule* IndexedGetter(uint32_t aIndex, bool& aFound) final
{
if (aIndex >= mRules.Length()) {
aFound = false;
--- a/layout/style/test/stylo-failures.md
+++ b/layout/style/test/stylo-failures.md
@@ -31,21 +31,18 @@ to mochitest command.
* Media query support:
* test_media_queries.html [38]
* test_media_queries_dynamic.html [6]
* test_media_queries_dynamic_xbl.html [2]
* test_webkit_device_pixel_ratio.html: -webkit-device-pixel-ratio [3]
* browser_bug453896.js [8]
* Animation support:
- * test_animations.html [1]
- * test_animations_dynamic_changes.html [1]
- * test_bug716226.html [3]
* OMTA
- * test_animations_omta.html: bug 1361938, bug 1361663 [85]
+ * test_animations_omta.html: bug 1361938, bug 1361663 [*]
* SMIL Animation
* test_restyles_in_smil_animation.html [2]
* CSSOM support:
* \@import bug 1352968
* test_bug221428.html [1]
* test_css_eof_handling.html [1]
* test_bug397427.html: @import issue bug 1331291 and CSSOM support of @import [1]
* console support bug 1352669