Bug 1432341 - Simplify by using GetContentRectRelativeToSelf. r=mattwoodrow

This is just cleanup in advance of the patch to fix this bug.

MozReview-Commit-ID: 1pzauGix51m

--HG--
extra : rebase_source : b36a4ef7da6fb6b6ef7a1a82c56aa489e10935d5
This commit is contained in:
L. David Baron 2018-01-31 07:18:49 +00:00
Родитель 26352bfee1
Коммит 42bec44399
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -167,9 +167,7 @@ nsColumnSetFrame::ForEachColumn(const std::function<void(const nsRect& lineRect)
bool isVertical = wm.IsVertical();
bool isRTL = !wm.IsBidiLTR();
// Get our content rect as an absolute coordinate, not relative to
// our parent (which is what the X and Y normally is)
nsRect contentRect = GetContentRect() - GetRect().TopLeft() + aPt;
nsRect contentRect = GetContentRectRelativeToSelf() + aPt;
nsSize ruleSize = isVertical ? nsSize(contentRect.width, ruleWidth)
: nsSize(ruleWidth, contentRect.height);