Backed out 4 changesets (bug 1331322) for Android reftest failures in 1169331-1.html and forced-bg-color-outside-visible-region.html
Backed out changeset 96c6b5a11284 (bug 1331322) Backed out changeset 15877d32de7d (bug 1331322) Backed out changeset 841d608704d7 (bug 1331322) Backed out changeset 02096c5eb029 (bug 1331322)
This commit is contained in:
@@ -72,9 +72,12 @@ nsProgressFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
|
||||
mBarDiv = doc->CreateHTMLElement(nsGkAtoms::div);
|
||||
|
||||
// Associate ::-moz-progress-bar pseudo-element to the anonymous child.
|
||||
mBarDiv->SetPseudoElementType(CSSPseudoElementType::mozProgressBar);
|
||||
CSSPseudoElementType pseudoType = CSSPseudoElementType::mozProgressBar;
|
||||
RefPtr<nsStyleContext> newStyleContext = PresContext()->StyleSet()->
|
||||
ResolvePseudoElementStyle(mContent->AsElement(), pseudoType,
|
||||
StyleContext(), mBarDiv->AsElement());
|
||||
|
||||
if (!aElements.AppendElement(mBarDiv)) {
|
||||
if (!aElements.AppendElement(ContentInfo(mBarDiv, newStyleContext))) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user