зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1142369 - Include padding of generated image in intrinsic isize of bullet frame. r=roc
--HG-- extra : source : 16afdc3d6f1e987f086bb0a378e98ab747699e15
This commit is contained in:
Родитель
08c51c0528
Коммит
a0cff90eee
|
@ -663,6 +663,7 @@ nsBulletFrame::GetMinISize(nsRenderingContext *aRenderingContext)
|
|||
nsHTMLReflowMetrics metrics(wm);
|
||||
DISPLAY_MIN_WIDTH(this, metrics.ISize(wm));
|
||||
GetDesiredSize(PresContext(), aRenderingContext, metrics, 1.0f);
|
||||
metrics.ISize(wm) += mPadding.IStartEnd(wm);
|
||||
return metrics.ISize(wm);
|
||||
}
|
||||
|
||||
|
@ -673,6 +674,7 @@ nsBulletFrame::GetPrefISize(nsRenderingContext *aRenderingContext)
|
|||
nsHTMLReflowMetrics metrics(wm);
|
||||
DISPLAY_PREF_WIDTH(this, metrics.ISize(wm));
|
||||
GetDesiredSize(PresContext(), aRenderingContext, metrics, 1.0f);
|
||||
metrics.ISize(wm) += mPadding.IStartEnd(wm);
|
||||
return metrics.ISize(wm);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1142369</title>
|
||||
</head>
|
||||
<body>
|
||||
<li style="list-style: inside;">blahblah and foobarboo</li>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1142369</title>
|
||||
</head>
|
||||
<body>
|
||||
<li style="width: -moz-max-content; list-style: inside;">blahblah and foobarboo</li>
|
||||
</body>
|
||||
</html>
|
|
@ -7,3 +7,4 @@ asserts(1) == ol-reversed-1b.html ol-reversed-1-ref.html # bug 478135
|
|||
== ol-reversed-3.html ol-reversed-3-ref.html
|
||||
== bullet-space-1.html bullet-space-1-ref.html
|
||||
== bullet-space-2.html bullet-space-2-ref.html
|
||||
== bullet-intrinsic-isize-1.html bullet-intrinsic-isize-1-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче