Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/PhabricatorImageDocumentEngine.php
Show All 21 Lines | public function canDiffDocuments( | ||||
PhabricatorDocumentRef $vref) { | PhabricatorDocumentRef $vref) { | ||||
// For now, we can only render a rich image diff if both documents have | // For now, we can only render a rich image diff if both documents have | ||||
// their data stored in Files already. | // their data stored in Files already. | ||||
return ($uref->getFile() && $vref->getFile()); | return ($uref->getFile() && $vref->getFile()); | ||||
} | } | ||||
public function newDiffView( | public function newEngineBlocks( | ||||
PhabricatorDocumentRef $uref, | PhabricatorDocumentRef $uref, | ||||
PhabricatorDocumentRef $vref) { | PhabricatorDocumentRef $vref) { | ||||
$u_blocks = $this->newDiffBlocks($uref); | $u_blocks = $this->newDiffBlocks($uref); | ||||
$v_blocks = $this->newDiffBlocks($vref); | $v_blocks = $this->newDiffBlocks($vref); | ||||
return id(new PhabricatorDocumentEngineBlocks()) | return id(new PhabricatorDocumentEngineBlocks()) | ||||
->addBlockList($uref, $u_blocks) | ->addBlockList($uref, $u_blocks) | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |