Bug 944246 - Make getComputedStyle pass in anonymous content when resolving pseudo-element style. r=bz

This commit is contained in:
Cameron McCormack
2013-12-03 10:57:50 +11:00
parent 4cc7b0e6ea
commit 7f26a46040
16 changed files with 141 additions and 5 deletions

View File

@@ -1432,6 +1432,17 @@ nsTextControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
}
}
nsIContent*
nsTextControlFrame::GetPseudoElementContent(nsCSSPseudoElements::Type aType)
{
if (aType == nsCSSPseudoElements::ePseudo_mozPlaceholder) {
nsCOMPtr<nsITextControlElement> txtCtrl = do_QueryInterface(GetContent());
return txtCtrl->GetPlaceholderNode();
}
return nsContainerFrame::GetPseudoElementContent(aType);
}
NS_IMETHODIMP
nsTextControlFrame::EditorInitializer::Run()
{