mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1039009 - Handle float in the base line layout. r=dbaron
--HG-- extra : rebase_source : 981a5ae2bb8f8bf7852398ea944c6e07ed283292 extra : source : b661631e125ab0ffa2bdfa44201fe59571189423
This commit is contained in:
parent
c62bf329cd
commit
850081cda9
@ -941,7 +941,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
||||
// We might as well allow zero-width floats to be placed, though.
|
||||
availableISize = 0;
|
||||
}
|
||||
placedFloat = AddFloat(outOfFlowFrame, availableISize);
|
||||
placedFloat = mBaseLineLayout->AddFloat(outOfFlowFrame, availableISize);
|
||||
NS_ASSERTION(!(outOfFlowFrame->GetType() == nsGkAtoms::letterFrame &&
|
||||
GetFirstLetterStyleOK()),
|
||||
"FirstLetterStyle set on line with floating first letter");
|
||||
|
22
layout/reftests/css-ruby/float-handling-ref.html
Normal file
22
layout/reftests/css-ruby/float-handling-ref.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
<style>
|
||||
ruby div {
|
||||
width: 10px; height: 10px;
|
||||
background-color: grey;
|
||||
}
|
||||
.left { float: left; }
|
||||
.right { float: right; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><ruby><rb><div class="left"></div>hello world</rb><rt>hello world</rt></ruby></div>
|
||||
<div><ruby><rb><div class="left"></div>hello world</rb><rt>hello world</rt></ruby></div>
|
||||
<div><ruby><rb><div class="right"></div>hello world</rb><rt>hello world</rt></ruby></div>
|
||||
<div><ruby><rb><div class="right"></div>hello world</rb><rt>hello world</rt></ruby></div>
|
||||
</body>
|
||||
</html>
|
22
layout/reftests/css-ruby/float-handling.html
Normal file
22
layout/reftests/css-ruby/float-handling.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
<style>
|
||||
ruby div {
|
||||
width: 10px; height: 10px;
|
||||
background-color: grey;
|
||||
}
|
||||
.left { float: left; }
|
||||
.right { float: right; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><ruby><rb>hello world</rb><rt><div class="left"></div>hello world</rt></ruby></div>
|
||||
<div><ruby><rb>hello world</rb><rt>hello<div class="left"></div> world</rt></ruby></div>
|
||||
<div><ruby><rb>hello world</rb><rt><div class="right"></div>hello world</rt></ruby></div>
|
||||
<div><ruby><rb>hello world</rb><rt>hello<div class="right"></div> world</rt></ruby></div>
|
||||
</body>
|
||||
</html>
|
@ -11,6 +11,7 @@ default-preferences pref(layout.css.ruby.enabled,true)
|
||||
== dynamic-removal-1.html dynamic-removal-1-ref.html
|
||||
== dynamic-removal-2.html dynamic-removal-2-ref.html
|
||||
fuzzy-if(winWidget,28,1) == dynamic-removal-3.html dynamic-removal-3-ref.html # bug 1111891
|
||||
== float-handling.html float-handling-ref.html
|
||||
== inlinize-blocks-1.html inlinize-blocks-1-ref.html
|
||||
== inlinize-blocks-2.html inlinize-blocks-2-ref.html
|
||||
== inlinize-blocks-3.html inlinize-blocks-3-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user