mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1213970 - Enable APZ on iOS r=kats
This commit is contained in:
parent
71f53f1cdb
commit
82677a4609
@ -215,7 +215,7 @@ ClientLayerManager::BeginTransactionWithTarget(gfxContext* aTarget)
|
||||
//
|
||||
// Desktop does not support async zoom yet, so we ignore this for those
|
||||
// platforms.
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK) || defined(MOZ_WIDGET_UIKIT)
|
||||
if (mWidget && mWidget->GetOwningTabChild()) {
|
||||
mCompositorMightResample = AsyncPanZoomEnabled();
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ static nsIWidget*
|
||||
GetWidget(nsIPresShell* aShell)
|
||||
{
|
||||
if (nsIFrame* rootFrame = aShell->GetRootFrame()) {
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_UIKIT)
|
||||
return rootFrame->GetNearestWidget();
|
||||
#else
|
||||
if (nsView* view = rootFrame->GetView()) {
|
||||
|
@ -2687,7 +2687,7 @@ nsLayoutUtils::GetLayerTransformForFrame(nsIFrame* aFrame,
|
||||
|
||||
nsDisplayListBuilder builder(root, nsDisplayListBuilder::OTHER,
|
||||
false/*don't build caret*/);
|
||||
nsDisplayList list;
|
||||
nsDisplayList list;
|
||||
nsDisplayTransform* item =
|
||||
new (&builder) nsDisplayTransform(&builder, aFrame, &list, nsRect());
|
||||
|
||||
@ -3269,7 +3269,7 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
|
||||
// For the viewport frame in print preview/page layout we want to paint
|
||||
// the grey background behind the page, not the canvas color.
|
||||
if (frameType == nsGkAtoms::viewportFrame &&
|
||||
if (frameType == nsGkAtoms::viewportFrame &&
|
||||
nsLayoutUtils::NeedsPrintPreviewBackground(presContext)) {
|
||||
nsRect bounds = nsRect(builder.ToReferenceFrame(aFrame),
|
||||
aFrame->GetSize());
|
||||
@ -4833,7 +4833,7 @@ nsLayoutUtils::ComputeISizeValue(
|
||||
|
||||
nscoord result;
|
||||
if (aCoord.IsCoordPercentCalcUnit()) {
|
||||
result = nsRuleNode::ComputeCoordPercentCalc(aCoord,
|
||||
result = nsRuleNode::ComputeCoordPercentCalc(aCoord,
|
||||
aContainingBlockISize);
|
||||
// The result of a calc() expression might be less than 0; we
|
||||
// should clamp at runtime (below). (Percentages and coords that
|
||||
@ -5851,7 +5851,7 @@ nsLayoutUtils::CalculateContentBEnd(WritingMode aWM, nsIFrame* aFrame)
|
||||
nsIFrame::ChildListIterator lists(aFrame);
|
||||
for (; !lists.IsDone(); lists.Next()) {
|
||||
if (!skip.Contains(lists.CurrentID())) {
|
||||
nsFrameList::Enumerator childFrames(lists.CurrentList());
|
||||
nsFrameList::Enumerator childFrames(lists.CurrentList());
|
||||
for (; !childFrames.AtEnd(); childFrames.Next()) {
|
||||
nsIFrame* child = childFrames.get();
|
||||
nscoord offset =
|
||||
@ -7666,7 +7666,7 @@ nsLayoutUtils::FontSizeInflationEnabled(nsPresContext *aPresContext)
|
||||
}
|
||||
|
||||
/* static */ nsRect
|
||||
nsLayoutUtils::GetBoxShadowRectForFrame(nsIFrame* aFrame,
|
||||
nsLayoutUtils::GetBoxShadowRectForFrame(nsIFrame* aFrame,
|
||||
const nsSize& aFrameSize)
|
||||
{
|
||||
nsCSSShadowArray* boxShadows = aFrame->StyleBorder()->mBoxShadow;
|
||||
@ -7688,7 +7688,7 @@ nsLayoutUtils::GetBoxShadowRectForFrame(nsIFrame* aFrame,
|
||||
nsRect frameRect = nativeTheme ?
|
||||
aFrame->GetVisualOverflowRectRelativeToSelf() :
|
||||
nsRect(nsPoint(0, 0), aFrameSize);
|
||||
|
||||
|
||||
nsRect shadows;
|
||||
int32_t A2D = aFrame->PresContext()->AppUnitsPerDevPixel();
|
||||
for (uint32_t i = 0; i < boxShadows->Length(); ++i) {
|
||||
@ -7812,7 +7812,7 @@ UpdateCompositionBoundsForRCDRSF(ParentLayerRect& aCompBounds,
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_UIKIT)
|
||||
nsIWidget* widget = rootFrame->GetNearestWidget();
|
||||
#else
|
||||
nsView* view = rootFrame->GetView();
|
||||
@ -8145,7 +8145,7 @@ void StrokeLineWithSnapping(const nsPoint& aP1, const nsPoint& aP2,
|
||||
|
||||
namespace layout {
|
||||
|
||||
|
||||
|
||||
void
|
||||
MaybeSetupTransactionIdAllocator(layers::LayerManager* aManager, nsView* aView)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user