Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats

This commit is contained in:
Ting-Yu Lin
2016-01-29 22:42:14 +08:00
parent 8c0bb9ebba
commit 122e5b9aeb
84 changed files with 231 additions and 235 deletions

View File

@@ -2917,7 +2917,7 @@ HTMLInputElement::Focus(ErrorResult& aError)
// tab to the next one.
nsIFrame* frame = GetPrimaryFrame();
if (frame) {
for (nsIFrame* childFrame = frame->GetFirstPrincipalChild();
for (nsIFrame* childFrame = frame->PrincipalChildList().FirstChild();
childFrame;
childFrame = childFrame->GetNextSibling()) {
// See if the child is a button control.