Replace GetBaseline with GetLogicalBaseline and use logical coordinates in the line position and baseline getters in nsLayoutUtils. Bug 789096, r=jfkthame
This commit is contained in:
@@ -63,14 +63,15 @@ nsFormControlFrame::GetIntrinsicHeight()
|
||||
}
|
||||
|
||||
nscoord
|
||||
nsFormControlFrame::GetBaseline() const
|
||||
nsFormControlFrame::GetLogicalBaseline(WritingMode aWritingMode) const
|
||||
{
|
||||
NS_ASSERTION(!NS_SUBTREE_DIRTY(this),
|
||||
"frame must not be dirty");
|
||||
// Treat radio buttons and checkboxes as having an intrinsic baseline
|
||||
// at the bottom of the control (use the bottom content edge rather
|
||||
// than the bottom margin edge).
|
||||
return mRect.height - GetUsedBorderAndPadding().bottom;
|
||||
return BSize(aWritingMode) -
|
||||
GetLogicalUsedBorderAndPadding(aWritingMode).BEnd(aWritingMode);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user