Lines Matching refs:lhs
283 static Region subtract(const Rect& lhs, const Rect& rhs) {
286 if (!lhs.isEmpty()) {
287 if (lhs.top < rhs.top) { // top rect
288 storage->left = lhs.left;
289 storage->top = lhs.top;
290 storage->right = lhs.right;
294 const int32_t top = max(lhs.top, rhs.top);
295 const int32_t bot = min(lhs.bottom, rhs.bottom);
297 if (lhs.left < rhs.left) { // left-side rect
298 storage->left = lhs.left;
304 if (lhs.right > rhs.right) { // right-side rect
307 storage->right = lhs.right;
312 if (lhs.bottom > rhs.bottom) { // bottom rect
313 storage->left = lhs.left;
315 storage->right = lhs.right;
316 storage->bottom = lhs.bottom;