Bug 1324700 - Call PreTraverseSync() before calling ResolveStyleLazily() in ResolveTransientStyle(). r=heycam

MozReview-Commit-ID: 5KMELNYZJnq

--HG--
extra : rebase_source : 025a0d2267144bd631f28f554dba54352b13a43b
This commit is contained in:
Hiroyuki Ikezoe 2017-04-15 07:37:34 +09:00
Родитель 784bf46abc
Коммит d034849334
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -422,6 +422,8 @@ ServoStyleSet::ResolvePseudoElementStyle(Element* aOriginatingElement,
already_AddRefed<nsStyleContext>
ServoStyleSet::ResolveTransientStyle(Element* aElement, CSSPseudoElementType aType)
{
PreTraverseSync();
nsIAtom* pseudoTag = nullptr;
if (aType != CSSPseudoElementType::NotPseudo) {
pseudoTag = nsCSSPseudoElements::GetPseudoAtom(aType);