mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 598439 Shadow layer offset is incorrect when content scroll offset is non-zero r=cjones a=blocking-fennec-2b1
This commit is contained in:
parent
f83815526a
commit
56227bb794
@ -139,7 +139,7 @@ interface nsIFrameLoader : nsISupports
|
||||
* such a way that the <browser>'s visible rect encloses pixels that
|
||||
* the content document does not (yet) define.
|
||||
*
|
||||
* The viewport scroll values are in units of content-document CSS
|
||||
* The viewport scroll values are in units of chrome-document CSS
|
||||
* pixels.
|
||||
*
|
||||
* These APIs are designed to be used with nsIDOMWindowUtils
|
||||
|
@ -89,8 +89,9 @@ SetTransformFor(ContainerLayer* aContainer, nsIFrame* aContainedFrame,
|
||||
// we set a compensating translation that moves the content document
|
||||
// pixels to where the user wants them to be.
|
||||
nsIntPoint scrollCompensation =
|
||||
(aConfig.mScrollOffset.ToNearestPixels(auPerDevPixel) -
|
||||
aMetrics.mViewportScrollOffset);
|
||||
(aConfig.mScrollOffset.ToNearestPixels(auPerDevPixel));
|
||||
scrollCompensation.x -= aMetrics.mViewportScrollOffset.x * aConfig.mXScale;
|
||||
scrollCompensation.y -= aMetrics.mViewportScrollOffset.y * aConfig.mYScale;
|
||||
translation -= scrollCompensation;
|
||||
|
||||
gfxMatrix transform;
|
||||
|
Loading…
Reference in New Issue
Block a user