Bug 1591546 Part 2 - Add WritingMode::IsPhysicalRTL(). r=jfkthame

Differential Revision: https://phabricator.services.mozilla.com/D50772
This commit is contained in:
Ting-Yu Lin
2019-10-28 18:22:05 +00:00
parent 1714657884
commit b488f5928e
9 changed files with 17 additions and 10 deletions

View File

@@ -1398,7 +1398,7 @@ ImgDrawResult nsImageFrame::DisplayAltFeedback(gfxContext& aRenderingContext,
}
WritingMode wm = GetWritingMode();
bool flushRight = !wm.IsPhysicalLTR();
bool flushRight = wm.IsPhysicalRTL();
// If the icon in question is loaded, draw it.
uint32_t imageStatus = 0;
@@ -1580,7 +1580,7 @@ ImgDrawResult nsImageFrame::DisplayAltFeedbackWithoutLayer(
}
WritingMode wm = GetWritingMode();
const bool flushRight = !wm.IsPhysicalLTR();
const bool flushRight = wm.IsPhysicalRTL();
// If the icon in question is loaded, draw it.
uint32_t imageStatus = 0;