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

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

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/core/paint/BoxDecorationData.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp b/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp
index 0ecfc44129d96c0c2b48f8d2d5a0666f90daece3..6ca509a6462f747ec445d522a5f4b7dd84888597 100644
--- a/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp
@@ -54,12 +54,14 @@ BackgroundBleedAvoidance BoxDecorationData::determineBackgroundBleedAvoidance(
layoutBox.canRenderBorderImage()) {
if (layoutBox.backgroundShouldAlwaysBeClipped())
return BackgroundBleedClipOnly;
- // Border radius clipping may require layer bleed avoidance if we are going to draw
- // an image over something else, because we do not want the antialiasing to lead to bleeding
+ // Border radius clipping may require layer bleed avoidance if we are going
+ // to draw an image over something else, because we do not want the
+ // antialiasing to lead to bleeding
if (boxStyle.hasBackgroundImage() && hasBorderRadius) {
- // But if the top layer is opaque for the purposes of background painting, we do not
- // need the bleed avoidance because we will not paint anything behind the top layer.
- // But only if we need to draw something underneath.
+ // But if the top layer is opaque for the purposes of background painting,
+ // we do not need the bleed avoidance because we will not paint anything
+ // behind the top layer. But only if we need to draw something
+ // underneath.
const FillLayer& fillLayer = layoutBox.style()->backgroundLayers();
if ((backgroundColor.alpha() || fillLayer.next()) &&
!fillLayer.imageOccludesNextLayers(layoutBox))
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxClipper.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698