Bug 1342873 - label runnables of nsDelayedCalcBCBorders for nsTableFrame.
This is the only runnable that we need to label in layout/tables/ folder.
MozReview-Commit-ID: FbWztSLzIOy
--- a/layout/tables/nsTableFrame.cpp
+++ b/layout/tables/nsTableFrame.cpp
@@ -5000,18 +5000,20 @@ nsTableFrame::BCRecalcNeeded(nsStyleCont
if (change & nsChangeHint_RepaintFrame) {
// we need to recompute the borders and the caller needs to mark
// the bc damage area
// XXX In principle this should only be necessary for border style changes
// However the bc painting code tries to maximize the drawn border segments
// so it stores in the cellmap where a new border segment starts and this
// introduces a unwanted cellmap data dependence on color
nsCOMPtr<nsIRunnable> evt = new nsDelayedCalcBCBorders(this);
- NS_DispatchToCurrentThread(evt);
- return true;
+ nsresult rv =
+ GetContent()->OwnerDoc()->Dispatch("nsDelayedCalcBCBorders",
+ TaskCategory::Other, evt.forget());
+ return NS_SUCCEEDED(rv);
}
return false;
}
// Compare two border segments, this comparison depends whether the two
// segments meet at a corner and whether the second segment is inline-dir.
// The return value is whichever of aBorder1 or aBorder2 dominates.