mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 18:24:02 +00:00
#42029 "Dynamic use of the clip property is causing repaint problems". Make the clip area coordinates conform to the latest spec. r=attinasi.
This commit is contained in:
parent
06305fcd27
commit
78e4562501
@ -3444,10 +3444,10 @@ SetClipRect(nsIRenderingContext& aRenderingContext, nsIFrame* aFrame)
|
||||
clipRect.x = display->mClip.x;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
|
||||
clipRect.width = clipRect.x + display->mClip.width;
|
||||
clipRect.width = display->mClip.width;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
|
||||
clipRect.height = clipRect.y + display->mClip.height;
|
||||
clipRect.height = display->mClip.height;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -590,10 +590,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
|
||||
clipRect.x = display->mClip.x;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
|
||||
clipRect.width = clipRect.x + display->mClip.width;
|
||||
clipRect.width = display->mClip.width;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
|
||||
clipRect.height = clipRect.y + display->mClip.height;
|
||||
clipRect.height = display->mClip.height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -590,10 +590,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
|
||||
clipRect.x = display->mClip.x;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
|
||||
clipRect.width = clipRect.x + display->mClip.width;
|
||||
clipRect.width = display->mClip.width;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
|
||||
clipRect.height = clipRect.y + display->mClip.height;
|
||||
clipRect.height = display->mClip.height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3444,10 +3444,10 @@ SetClipRect(nsIRenderingContext& aRenderingContext, nsIFrame* aFrame)
|
||||
clipRect.x = display->mClip.x;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_RIGHT_AUTO & display->mClipFlags)) {
|
||||
clipRect.width = clipRect.x + display->mClip.width;
|
||||
clipRect.width = display->mClip.width;
|
||||
}
|
||||
if (0 == (NS_STYLE_CLIP_BOTTOM_AUTO & display->mClipFlags)) {
|
||||
clipRect.height = clipRect.y + display->mClip.height;
|
||||
clipRect.height = display->mClip.height;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user