зеркало из https://github.com/mozilla/pjs.git
Changed VerifyTree() to check that NS_FRAME_IN_REFLOW isn't set
This commit is contained in:
Родитель
efe68b130a
Коммит
a361eea70c
|
@ -1152,6 +1152,8 @@ NS_METHOD nsContainerFrame::ListTag(FILE* out) const
|
||||||
NS_METHOD nsContainerFrame::VerifyTree() const
|
NS_METHOD nsContainerFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
|
|
||||||
// Check our child count
|
// Check our child count
|
||||||
PRInt32 len = LengthOf(mFirstChild);
|
PRInt32 len = LengthOf(mFirstChild);
|
||||||
VERIFY_ASSERT(len == mChildCount, "bad child count");
|
VERIFY_ASSERT(len == mChildCount, "bad child count");
|
||||||
|
|
|
@ -1323,6 +1323,7 @@ NS_METHOD nsFrame::ListTag(FILE* out) const
|
||||||
|
|
||||||
NS_METHOD nsFrame::VerifyTree() const
|
NS_METHOD nsFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -336,6 +336,7 @@ NS_METHOD
|
||||||
nsBlockFrame::VerifyTree() const
|
nsBlockFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
||||||
if (NS_OK != rv) {
|
if (NS_OK != rv) {
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -336,6 +336,7 @@ NS_METHOD
|
||||||
nsBlockFrame::VerifyTree() const
|
nsBlockFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
||||||
if (NS_OK != rv) {
|
if (NS_OK != rv) {
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -336,6 +336,7 @@ NS_METHOD
|
||||||
nsBlockFrame::VerifyTree() const
|
nsBlockFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
||||||
if (NS_OK != rv) {
|
if (NS_OK != rv) {
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -336,6 +336,7 @@ NS_METHOD
|
||||||
nsBlockFrame::VerifyTree() const
|
nsBlockFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
||||||
if (NS_OK != rv) {
|
if (NS_OK != rv) {
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -336,6 +336,7 @@ NS_METHOD
|
||||||
nsBlockFrame::VerifyTree() const
|
nsBlockFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
||||||
if (NS_OK != rv) {
|
if (NS_OK != rv) {
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -336,6 +336,7 @@ NS_METHOD
|
||||||
nsBlockFrame::VerifyTree() const
|
nsBlockFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
nsresult rv = nsHTMLContainerFrame::VerifyTree();
|
||||||
if (NS_OK != rv) {
|
if (NS_OK != rv) {
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -238,6 +238,8 @@ NS_METHOD nsBodyFrame::Reflow(nsIPresContext* aPresContext,
|
||||||
NS_METHOD nsBodyFrame::VerifyTree() const
|
NS_METHOD nsBodyFrame::VerifyTree() const
|
||||||
{
|
{
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||||
|
|
||||||
// Check our child count
|
// Check our child count
|
||||||
PRInt32 len = LengthOf(mFirstChild);
|
PRInt32 len = LengthOf(mFirstChild);
|
||||||
NS_ASSERTION(len == mChildCount, "bad child count");
|
NS_ASSERTION(len == mChildCount, "bad child count");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче