Bug 1019737 - Only layerize the scrollbar thumb if the target scroll frame has active scrolling. r=roc

This commit is contained in:
Markus Stange
2014-06-04 14:44:26 +02:00
parent 6d04354113
commit 41ca71f4d4
4 changed files with 30 additions and 6 deletions

View File

@@ -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