)]}'
{
  "commit": "ecbab85b3c5285b971b9801c7e197284dca5d144",
  "tree": "ce3b17adfc35e35589e00ecf61152f5f7932bd80",
  "parents": [
    "f41ce6b71a15ce6206740cad084871a28ff2dcec"
  ],
  "author": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Wed Jul 03 20:53:44 2024 +0000"
  },
  "committer": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Wed Jul 03 20:53:44 2024 +0000"
  },
  "message": "M126: Fix regression in CFX_AggDeviceDriver::SetClipMask()\n\nIn https://pdfium-review.googlesource.com/115412, SetClipMask()\naccidentally returned early and failed to do clipping when the clip box\nis empty. Adjust the code to restore the original behavior, so\nCFX_ClipRgn::IntersectMaskF() still gets called. Then change\nIntersectMaskF() to tolerate empty bitmaps.\n\nAdd yet another rectangles.in variant as a pixel test to exercise this\ncase. With a 0x0 clip box, the PDF should render blank.\n\nBug: 341357062\nChange-Id: I05d1b096d9652668aa338ca95ab20de91ccfeace\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/119430\nReviewed-by: Thomas Sepez \u003ctsepez@google.com\u003e\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\n(cherry picked from commit 3d82f31bff680789d1e428c70875b1490ab8530b)\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/121551\nReviewed-by: Tom Sepez \u003ctsepez@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ecdaae29e1dc433f4d5dc594da08112532db02b8",
      "old_mode": 33188,
      "old_path": "core/fxge/agg/fx_agg_driver.cpp",
      "new_id": "8f52d193534fb54b5c68a1d0e95598ee5ec7be08",
      "new_mode": 33188,
      "new_path": "core/fxge/agg/fx_agg_driver.cpp"
    },
    {
      "type": "modify",
      "old_id": "1046cf4ab62cd36bd52c5c712be2c14225b69f94",
      "old_mode": 33188,
      "old_path": "core/fxge/cfx_cliprgn.cpp",
      "new_id": "c4582f4cfacb45916eba756f5d3dda42917a8a0e",
      "new_mode": 33188,
      "new_path": "core/fxge/cfx_cliprgn.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4dd738a4b83e7f8ce4ba2ba48f2b459903f23a32",
      "new_mode": 33188,
      "new_path": "testing/resources/pixel/rectangles_clipped.in"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e57c3e8d4e5f2894e6701f11f9786eb707f56322",
      "new_mode": 33188,
      "new_path": "testing/resources/pixel/rectangles_clipped_expected.pdf.0.png"
    }
  ]
}
