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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h

Issue 2786463004: Paint backgrounds of a table section/row in one display item (Closed)
Patch Set: First round of rebaseline-cl Created 3 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DisplayItem_h 5 #ifndef DisplayItem_h
6 #define DisplayItem_h 6 #define DisplayItem_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/ContiguousContainer.h" 9 #include "platform/graphics/ContiguousContainer.h"
10 #include "platform/graphics/paint/DisplayItemClient.h" 10 #include "platform/graphics/paint/DisplayItemClient.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 kScrollbarBackTrack, 99 kScrollbarBackTrack,
100 kScrollbarCorner, 100 kScrollbarCorner,
101 kScrollbarForwardButtonEnd, 101 kScrollbarForwardButtonEnd,
102 kScrollbarForwardButtonStart, 102 kScrollbarForwardButtonStart,
103 kScrollbarForwardTrack, 103 kScrollbarForwardTrack,
104 kScrollbarThumb, 104 kScrollbarThumb,
105 kScrollbarTickmarks, 105 kScrollbarTickmarks,
106 kScrollbarTrackBackground, 106 kScrollbarTrackBackground,
107 kScrollbarCompositedScrollbar, 107 kScrollbarCompositedScrollbar,
108 kSelectionTint, 108 kSelectionTint,
109 kTableCellBackgroundFromColumnGroup,
110 kTableCellBackgroundFromColumn,
111 kTableCellBackgroundFromSection,
112 kTableCellBackgroundFromRow,
113 // Table collapsed borders can be painted together (e.g., left & top) but 109 // Table collapsed borders can be painted together (e.g., left & top) but
114 // there are at most 4 phases of collapsed border painting for a single 110 // there are at most 4 phases of collapsed border painting for a single
115 // cell. To disambiguate these phases of collapsed border painting, a mask 111 // cell. To disambiguate these phases of collapsed border painting, a mask
116 // is used. TableCollapsedBorderBase can be larger than 112 // is used. TableCollapsedBorderBase can be larger than
117 // TableCollapsedBorderUnalignedBase to ensure the base lower bits are 0's. 113 // TableCollapsedBorderUnalignedBase to ensure the base lower bits are 0's.
118 kTableCollapsedBorderUnalignedBase, 114 kTableCollapsedBorderUnalignedBase,
119 kTableCollapsedBorderBase = 115 kTableCollapsedBorderBase =
120 (((kTableCollapsedBorderUnalignedBase - 1) >> 4) + 1) << 4, 116 (((kTableCollapsedBorderUnalignedBase - 1) >> 4) + 1) << 4,
121 kTableCollapsedBorderLast = kTableCollapsedBorderBase + 0x0f, 117 kTableCollapsedBorderLast = kTableCollapsedBorderBase + 0x0f,
122 kTableSectionBoxShadowInset,
123 kTableSectionBoxShadowNormal,
124 kTableRowBoxShadowInset,
125 kTableRowBoxShadowNormal,
126 kVideoBitmap, 118 kVideoBitmap,
127 kWebPlugin, 119 kWebPlugin,
128 kWebFont, 120 kWebFont,
129 kReflectionMask, 121 kReflectionMask,
130 kDrawingLast = kReflectionMask, 122 kDrawingLast = kReflectionMask,
131 123
132 kForeignLayerFirst, 124 kForeignLayerFirst,
133 kForeignLayerCanvas = kForeignLayerFirst, 125 kForeignLayerCanvas = kForeignLayerFirst,
134 kForeignLayerPlugin, 126 kForeignLayerPlugin,
135 kForeignLayerVideo, 127 kForeignLayerVideo,
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; 414 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0;
423 #endif 415 #endif
424 416
425 private: 417 private:
426 bool isEnd() const final { return true; } 418 bool isEnd() const final { return true; }
427 }; 419 };
428 420
429 } // namespace blink 421 } // namespace blink
430 422
431 #endif // DisplayItem_h 423 #endif // DisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698