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

Unified Diff: third_party/WebKit/Source/core/paint/TableCellPainter.cpp

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/TableCellPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/TableCellPainter.cpp b/third_party/WebKit/Source/core/paint/TableCellPainter.cpp
index 4c81c5eb40e521293d5fca3ec1f87c38c24d9534..0aa28e15f34b871ca54fcc9d3549139636ddbbfc 100644
--- a/third_party/WebKit/Source/core/paint/TableCellPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TableCellPainter.cpp
@@ -75,7 +75,7 @@ void TableCellPainter::paintCollapsedBorders(const PaintInfo& paintInfo, const L
const CollapsedBorderValue& topBorderValue = collapsedTopBorder(styleForCellFlow, *values);
const CollapsedBorderValue& bottomBorderValue = collapsedBottomBorder(styleForCellFlow, *values);
- int displayItemType = DisplayItem::TableCollapsedBorderBase;
+ int displayItemType = DisplayItem::kTableCollapsedBorderBase;
if (topBorderValue.shouldPaint(currentBorderValue))
displayItemType |= DisplayItem::TableCollapsedBorderTop;
if (bottomBorderValue.shouldPaint(currentBorderValue))
@@ -84,7 +84,7 @@ void TableCellPainter::paintCollapsedBorders(const PaintInfo& paintInfo, const L
displayItemType |= DisplayItem::TableCollapsedBorderLeft;
if (rightBorderValue.shouldPaint(currentBorderValue))
displayItemType |= DisplayItem::TableCollapsedBorderRight;
- if (displayItemType == DisplayItem::TableCollapsedBorderBase)
+ if (displayItemType == DisplayItem::kTableCollapsedBorderBase)
return;
int topWidth = topBorderValue.width();
@@ -180,13 +180,13 @@ void TableCellPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo,
if (!m_layoutTableCell.styleRef().hasBackground() && !m_layoutTableCell.styleRef().boxShadow() && !needsToPaintBorder)
return;
- if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.context, m_layoutTableCell, DisplayItem::BoxDecorationBackground))
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.context, m_layoutTableCell, DisplayItem::kBoxDecorationBackground))
return;
LayoutRect visualOverflowRect = m_layoutTableCell.visualOverflowRect();
visualOverflowRect.moveBy(paintOffset);
// TODO(chrishtr): the pixel-snapping here is likely incorrect.
- LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTableCell, DisplayItem::BoxDecorationBackground, pixelSnappedIntRect(visualOverflowRect));
+ LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTableCell, DisplayItem::kBoxDecorationBackground, pixelSnappedIntRect(visualOverflowRect));
LayoutRect paintRect = paintRectNotIncludingVisualOverflow(paintOffset);

Powered by Google App Engine
This is Rietveld 408576698