mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 15:57:31 +09:00
Improve origin-clean algorithm based on our previous changes.
- Instead of trying the failing refactored Mozilla way, simply add a check where needed building on what was put in place previously.
This commit is contained in:
parent
64acfb5ca0
commit
c3a85ded77
1 changed files with 6 additions and 0 deletions
|
|
@ -4219,6 +4219,12 @@ struct MOZ_STACK_CLASS CanvasBidiProcessor : public nsBidiPresUtils::BidiProcess
|
||||||
if (state->gradientStyles[style]) { // Gradient
|
if (state->gradientStyles[style]) { // Gradient
|
||||||
pattern = GetGradientFor(style);
|
pattern = GetGradientFor(style);
|
||||||
} else if (state->patternStyles[style]) { // Pattern
|
} else if (state->patternStyles[style]) { // Pattern
|
||||||
|
if (mCtx->mCanvasElement) {
|
||||||
|
CanvasUtils::DoDrawImageSecurityCheck(
|
||||||
|
mCtx->mCanvasElement, state->patternStyles[style]->mPrincipal,
|
||||||
|
state->patternStyles[style]->mForceWriteOnly,
|
||||||
|
state->patternStyles[style]->mCORSUsed);
|
||||||
|
}
|
||||||
pattern = GetPatternFor(style);
|
pattern = GetPatternFor(style);
|
||||||
} else {
|
} else {
|
||||||
MOZ_ASSERT(false, "Should never reach here.");
|
MOZ_ASSERT(false, "Should never reach here.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue