Bug 236910. Elements that clip their backgrounds do not present a uniform background. r+sr=dbaron,a=choffman
git-svn-id: svn://10.0.0.236/trunk@154348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -561,10 +561,13 @@ SyncFrameViewGeometryDependentProperties(nsIPresContext* aPresContext,
|
||||
PRBool scrollFrameHasBG =
|
||||
nsCSSRendering::FindBackground(aPresContext, scrollFrame, &scrollFrameBG,
|
||||
&scrollFrameIsCanvas);
|
||||
const nsStyleDisplay* bgDisplay = scrollFrame->GetStyleDisplay();
|
||||
drawnOnUniformField = scrollFrameHasBG &&
|
||||
!(scrollFrameBG->mBackgroundFlags & NS_STYLE_BG_COLOR_TRANSPARENT) &&
|
||||
(scrollFrameBG->mBackgroundFlags & NS_STYLE_BG_IMAGE_NONE) &&
|
||||
!HasNonZeroBorderRadius(scrollFrame->GetStyleContext());
|
||||
!HasNonZeroBorderRadius(scrollFrame->GetStyleContext()) &&
|
||||
!(bgDisplay->IsAbsolutelyPositioned()
|
||||
&& (bgDisplay->mClipFlags & NS_STYLE_CLIP_RECT));
|
||||
}
|
||||
aView->SetHasUniformBackground(drawnOnUniformField);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user