Bug 1019737 - Only layerize the scrollbar thumb if the target scroll frame has active scrolling. r=roc
This commit is contained in:
@@ -1311,8 +1311,9 @@ nsBoxFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
} else {
|
||||
nsIFrame* parent = GetParentBox(this);
|
||||
if (parent && parent->GetType() == nsGkAtoms::sliderFrame) {
|
||||
forceLayer = true;
|
||||
aBuilder->GetScrollbarInfo(&scrollTargetId, &flags);
|
||||
forceLayer = (scrollTargetId != layers::FrameMetrics::NULL_SCROLL_ID);
|
||||
nsLayoutUtils::SetScrollbarThumbLayerization(this, forceLayer);
|
||||
}
|
||||
}
|
||||
// Check for frames that are marked as a part of the region used
|
||||
|
||||
Reference in New Issue
Block a user