зеркало из https://github.com/mozilla/gecko-dev.git
Bug 819837 - Always treat empty images as being background-attachment:scroll, r=roc
This commit is contained in:
Родитель
9e778bb00f
Коммит
acc7b82670
|
@ -2845,7 +2845,8 @@ nsCSSRendering::ComputeBackgroundPositioningArea(nsPresContext* aPresContext,
|
|||
}
|
||||
|
||||
nsIFrame* attachedToFrame = aForFrame;
|
||||
if (NS_STYLE_BG_ATTACHMENT_FIXED == aLayer.mAttachment) {
|
||||
if (NS_STYLE_BG_ATTACHMENT_FIXED == aLayer.mAttachment &&
|
||||
!aLayer.mImage.IsEmpty()) {
|
||||
// If it's a fixed background attachment, then the image is placed
|
||||
// relative to the viewport, which is the area of the root frame
|
||||
// in a screen context or the page content frame in a print context.
|
||||
|
|
Загрузка…
Ссылка в новой задаче