mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Drill down through placeholder frames to the real frames in bidi reordering. Bug 525740, r=roc
This commit is contained in:
parent
1951d7d761
commit
300dbdf6e5
@ -835,7 +835,8 @@ nsBidiPresUtils::GetFrameEmbeddingLevel(nsIFrame* aFrame)
|
||||
{
|
||||
nsIFrame* firstLeaf = aFrame;
|
||||
while (!IsBidiLeaf(firstLeaf)) {
|
||||
firstLeaf = firstLeaf->GetFirstChild(nsnull);
|
||||
firstLeaf =
|
||||
nsPlaceholderFrame::GetRealFrameFor(firstLeaf->GetFirstChild(nsnull));
|
||||
}
|
||||
return NS_GET_EMBEDDING_LEVEL(firstLeaf);
|
||||
}
|
||||
|
11
layout/reftests/bidi/525740-1-ref.html
Normal file
11
layout/reftests/bidi/525740-1-ref.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
div:first-letter { float: right; color: lime; }
|
||||
</style>
|
||||
</head>
|
||||
<body dir="rtl">
|
||||
<div>ab ۍ c</div>
|
||||
</body>
|
||||
</html>
|
11
layout/reftests/bidi/525740-1.html
Normal file
11
layout/reftests/bidi/525740-1.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
div:first-letter { float: right; color: lime; }
|
||||
</style>
|
||||
</head>
|
||||
<body dir="rtl">
|
||||
<div><span>ab ۍ c</span></div>
|
||||
</body>
|
||||
</html>
|
@ -43,3 +43,4 @@ random-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 386339.html 386339-ref.html
|
||||
== 496006-1.html 496006-1-ref.html
|
||||
== 503269-1.html 503269-1-ref.html
|
||||
== 503957-1.html 503957-1-ref.html
|
||||
== 525740-1.html 525740-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user