-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PaintWorklet] Do null check for paint_arguments in CSSPaintDefinitio…
…n::Paint Currently we have shipped the CSSPaintAPI, but not CSSPaintAPIArguments. As a result, we could skip parsing the arguments if we run chromium without --enable-experimental-web-platform-features, then the |paint_arguments| in the CSSPaintDefinition::Paint function becomes nullptr, and we will hit a DCHECK. To fix it, we always check whether it is nullptr or not in that function. We added a unit test to ensure that it will never crash. Bug: 803026, 804206 Change-Id: I7f4b46eea423768974c7ffb3cd691484b1ad683d Reviewed-on: https://chromium-review.googlesource.com/879110 Reviewed-by: Stephen McGruer <[email protected]> Commit-Queue: Xida Chen <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#531262}(cherry picked from commit 206454e) Reviewed-on: https://chromium-review.googlesource.com/884553 Reviewed-by: Xida Chen <[email protected]> Cr-Commit-Position: refs/branch-heads/3325@{#82} Cr-Branched-From: bc084a8-refs/heads/master@{#530369}
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters