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

Unified Diff: third_party/WebKit/Source/core/paint/TableSectionPainter.h

Issue 1983853003: Refactor background painting behind table cells (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/paint/TableSectionPainter.h
diff --git a/third_party/WebKit/Source/core/paint/TableSectionPainter.h b/third_party/WebKit/Source/core/paint/TableSectionPainter.h
index dc992c884714cc236470d32928b52bf15c9cc7af..483c68b2f32f867259525df93f59513c0eec725e 100644
--- a/third_party/WebKit/Source/core/paint/TableSectionPainter.h
+++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.h
@@ -6,10 +6,12 @@
#define TableSectionPainter_h
#include "core/paint/PaintPhase.h"
+#include "core/style/ShadowData.h"
#include "wtf/Allocator.h"
namespace blink {
+class CellSpan;
class CollapsedBorderValue;
class LayoutPoint;
class LayoutTableCell;
@@ -26,7 +28,15 @@ public:
private:
void paintObject(const PaintInfo&, const LayoutPoint&);
- void paintCell(const LayoutTableCell&, PaintPhase originalPaintPhase, const PaintInfo&, const LayoutPoint&);
+
+ void paintBackgroundsBehindCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&);
+ void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&);
+
+ // Returns the primary cell that should be painted for the grid item at (row, column)
+ // intersecting dirtiedRows and dirtiedColumns. Returns nullptr if we have painted the grid item
+ // when painting the grid item left to or above (row, column) when painting cells intersecting
+ // dirtiedRows and dirtiedColumns.
+ const LayoutTableCell* primaryCellToPaint(unsigned row, unsigned column, const CellSpan& dirtiedRows, const CellSpan& dirtiedColumns) const;
Xianzhu 2016/05/16 21:47:53 Done.
const LayoutTableSection& m_layoutTableSection;
};

Powered by Google App Engine
This is Rietveld 408576698