Lines Matching refs:lhs
282 static Region subtract(const Rect& lhs, const Rect& rhs) {
285 if (!lhs.isEmpty()) {
286 if (lhs.top < rhs.top) { // top rect
287 storage->left = lhs.left;
288 storage->top = lhs.top;
289 storage->right = lhs.right;
293 const int32_t top = max(lhs.top, rhs.top);
294 const int32_t bot = min(lhs.bottom, rhs.bottom);
296 if (lhs.left < rhs.left) { // left-side rect
297 storage->left = lhs.left;
303 if (lhs.right > rhs.right) { // right-side rect
306 storage->right = lhs.right;
311 if (lhs.bottom > rhs.bottom) { // bottom rect
312 storage->left = lhs.left;
314 storage->right = lhs.right;
315 storage->bottom = lhs.bottom;