mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Updates for better floater support
This commit is contained in:
parent
4c615158e5
commit
b89e62ef43
@ -22,6 +22,8 @@
|
||||
#include "nsIFrame.h"
|
||||
#include "nsVoidArray.h"
|
||||
|
||||
struct nsCSSBlockReflowState;
|
||||
class nsPlaceholderFrame;
|
||||
struct nsStyleDisplay;
|
||||
struct nsStylePosition;
|
||||
|
||||
@ -58,6 +60,10 @@ public:
|
||||
nsISpaceManager* aSpaceManager);
|
||||
~nsCSSLineLayout();
|
||||
|
||||
void Init(nsCSSBlockReflowState* aReflowState) {
|
||||
mBlockReflowState = aReflowState;
|
||||
}
|
||||
|
||||
// Reset the text-run information in preparation for a FindTextRuns
|
||||
void ResetTextRuns();
|
||||
|
||||
@ -92,13 +98,14 @@ public:
|
||||
mLineNumber++;
|
||||
}
|
||||
|
||||
void AddFloater(nsIFrame* aFrame);
|
||||
void AddFloater(nsPlaceholderFrame* aFrame);
|
||||
|
||||
static PRBool TreatFrameAsBlock(const nsStyleDisplay* aDisplay,
|
||||
const nsStylePosition* aPosition);
|
||||
|
||||
nsIPresContext* mPresContext;
|
||||
nsISpaceManager* mSpaceManager;
|
||||
nsCSSBlockReflowState* mBlockReflowState;
|
||||
|
||||
PRBool mListPositionOutside;
|
||||
PRInt32 mLineNumber;
|
||||
|
Loading…
Reference in New Issue
Block a user