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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BackgroundBleedAvoidance_h 5 #ifndef BackgroundBleedAvoidance_h
6 #define BackgroundBleedAvoidance_h 6 #define BackgroundBleedAvoidance_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 enum BackgroundBleedAvoidance { 10 enum BackgroundBleedAvoidance {
11 kBackgroundBleedNone, 11 kBackgroundBleedNone,
12 kBackgroundBleedShrinkBackground, 12 kBackgroundBleedShrinkBackground,
13 kBackgroundBleedClipOnly, 13 kBackgroundBleedClipOnly,
14 kBackgroundBleedClipLayer, 14 kBackgroundBleedClipLayer,
15 }; 15 };
16 16
17 inline bool BleedAvoidanceIsClipping(BackgroundBleedAvoidance bleed_avoidance) {
18 return bleed_avoidance == kBackgroundBleedClipOnly ||
19 bleed_avoidance == kBackgroundBleedClipLayer;
20 }
21
17 } // namespace blink 22 } // namespace blink
18 23
19 #endif // BackgroundBleedAvoidance_h 24 #endif // BackgroundBleedAvoidance_h
OLDNEW
« 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