Bug 1529422 - Part 4: Log a warning if webpage is updating individual transforms. r=mstange
authorBoris Chiou <boris.chiou@gmail.com>
Sun, 24 Feb 2019 03:26:26 +0000
changeset 518640 2a82b9a67559
parent 518639 4bbab76b6ec8
child 518641 1cacb0b1fe7b
child 518642 4f67210d5e4e
child 518703 ce84b6498cd2
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1529422
milestone67.0a1
first release with
nightly linux32
2a82b9a67559 / 67.0a1 / 20190224092357 / files
nightly linux64
2a82b9a67559 / 67.0a1 / 20190224092357 / files
nightly mac
2a82b9a67559 / 67.0a1 / 20190224092357 / files
nightly win32
2a82b9a67559 / 67.0a1 / 20190224092357 / files
nightly win64
2a82b9a67559 / 67.0a1 / 20190224092357 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1529422 - Part 4: Log a warning if webpage is updating individual transforms. r=mstange All transform-like properties should set PositioningPropertyMutated. Depends on D19632 Differential Revision: https://phabricator.services.mozilla.com/D19635
layout/style/nsDOMCSSDeclaration.cpp
--- a/layout/style/nsDOMCSSDeclaration.cpp
+++ b/layout/style/nsDOMCSSDeclaration.cpp
@@ -48,16 +48,19 @@ nsresult nsDOMCSSDeclaration::GetPropert
 nsresult nsDOMCSSDeclaration::SetPropertyValue(
     const nsCSSPropertyID aPropID, const nsAString& aValue,
     nsIPrincipal* aSubjectPrincipal) {
   switch (aPropID) {
     case eCSSProperty_background_position:
     case eCSSProperty_background_position_x:
     case eCSSProperty_background_position_y:
     case eCSSProperty_transform:
+    case eCSSProperty_translate:
+    case eCSSProperty_rotate:
+    case eCSSProperty_scale:
     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: