Extend origin-clean algorithm (DiD)
parent
07517b3975
commit
b982ecf4ac
|
@ -6329,6 +6329,13 @@ CanvasRenderingContext2D::ShouldForceInactiveLayer(LayerManager* aManager)
|
|||
return !aManager->CanUseCanvasLayerForSize(GetSize());
|
||||
}
|
||||
|
||||
void CanvasRenderingContext2D::SetWriteOnly() {
|
||||
mWriteOnly = true;
|
||||
if (mCanvasElement) {
|
||||
mCanvasElement->SetWriteOnly();
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(CanvasPath, AddRef)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(CanvasPath, Release)
|
||||
|
||||
|
|
|
@ -1156,9 +1156,7 @@ protected:
|
|||
|
||||
// For the origin-clean algorithm (mWriteOnly == !origin-clean)
|
||||
// See https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html
|
||||
void SetWriteOnly() {
|
||||
mWriteOnly = true;
|
||||
}
|
||||
void SetWriteOnly();
|
||||
|
||||
bool IsWriteOnly() const {
|
||||
return mWriteOnly;
|
||||
|
|
Loading…
Reference in New Issue