Commit 511028b8 authored by Stephen Chenney's avatar Stephen Chenney Committed by Commit Bot

Don't fill non-renderable background rects

There is a check for the background color painting border
being renderable (for rounded corners) but the check is
overlooked for the image rect. Fix that by treating the
image fill rect the same way we treat the color rect.

Bug: 1101080
Change-Id: I4328357f41793d00002cb80d27bd7182d1756be7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2283775
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#786048}
parent 04c0f137
...@@ -567,6 +567,7 @@ inline bool PaintFastBottomLayer(Node* node, ...@@ -567,6 +567,7 @@ inline bool PaintFastBottomLayer(Node* node,
// clipping. // clipping.
clipper.emplace(context, rect, color_border); clipper.emplace(context, rect, color_border);
color_border.SetRadii(FloatRoundedRect::Radii()); color_border.SetRadii(FloatRoundedRect::Radii());
image_border.SetRadii(FloatRoundedRect::Radii());
} }
// Paint the color if needed. // Paint the color if needed.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment