mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 994418 - Renumber list items when computing intrinsic isize. r=roc
This commit is contained in:
parent
8c7237c198
commit
dd5d16097d
@ -693,6 +693,9 @@ nsBlockFrame::GetMinISize(nsRenderingContext *aRenderingContext)
|
||||
curFrame->LazyMarkLinesDirty();
|
||||
}
|
||||
|
||||
if (RenumberLists(PresContext())) {
|
||||
AddStateBits(NS_FRAME_HAS_DIRTY_CHILDREN);
|
||||
}
|
||||
if (GetStateBits() & NS_BLOCK_NEEDS_BIDI_RESOLUTION)
|
||||
ResolveBidi();
|
||||
InlineMinISizeData data;
|
||||
@ -778,6 +781,9 @@ nsBlockFrame::GetPrefISize(nsRenderingContext *aRenderingContext)
|
||||
curFrame->LazyMarkLinesDirty();
|
||||
}
|
||||
|
||||
if (RenumberLists(PresContext())) {
|
||||
AddStateBits(NS_FRAME_HAS_DIRTY_CHILDREN);
|
||||
}
|
||||
if (GetStateBits() & NS_BLOCK_NEEDS_BIDI_RESOLUTION)
|
||||
ResolveBidi();
|
||||
InlinePrefISizeData data;
|
||||
|
10
layout/reftests/list-item/bullet-intrinsic-isize-2-ref.html
Normal file
10
layout/reftests/list-item/bullet-intrinsic-isize-2-ref.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 994418</title>
|
||||
</head>
|
||||
<body>
|
||||
MMMCMXCIX. sometext
|
||||
</body>
|
||||
</html>
|
17
layout/reftests/list-item/bullet-intrinsic-isize-2.html
Normal file
17
layout/reftests/list-item/bullet-intrinsic-isize-2.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 994418</title>
|
||||
<style>
|
||||
ol {
|
||||
display: inline-block;
|
||||
list-style: upper-roman inside;
|
||||
padding: 0; margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ol start="3999"><li></ol>sometext
|
||||
</body>
|
||||
</html>
|
@ -8,3 +8,4 @@ asserts(1) == ol-reversed-1b.html ol-reversed-1-ref.html # bug 478135
|
||||
== 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
|
||||
== bullet-intrinsic-isize-2.html bullet-intrinsic-isize-2-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user