mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 725095 - Address Layout review comments. r=mats
This commit is contained in:
parent
19c2ee8e00
commit
0e369cf4b3
@ -871,7 +871,7 @@ ContainerState::CreateOrRecycleThebesLayer(nsIFrame* aActiveScrolledRoot)
|
||||
matrix.Translate(gfxPoint(pixOffset.x, pixOffset.y));
|
||||
layer->SetTransform(gfx3DMatrix::From2D(matrix));
|
||||
|
||||
// FIXME: Temporary workaround for bug 681192 and bug 724786. Uncomment this code before review!
|
||||
// FIXME: Temporary workaround for bug 681192 and bug 724786.
|
||||
#ifndef MOZ_JAVA_COMPOSITOR
|
||||
// Calculate exact position of the top-left of the active scrolled root.
|
||||
// This might not be 0,0 due to the snapping in ScaleToNearestPixels.
|
||||
|
@ -2172,13 +2172,12 @@ nsGfxScrollFrameInner::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
nsRect scrollRange = GetScrollRange();
|
||||
ScrollbarStyles styles = GetScrollbarStylesFromFrame();
|
||||
mShouldBuildLayer =
|
||||
((XRE_GetProcessType() == GeckoProcessType_Content || usingDisplayport) &&
|
||||
(styles.mHorizontal != NS_STYLE_OVERFLOW_HIDDEN ||
|
||||
styles.mVertical != NS_STYLE_OVERFLOW_HIDDEN) &&
|
||||
(scrollRange.width > 0 ||
|
||||
scrollRange.height > 0 || usingDisplayport) &&
|
||||
(usingDisplayport || !mIsRoot ||
|
||||
!mOuter->PresContext()->IsRootContentDocument()));
|
||||
(usingDisplayport ||
|
||||
(XRE_GetProcessType() == GeckoProcessType_Content &&
|
||||
(scrollRange.width > 0 || scrollRange.height > 0) &&
|
||||
(!mIsRoot || !mOuter->PresContext()->IsRootContentDocument())));
|
||||
|
||||
if (ShouldBuildLayer()) {
|
||||
// ScrollLayerWrapper must always be created because it initializes the
|
||||
|
Loading…
Reference in New Issue
Block a user