Index: third_party/WebKit/Source/core/layout/BackgroundBleedAvoidance.h |
diff --git a/third_party/WebKit/Source/core/layout/BackgroundBleedAvoidance.h b/third_party/WebKit/Source/core/layout/BackgroundBleedAvoidance.h |
index 8e354690d7e7bba480d332087ee20b8cf8642702..2f469081c74651952d46343fcb486a04d9aa5f3f 100644 |
--- a/third_party/WebKit/Source/core/layout/BackgroundBleedAvoidance.h |
+++ b/third_party/WebKit/Source/core/layout/BackgroundBleedAvoidance.h |
@@ -14,6 +14,11 @@ enum BackgroundBleedAvoidance { |
kBackgroundBleedClipLayer, |
}; |
+inline bool BleedAvoidanceIsClipping(BackgroundBleedAvoidance bleed_avoidance) { |
+ return bleed_avoidance == kBackgroundBleedClipOnly || |
+ bleed_avoidance == kBackgroundBleedClipLayer; |
+} |
+ |
} // namespace blink |
#endif // BackgroundBleedAvoidance_h |