зеркало из https://github.com/mozilla/gecko-dev.git
Use FirstChild so the method is more reusable
This commit is contained in:
Родитель
da289aba99
Коммит
1bc51979bf
|
@ -175,7 +175,8 @@ nsContainerFrame::ReResolveStyleContext(nsIPresContext* aPresContext,
|
|||
nsresult result = nsFrame::ReResolveStyleContext(aPresContext, aParentContext);
|
||||
if (oldContext != mStyleContext) {
|
||||
// Update primary child list
|
||||
nsIFrame* child = mFirstChild;
|
||||
nsIFrame* child;
|
||||
result = FirstChild(nsnull, child);
|
||||
while ((NS_SUCCEEDED(result)) && (nsnull != child)) {
|
||||
result = child->ReResolveStyleContext(aPresContext, mStyleContext);
|
||||
child->GetNextSibling(child);
|
||||
|
|
|
@ -175,7 +175,8 @@ nsContainerFrame::ReResolveStyleContext(nsIPresContext* aPresContext,
|
|||
nsresult result = nsFrame::ReResolveStyleContext(aPresContext, aParentContext);
|
||||
if (oldContext != mStyleContext) {
|
||||
// Update primary child list
|
||||
nsIFrame* child = mFirstChild;
|
||||
nsIFrame* child;
|
||||
result = FirstChild(nsnull, child);
|
||||
while ((NS_SUCCEEDED(result)) && (nsnull != child)) {
|
||||
result = child->ReResolveStyleContext(aPresContext, mStyleContext);
|
||||
child->GetNextSibling(child);
|
||||
|
|
Загрузка…
Ссылка в новой задаче