Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainter.cpp

Issue 1675823002: Force bleed avoidance for some background image rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Image over image test Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index 8e4236f5cb195962ffd3b022ca1fc9ecaff40e42..3d6d0f913eb04a570f2d45cd7e6e13d36f321766 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -92,7 +92,6 @@ void BoxPainter::paintBoxDecorationBackgroundWithRect(const PaintInfo& paintInfo
GraphicsContextStateSaver stateSaver(paintInfo.context, false);
if (bleedAvoidanceIsClipping(boxDecorationData.bleedAvoidance)) {
-
stateSaver.save();
FloatRoundedRect border = style.getRoundedBorderFor(paintRect);
paintInfo.context.clipRoundedRect(border);
@@ -135,7 +134,7 @@ void BoxPainter::paintBackground(const PaintInfo& paintInfo, const LayoutRect& p
paintFillLayers(paintInfo, backgroundColor, m_layoutBox.style()->backgroundLayers(), paintRect, bleedAvoidance);
}
-static bool isFillLayerOpaque(const FillLayer& layer, const LayoutObject& imageClient)
+bool BoxPainter::isFillLayerOpaque(const FillLayer& layer, const LayoutObject& imageClient)
{
return layer.hasOpaqueImage(&imageClient)
&& layer.image()->canRender()
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698