Skip to content

refactor(layout)!: Remove no-op AdjustArrange (BC70) - #23676

Merged
Xiaoy312 merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260707/bc70-remove-adjustarrange
Jul 10, 2026
Merged

Xiaoy312 merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260707/bc70-remove-adjustarrange

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: https://github.com/unoplatform/uno-private/issues/2125

PR Type:

🔄 Refactoring (no functional changes, no api changes)

⚠️ Contains a breaking change (refactor!) — removes public API. See the breaking-changes section below.

What changed? 🚀

Implements BC70 from breaking-changes Phase 3 (#8339, tracked publicly as #14478): removes the no-op AdjustArrange(Size) member.

  • Deletes the AdjustArrange declaration from the internal IFrameworkElement interface and both implementations (FrameworkElement.Interface.skia.cs, FrameworkElement.Interface.reference.cs), each of which just returned its input.
  • Inlines the sole call site in the legacy Layouter arrange path (a no-op assignment layoutFrame.Size = frameworkElement.AdjustArrange(layoutFrame.Size)).
  • Drops the AdjustArrange stub from the NativeViewIFrameworkElement test double.
  • Registers the publicly-surfaced FrameworkElement.AdjustArrange in build/PackageDiffIgnore.xml (6.5 set).

The companion AdjustArrangePartial hook (which had zero implementations) and the native mixin emitters that once exposed a public virtual AdjustArrange on the native heads are already gone with the native-rendering drop, leaving only the pieces removed here.

On default settings runtime behavior is unchanged — AdjustArrange always returned its input unchanged, so inlining the call is behavior-preserving on every target.

PR Checklist ✅

Breaking changes & migration

  • AdjustArrange(Size) (BC70): declared on the internal IFrameworkElement, it was publicly surfaced only as the implicit FrameworkElement.AdjustArrange(Size) implementation. That public method is removed (binary break). It was a pure no-op that always returned its input, so there is no behavioral replacement. Migration: none — the only theoretical break was a native-iOS subclass calling/overriding the public-virtual member, and that native target is being dropped this major version.

Validation evidence

  • Compile: Uno.UI.Skia + Uno.UI.Reference + Uno.UI.RuntimeTests.Skia (net10.0) all build clean — 0 warnings, 0 errors.
  • Code review: AdjustArrange is a no-op on every implementation, so inlining the call site is behavior-preserving; a repo-wide grep finds zero remaining references to the identifier.
  • Not validated locally (CI-gated): native heads (iOS/Android) were not built locally; the native AdjustArrange implementation came from mixin generators that no longer exist, so this removes an interface member whose native impl source is already gone. The PackageDiff allow-list runs CI-only.

@github-actions github-actions Bot added area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/build Categorizes an issue or PR as relevant to build infrastructure labels Jul 7, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221145 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 82

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 82 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Buttons.png-dark
    • Buttons.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • ElementLevelTheme.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Image_UseTargetSize.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • Gamepad_Enumeration.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Examples.png-dark

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 221145 has failed on Uno.UI - CI.

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc70-remove-adjustarrange branch from 06b4c51 to 3cc5ac8 Compare July 8, 2026 15:04
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221292 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 80

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 80 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DropDownButtonPage.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • DisplayInformation.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • Image_AnimatedWebP.png
    • Buttons.png
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageIconPage.png-dark
    • Focus_FocusVisual_Properties.png-dark

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc70-remove-adjustarrange branch from 3cc5ac8 to 4d54697 Compare July 8, 2026 19:41
@Xiaoy312
Xiaoy312 enabled auto-merge July 8, 2026 19:41
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221397 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 2364

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 2364 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png
    • AnimatedIconPage.png
    • AppBar_KeyBoard.png
    • AppBar_KeyBoard.png-dark
    • ApplicationViewSizing.png-dark
    • ApplicationViewSizing.png
    • AppWindowFeatures.png
    • AppWindowClosing.png
    • ArcSegment.png
    • Attributed_text_Simple.png
    • AutoSizedPathCentered.png
    • AutoBorderStretchwithrightmargin.png
    • AutoSuggestBox_Reason.png
    • AutoSizedTopLeft.png-dark
    • Basics Pivot Test.png
    • AutoSuggestBox_Description.png-dark
    • BeginTime_MultipleAnimations.png
    • BackGesture.png-dark
    • BenchmarkDotNet.png-dark
    • BackGesture.png

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc70-remove-adjustarrange branch from 4d54697 to 9fc1493 Compare July 9, 2026 14:46
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221511 found UI Test snapshots differences: skia-linux-screenshots: 72, skia-windows-screenshots: 80

Details
  • skia-linux-screenshots: 72 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CompositionPath.png
    • DisplayInformation.png-dark
    • DropDownButtonPage.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Examples.png
    • ImageSourceUrlMsAppDataScheme.png
    • ContextRequested.png
    • ClipboardTests.png-dark
    • DynamicFont.png-dark
    • DynamicFont.png
    • ImageBrushWithRotateTransform.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
  • skia-windows-screenshots: 80 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • Examples.png
    • ButtonClippingTestsControl.png-dark
    • Gamepad_Enumeration.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ExpanderColorValidationPage.png-dark
    • DisplayInformation.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Gamepad_CurrentReading.png-dark
    • ImageIconPage.png-dark
    • Image_AnimatedWebP.png-dark
    • ButtonClippingTestsControl.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • ListViewHeaderUpdate.png-dark

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 221511 has failed on Uno.UI - CI.

@mergify

mergify Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Xiaoy312 and others added 2 commits July 9, 2026 16:56
IFrameworkElement.AdjustArrange(Size) was a pure no-op on every
target (each implementation just returned its input), and its only
caller was the legacy Layouter arrange path. The companion
AdjustArrangePartial hook and the native mixin emitters that once
surfaced it publicly are already gone with the native rendering drop,
leaving only the internal interface member, the Skia/reference
implementations, the test stub, and the dead call site.

Delete the interface member and both implementations, inline the
no-op call site in the Layouter, and drop the test stub. Record the
publicly-surfaced FrameworkElement.AdjustArrange in
PackageDiffIgnore.xml (6.5 baseline) so the package-diff gate accepts
the intentional binary break.

Part of #2125 (Phase 3 breaking changes). References #14478.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc70-remove-adjustarrange branch from 9fc1493 to c5688b5 Compare July 9, 2026 20:56
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221623 found UI Test snapshots differences: skia-linux-screenshots: 65, skia-windows-screenshots: 77

Details
  • skia-linux-screenshots: 65 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Examples.png-dark
    • Examples.png
    • CompositionPath.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • DynamicFont.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Basics Pivot Test.png
    • Buttons.png
    • Image_AnimatedWebP.png-dark
    • Image_AnimatedWebP.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageIconPage.png-dark
    • ImageIconPage.png
  • skia-windows-screenshots: 77 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DropDownButtonPage.png-dark
    • ClipboardTests.png-dark
    • Gamepad_Enumeration.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Image_UseTargetSize.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Image_AnimatedWebP.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Gamepad_CurrentReading.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • Buttons.png
    • ColorPickerSample.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • ImageIconPage.png-dark
    • ButtonClippingTestsControl.png-dark

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 221623 has failed on Uno.UI - CI.

@Xiaoy312
Xiaoy312 merged commit db7170c into feature/breakingchanges Jul 10, 2026
68 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20260707/bc70-remove-adjustarrange branch July 10, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants