Bug 1641076 - Remove RestyleManager::ProcessPostTraversal unused argument. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D76946
This commit is contained in:
Cameron McCormack 2020-05-26 22:52:47 +00:00
parent 7e76f582e7
commit 5df8c99574
2 changed files with 3 additions and 4 deletions

View File

@ -2575,7 +2575,6 @@ static ServoPostTraversalFlags SendA11yNotifications(
}
bool RestyleManager::ProcessPostTraversal(Element* aElement,
ComputedStyle* aParentContext,
ServoRestyleState& aRestyleState,
ServoPostTraversalFlags aFlags) {
nsIFrame* styleFrame = nsLayoutUtils::GetStyleFrame(aElement);
@ -2800,7 +2799,7 @@ bool RestyleManager::ProcessPostTraversal(Element* aElement,
for (nsIContent* n = it.GetNextChild(); n; n = it.GetNextChild()) {
if (traverseElementChildren && n->IsElement()) {
recreatedAnyContext |= ProcessPostTraversal(
n->AsElement(), upToDateStyle, childrenRestyleState, childrenFlags);
n->AsElement(), childrenRestyleState, childrenFlags);
} else if (traverseTextChildren && n->IsText()) {
recreatedAnyContext |= ProcessPostTraversalForText(
n, textState, childrenRestyleState, childrenFlags);
@ -3005,7 +3004,7 @@ void RestyleManager::DoProcessPendingRestyles(ServoTraversalFlags aFlags) {
ServoRestyleState state(*styleSet, currentChanges, wrappersToRestyle,
anchorsToSuppress);
ServoPostTraversalFlags flags = ServoPostTraversalFlags::Empty;
anyStyleChanged |= ProcessPostTraversal(root, nullptr, state, flags);
anyStyleChanged |= ProcessPostTraversal(root, state, flags);
}
// We want to suppress adjustments the current (before-change) scroll

View File

@ -463,7 +463,7 @@ class RestyleManager {
* attribute changes that happens not to have any effect on the style of that
* element or any descendant or sibling.
*/
bool ProcessPostTraversal(Element* aElement, ComputedStyle* aParentContext,
bool ProcessPostTraversal(Element* aElement,
ServoRestyleState& aRestyleState,
ServoPostTraversalFlags aFlags);