mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 670564 - "ASSERTION: illegal left edge" in nsDisplayText::Paint. r=roc
This commit is contained in:
parent
8f3490e2d0
commit
4521458b36
@ -556,10 +556,20 @@ TextOverflow::PruneDisplayListContents(nsDisplayList* aList,
|
||||
nsRect rect = itemFrame->GetScrollableOverflowRect() +
|
||||
itemFrame->GetOffsetTo(mBlock);
|
||||
if (mLeft.IsNeeded() && rect.x < aInsideMarkersArea.x) {
|
||||
charClip->mLeftEdge = aInsideMarkersArea.x - rect.x;
|
||||
nscoord left = aInsideMarkersArea.x - rect.x;
|
||||
if (NS_UNLIKELY(left < 0)) {
|
||||
item->~nsDisplayItem();
|
||||
continue;
|
||||
}
|
||||
charClip->mLeftEdge = left;
|
||||
}
|
||||
if (mRight.IsNeeded() && rect.XMost() > aInsideMarkersArea.XMost()) {
|
||||
charClip->mRightEdge = rect.XMost() - aInsideMarkersArea.XMost();
|
||||
nscoord right = rect.XMost() - aInsideMarkersArea.XMost();
|
||||
if (NS_UNLIKELY(right < 0)) {
|
||||
item->~nsDisplayItem();
|
||||
continue;
|
||||
}
|
||||
charClip->mRightEdge = right;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user