Repository navigation
[web] Preserve fill rules from path operations - #195971
auto-submit[bot] merged 9 commits into
Conversation
|
This pull request targets the Please change the base branch of this pull request to |
There was a problem hiding this comment.
Code Review
This pull request updates the Flutter Web engine to ensure that combined paths dynamically inherit the fill rule resulting from the backend path operation instead of inheriting the fill type of the first operand, unless an explicit fill type is set. New tests have been added to verify this behavior across copies, collections, and various nested path operations. There are no review comments, and I have no additional feedback to provide.
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
auto label is removed for flutter/flutter/195971, Failed to enqueue flutter/flutter/195971 with HTTP 400: Pull request Required status check "Check Code Freeze" is expected.. |
|
autosubmit label was removed for flutter/flutter/195971, because - The status or check suite Presubmit has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Fixes #195968.
Preserve the fill rule produced by path operations so subtracting nested rectangles keeps the center empty. CanvasKit currently replaces the operation result's fill type with the first operand's. The lazy
EnginePathlayer overwrites it again, and the Skwasm C++ bridge has the same overwrite.This change preserves the CanvasKit and Skwasm operation results and lets combined
EnginePaths adopt the backend fill rule lazily. ExplicitfillTypeassignments continue to take precedence.Adds 12 geometry regression cases covering difference, reverse difference, and XOR with both operand fill types, plus lifecycle tests for copying, collection, and explicit fill-type overrides.
Validation:
test/ui/path_test.darttests pass in Chrome with both full and Chromium CanvasKit variants; all 3test/engine/engine_path_test.darttests pass. Tests use Dart sources from this checkout and engine binaries published for the base main revision.--fatal-infos, Dart formatting, andgit diff --checkpass.Prepared with AI assistance; kept in draft for contributor review under the AI contribution guidelines.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.