зеркало из https://github.com/mozilla/gecko-dev.git
Fixed problem with images splitting when they should not be. b=111255 r=karnaze sr=waterson
This commit is contained in:
Родитель
fa6686c2d6
Коммит
651a74602c
|
@ -903,7 +903,13 @@ nsImageFrame::Reflow(nsIPresContext* aPresContext,
|
||||||
aMetrics.height = PR_MAX(0, aMetrics.height);
|
aMetrics.height = PR_MAX(0, aMetrics.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight) &&
|
|
||||||
|
// we have to split images if we are:
|
||||||
|
// in Paginated mode, we need to have a constrained height, and have a height larger than our available height
|
||||||
|
PRBool isPaginated;
|
||||||
|
aPresContext->IsPaginated(&isPaginated);
|
||||||
|
if ((isPaginated) &&
|
||||||
|
(NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight) &&
|
||||||
(aMetrics.height > aReflowState.availableHeight)) {
|
(aMetrics.height > aReflowState.availableHeight)) {
|
||||||
nsCOMPtr<nsIAtom> fType;
|
nsCOMPtr<nsIAtom> fType;
|
||||||
GetFrameType(getter_AddRefs(fType));
|
GetFrameType(getter_AddRefs(fType));
|
||||||
|
|
|
@ -903,7 +903,13 @@ nsImageFrame::Reflow(nsIPresContext* aPresContext,
|
||||||
aMetrics.height = PR_MAX(0, aMetrics.height);
|
aMetrics.height = PR_MAX(0, aMetrics.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight) &&
|
|
||||||
|
// we have to split images if we are:
|
||||||
|
// in Paginated mode, we need to have a constrained height, and have a height larger than our available height
|
||||||
|
PRBool isPaginated;
|
||||||
|
aPresContext->IsPaginated(&isPaginated);
|
||||||
|
if ((isPaginated) &&
|
||||||
|
(NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight) &&
|
||||||
(aMetrics.height > aReflowState.availableHeight)) {
|
(aMetrics.height > aReflowState.availableHeight)) {
|
||||||
nsCOMPtr<nsIAtom> fType;
|
nsCOMPtr<nsIAtom> fType;
|
||||||
GetFrameType(getter_AddRefs(fType));
|
GetFrameType(getter_AddRefs(fType));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче