Use new cssLayout api
git-svn-id: svn://10.0.0.236/trunk@2753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6afff43de1
commit
be4ed98aae
@ -1111,7 +1111,8 @@ nsBlockFrame::InitializeState(nsIPresContext* aPresContext,
|
||||
// Get and apply the stylistic size. Note: do not limit the
|
||||
// height until we are done reflowing.
|
||||
PRIntn ss = aState.mStyleSizeFlags =
|
||||
nsCSSLayout::GetStyleSize(aPresContext, this, aState.mStyleSize);
|
||||
nsCSSLayout::GetStyleSize(aPresContext, aReflowState,
|
||||
aState.mStyleSize);
|
||||
if (0 != (ss & NS_SIZE_HAS_WIDTH)) {
|
||||
aState.mAvailSize.width = aState.mStyleSize.width + lr;
|
||||
}
|
||||
|
||||
@ -1111,7 +1111,8 @@ nsBlockFrame::InitializeState(nsIPresContext* aPresContext,
|
||||
// Get and apply the stylistic size. Note: do not limit the
|
||||
// height until we are done reflowing.
|
||||
PRIntn ss = aState.mStyleSizeFlags =
|
||||
nsCSSLayout::GetStyleSize(aPresContext, this, aState.mStyleSize);
|
||||
nsCSSLayout::GetStyleSize(aPresContext, aReflowState,
|
||||
aState.mStyleSize);
|
||||
if (0 != (ss & NS_SIZE_HAS_WIDTH)) {
|
||||
aState.mAvailSize.width = aState.mStyleSize.width + lr;
|
||||
}
|
||||
|
||||
@ -1111,7 +1111,8 @@ nsBlockFrame::InitializeState(nsIPresContext* aPresContext,
|
||||
// Get and apply the stylistic size. Note: do not limit the
|
||||
// height until we are done reflowing.
|
||||
PRIntn ss = aState.mStyleSizeFlags =
|
||||
nsCSSLayout::GetStyleSize(aPresContext, this, aState.mStyleSize);
|
||||
nsCSSLayout::GetStyleSize(aPresContext, aReflowState,
|
||||
aState.mStyleSize);
|
||||
if (0 != (ss & NS_SIZE_HAS_WIDTH)) {
|
||||
aState.mAvailSize.width = aState.mStyleSize.width + lr;
|
||||
}
|
||||
|
||||
@ -1111,7 +1111,8 @@ nsBlockFrame::InitializeState(nsIPresContext* aPresContext,
|
||||
// Get and apply the stylistic size. Note: do not limit the
|
||||
// height until we are done reflowing.
|
||||
PRIntn ss = aState.mStyleSizeFlags =
|
||||
nsCSSLayout::GetStyleSize(aPresContext, this, aState.mStyleSize);
|
||||
nsCSSLayout::GetStyleSize(aPresContext, aReflowState,
|
||||
aState.mStyleSize);
|
||||
if (0 != (ss & NS_SIZE_HAS_WIDTH)) {
|
||||
aState.mAvailSize.width = aState.mStyleSize.width + lr;
|
||||
}
|
||||
|
||||
@ -1111,7 +1111,8 @@ nsBlockFrame::InitializeState(nsIPresContext* aPresContext,
|
||||
// Get and apply the stylistic size. Note: do not limit the
|
||||
// height until we are done reflowing.
|
||||
PRIntn ss = aState.mStyleSizeFlags =
|
||||
nsCSSLayout::GetStyleSize(aPresContext, this, aState.mStyleSize);
|
||||
nsCSSLayout::GetStyleSize(aPresContext, aReflowState,
|
||||
aState.mStyleSize);
|
||||
if (0 != (ss & NS_SIZE_HAS_WIDTH)) {
|
||||
aState.mAvailSize.width = aState.mStyleSize.width + lr;
|
||||
}
|
||||
|
||||
@ -1111,7 +1111,8 @@ nsBlockFrame::InitializeState(nsIPresContext* aPresContext,
|
||||
// Get and apply the stylistic size. Note: do not limit the
|
||||
// height until we are done reflowing.
|
||||
PRIntn ss = aState.mStyleSizeFlags =
|
||||
nsCSSLayout::GetStyleSize(aPresContext, this, aState.mStyleSize);
|
||||
nsCSSLayout::GetStyleSize(aPresContext, aReflowState,
|
||||
aState.mStyleSize);
|
||||
if (0 != (ss & NS_SIZE_HAS_WIDTH)) {
|
||||
aState.mAvailSize.width = aState.mStyleSize.width + lr;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user