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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerPaintingInfo.h

Issue 2196583002: Paint local background colors onto foreground layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only set PaintLayerPaintingRootBackgroundOntoForeground while painting root background instead of s… Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 PaintLayerPaintingOverlayScrollbars = 1 << 4, 63 PaintLayerPaintingOverlayScrollbars = 1 << 4,
64 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, 64 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5,
65 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, 65 PaintLayerPaintingCompositingForegroundPhase = 1 << 6,
66 PaintLayerPaintingCompositingMaskPhase = 1 << 7, 66 PaintLayerPaintingCompositingMaskPhase = 1 << 7,
67 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, 67 PaintLayerPaintingCompositingScrollingPhase = 1 << 8,
68 PaintLayerPaintingOverflowContents = 1 << 9, 68 PaintLayerPaintingOverflowContents = 1 << 9,
69 PaintLayerPaintingRootBackgroundOnly = 1 << 10, 69 PaintLayerPaintingRootBackgroundOnly = 1 << 10,
70 PaintLayerPaintingSkipRootBackground = 1 << 11, 70 PaintLayerPaintingSkipRootBackground = 1 << 11,
71 PaintLayerPaintingChildClippingMaskPhase = 1 << 12, 71 PaintLayerPaintingChildClippingMaskPhase = 1 << 12,
72 PaintLayerPaintingRenderingClipPathAsMask = 1 << 13, 72 PaintLayerPaintingRenderingClipPathAsMask = 1 << 13,
73 PaintLayerPaintingRootBackgroundOntoForeground = 1 << 14,
chrishtr 2016/08/03 18:58:00 How about PaintLayerPaintingRootBackgroundOntoScro
flackr 2016/08/03 20:58:53 Sure, should I replace foreground elsewhere with s
73 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo mpositingMaskPhase) 74 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo mpositingMaskPhase)
74 }; 75 };
75 76
76 typedef unsigned PaintLayerFlags; 77 typedef unsigned PaintLayerFlags;
77 78
78 struct PaintLayerPaintingInfo { 79 struct PaintLayerPaintingInfo {
79 STACK_ALLOCATED(); 80 STACK_ALLOCATED();
80 PaintLayerPaintingInfo(PaintLayer* inRootLayer, const LayoutRect& inDirtyRec t, 81 PaintLayerPaintingInfo(PaintLayer* inRootLayer, const LayoutRect& inDirtyRec t,
81 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat ion) 82 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat ion)
82 : rootLayer(inRootLayer) 83 : rootLayer(inRootLayer)
(...skipping 14 matching lines...) Expand all
97 bool clipToDirtyRect; 98 bool clipToDirtyRect;
98 bool ancestorHasClipPathClipping; 99 bool ancestorHasClipPathClipping;
99 100
100 private: 101 private:
101 const GlobalPaintFlags m_globalPaintFlags; 102 const GlobalPaintFlags m_globalPaintFlags;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // PaintLayerPaintingInfo_h 107 #endif // PaintLayerPaintingInfo_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698