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

Unified Diff: third_party/WebKit/Source/core/layout/BackgroundBleedAvoidance.h

Issue 2863083002: Avoid duplicating the BleedAvoidanceIsClipping function in Blink paint (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698