Merge m-c to graphics
MozReview-Commit-ID: 3tWI3srj2uj
This commit is contained in:
@@ -5733,13 +5733,14 @@ nsLayoutUtils::AppUnitBoundsOfString(const char16_t* aString,
|
||||
}
|
||||
|
||||
void
|
||||
nsLayoutUtils::DrawString(const nsIFrame* aFrame,
|
||||
nsFontMetrics& aFontMetrics,
|
||||
nsRenderingContext* aContext,
|
||||
const char16_t* aString,
|
||||
int32_t aLength,
|
||||
nsPoint aPoint,
|
||||
nsStyleContext* aStyleContext)
|
||||
nsLayoutUtils::DrawString(const nsIFrame* aFrame,
|
||||
nsFontMetrics& aFontMetrics,
|
||||
nsRenderingContext* aContext,
|
||||
const char16_t* aString,
|
||||
int32_t aLength,
|
||||
nsPoint aPoint,
|
||||
nsStyleContext* aStyleContext,
|
||||
DrawStringFlags aFlags)
|
||||
{
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
|
||||
@@ -5747,7 +5748,13 @@ nsLayoutUtils::DrawString(const nsIFrame* aFrame,
|
||||
if (!aStyleContext) {
|
||||
aStyleContext = aFrame->StyleContext();
|
||||
}
|
||||
aFontMetrics.SetVertical(WritingMode(aStyleContext).IsVertical());
|
||||
|
||||
if (aFlags & DrawStringFlags::eForceHorizontal) {
|
||||
aFontMetrics.SetVertical(false);
|
||||
} else {
|
||||
aFontMetrics.SetVertical(WritingMode(aStyleContext).IsVertical());
|
||||
}
|
||||
|
||||
aFontMetrics.SetTextOrientation(
|
||||
aStyleContext->StyleVisibility()->mTextOrientation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user