Bug 115113. Eliminate nsIReflowCommand, and just use nsHTMLReflowCommand directly. r=karnaze, sr=attinasi.

git-svn-id: svn://10.0.0.236/trunk@110644 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2001-12-17 22:39:59 +00:00
parent 40cda08ce0
commit b6978c3e09
113 changed files with 1023 additions and 853 deletions

View File

@@ -52,7 +52,7 @@
#include "nsIRenderingContext.h"
#include "nsLayoutAtoms.h"
#include "nsPlaceholderFrame.h"
#include "nsIReflowCommand.h"
#include "nsHTMLReflowCommand.h"
#include "nsIDocument.h"
#include "nsIHTMLDocument.h"
#include "nsIContent.h"
@@ -942,11 +942,11 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
// it's target is the current span, then make sure we send
// StyleChange reflow reasons down to the children so that they
// don't over-optimize their reflow.
nsIReflowCommand* rc = rs->reflowCommand;
nsHTMLReflowCommand* rc = rs->reflowCommand;
if (rc) {
nsIReflowCommand::ReflowType type;
nsReflowType type;
rc->GetType(type);
if (type == nsIReflowCommand::StyleChanged) {
if (type == eReflowType_StyleChanged) {
nsIFrame* parentFrame = psd->mFrame
? psd->mFrame->mFrame
: mBlockReflowState->frame;
@@ -956,7 +956,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
reason = eReflowReason_StyleChange;
}
}
else if (type == nsIReflowCommand::ReflowDirty &&
else if (type == eReflowType_ReflowDirty &&
(state & NS_FRAME_IS_DIRTY)) {
reason = eReflowReason_Dirty;
}