Bug 1266288 - Track changes to all margin properties for scroll-linked effects. r?mstange
MozReview-Commit-ID: D0wN1TdFdtM
--- a/layout/style/nsDOMCSSDeclaration.cpp
+++ b/layout/style/nsDOMCSSDeclaration.cpp
@@ -80,20 +80,25 @@ nsDOMCSSDeclaration::SetPropertyValue(co
{
switch (aPropID) {
case eCSSProperty_background_position:
case eCSSProperty_transform:
case eCSSProperty_top:
case eCSSProperty_left:
case eCSSProperty_bottom:
case eCSSProperty_right:
+ case eCSSProperty_margin:
case eCSSProperty_margin_top:
case eCSSProperty_margin_left:
case eCSSProperty_margin_bottom:
case eCSSProperty_margin_right:
+ case eCSSProperty_margin_inline_start:
+ case eCSSProperty_margin_inline_end:
+ case eCSSProperty_margin_block_start:
+ case eCSSProperty_margin_block_end:
mozilla::layers::ScrollLinkedEffectDetector::PositioningPropertyMutated();
break;
default:
break;
}
if (aValue.IsEmpty()) {
// If the new value of the property is an empty string we remove the