Bug 1390409 part 1 - Remove unused ServoTraversalFlags param from ServoRestyleManager::ProcessPostTraversal. r=emilio

This was added in bug 1384769 for passing into Servo_TakeChangeHint,
but bug 1388031 changed Servo_TakeChangeHint to no longer take it, and
there is nothing else in the function which uses the flags.

MozReview-Commit-ID: LvZkJZHENUB

--HG--
extra : rebase_source : 609ad8d6be0946898622671b4f8092745e9da36a
This commit is contained in:
Xidorn Quan 2017-08-28 14:27:46 +10:00
Родитель fdf7f8ed8e
Коммит 07c894d22f
2 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -650,7 +650,6 @@ ServoRestyleManager::ProcessPostTraversal(
Element* aElement,
ServoStyleContext* aParentContext,
ServoRestyleState& aRestyleState,
ServoTraversalFlags aFlags,
bool aParentWasRestyled)
{
nsIFrame* styleFrame = nsLayoutUtils::GetStyleFrame(aElement);
@ -829,7 +828,6 @@ ServoRestyleManager::ProcessPostTraversal(
recreatedAnyContext |= ProcessPostTraversal(n->AsElement(),
upToDateContext,
childrenRestyleState,
aFlags,
wasRestyled);
} else if (traverseTextChildren && n->IsNodeOfType(nsINode::eTEXT)) {
recreatedAnyContext |= ProcessPostTraversalForText(n, textState,
@ -1027,7 +1025,7 @@ ServoRestyleManager::DoProcessPendingRestyles(ServoTraversalFlags aFlags)
nsTArray<nsIFrame*> wrappersToRestyle;
ServoRestyleState state(*styleSet, currentChanges, wrappersToRestyle);
anyStyleChanged |=
ProcessPostTraversal(root, nullptr, state, aFlags,
ProcessPostTraversal(root, nullptr, state,
/* aParentWasRestyled = */ false);
}
}

Просмотреть файл

@ -262,7 +262,6 @@ private:
bool ProcessPostTraversal(Element* aElement,
ServoStyleContext* aParentContext,
ServoRestyleState& aRestyleState,
ServoTraversalFlags aFlags,
bool aParentWasRestyled);
struct TextPostTraversalState;