forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1302054 - Part 2: Remove no longer useful nsStyleContext::CalcDif…
…ference optimization that handles the same-rule-node case. r=dbaron nsStyleContext::CalcDifference had an optimization where, when we knew that the old and new style context have the same rule node, we knew that the only change hints that would need to be handled are those in the "not handled for descendants" category, generated due to explicit 'inherit' values on reset properties. This was because any changes due to differences in inherited properties should only have generated "handled for descendants" change hints (and thus would already have been handled on an ancestor). Before bug 931668, this let us avoid calling CalcDifference on structs that only would have generated hints that we knew we already would have handled. However, after bug 931668, we compare all structs anyway so that we can set the aEqualStructs outparam, so we don't gain anything from this optimization. We can still return these change hints we know will not need to be handled, and rely on ElementRestyler::CaptureChange to filter them out. MozReview-Commit-ID: Ld1s2Js0i6r
- Loading branch information
Showing
10 changed files
with
9 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.