Skip to content

Commit

Permalink
Bug 1338461 - Pass eRestyle_StyleAttribute through to Servo_NoteExpli…
Browse files Browse the repository at this point in the history
…citHints. r=bholley

MozReview-Commit-ID: C7HIOTs1SSY

--HG--
extra : rebase_source : 638fe3e1c9ecf47dcd9b175ae03344450417c7da
  • Loading branch information
heycam committed Mar 20, 2017
1 parent 48a8641 commit 52f712b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 4 additions & 4 deletions dom/plugins/test/reftest/reftest-stylo.list
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ random-if(cocoaWidget) fails-if(!haveTestPlugin&&!Android) skip-if(stylo) == plu
fails == plugin-transform-alpha-zindex.html plugin-transform-alpha-zindex.html
== plugin-busy-alpha-zindex.html plugin-busy-alpha-zindex.html
== plugin-background.html plugin-background.html
== plugin-background-1-step.html plugin-background-1-step.html
== plugin-background-2-step.html plugin-background-2-step.html
== plugin-background-5-step.html plugin-background-5-step.html
== plugin-background-10-step.html plugin-background-10-step.html
fails == plugin-background-1-step.html plugin-background-1-step.html # bug 1348723
fails == plugin-background-2-step.html plugin-background-2-step.html # bug 1348723
fails == plugin-background-5-step.html plugin-background-5-step.html # bug 1348723
fails == plugin-background-10-step.html plugin-background-10-step.html # bug 1348723
== plugin-transform-1.html plugin-transform-1.html
fails == plugin-transform-2.html plugin-transform-2.html
fails == shrink-1.html shrink-1.html
Expand Down
7 changes: 0 additions & 7 deletions layout/base/ServoRestyleManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ ServoRestyleManager::PostRestyleEvent(Element* aElement,
return;
}

// XXX This is a temporary hack to make style attribute change works.
// In the future, we should be able to use this hint directly.
if (aRestyleHint & eRestyle_StyleAttribute) {
aRestyleHint &= ~eRestyle_StyleAttribute;
aRestyleHint |= eRestyle_Self | eRestyle_Subtree;
}

if (aRestyleHint || aMinChangeHint) {
Servo_NoteExplicitHints(aElement, aRestyleHint, aMinChangeHint);
}
Expand Down

0 comments on commit 52f712b

Please sign in to comment.