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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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
« no previous file with comments | « Source/core/paint/TableCellPainter.h ('k') | Source/core/paint/TextPainter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/TableCellPainter.cpp
diff --git a/Source/core/paint/TableCellPainter.cpp b/Source/core/paint/TableCellPainter.cpp
index ea7ae69d4d9c5655a3627b5753d1633b0bcd838c..1341de9b2915ec778d0b811aa045917c915d1de2 100644
--- a/Source/core/paint/TableCellPainter.cpp
+++ b/Source/core/paint/TableCellPainter.cpp
@@ -13,7 +13,7 @@
namespace blink {
-inline CollapsedBorderValue TableCellPainter::cachedCollapsedLeftBorder(const LayoutStyle& styleForCellFlow) const
+inline CollapsedBorderValue TableCellPainter::cachedCollapsedLeftBorder(const ComputedStyle& styleForCellFlow) const
{
if (styleForCellFlow.isHorizontalWritingMode()) {
return styleForCellFlow.isLeftToRightDirection() ? m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSStart)
@@ -23,7 +23,7 @@ inline CollapsedBorderValue TableCellPainter::cachedCollapsedLeftBorder(const La
: m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSBefore);
}
-inline CollapsedBorderValue TableCellPainter::cachedCollapsedRightBorder(const LayoutStyle& styleForCellFlow) const
+inline CollapsedBorderValue TableCellPainter::cachedCollapsedRightBorder(const ComputedStyle& styleForCellFlow) const
{
if (styleForCellFlow.isHorizontalWritingMode()) {
return styleForCellFlow.isLeftToRightDirection() ? m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSEnd)
@@ -33,14 +33,14 @@ inline CollapsedBorderValue TableCellPainter::cachedCollapsedRightBorder(const L
: m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSAfter);
}
-inline CollapsedBorderValue TableCellPainter::cachedCollapsedTopBorder(const LayoutStyle& styleForCellFlow) const
+inline CollapsedBorderValue TableCellPainter::cachedCollapsedTopBorder(const ComputedStyle& styleForCellFlow) const
{
if (styleForCellFlow.isHorizontalWritingMode())
return styleForCellFlow.isFlippedBlocksWritingMode() ? m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSAfter) : m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSBefore);
return styleForCellFlow.isLeftToRightDirection() ? m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSStart) : m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSEnd);
}
-inline CollapsedBorderValue TableCellPainter::cachedCollapsedBottomBorder(const LayoutStyle& styleForCellFlow) const
+inline CollapsedBorderValue TableCellPainter::cachedCollapsedBottomBorder(const ComputedStyle& styleForCellFlow) const
{
if (styleForCellFlow.isHorizontalWritingMode()) {
return styleForCellFlow.isFlippedBlocksWritingMode() ? m_layoutTableCell.section()->cachedCollapsedBorder(&m_layoutTableCell, CBSBefore)
@@ -139,7 +139,7 @@ void TableCellPainter::paintCollapsedBorders(const PaintInfo& paintInfo, const L
if (recorder.canUseCachedDrawing())
return;
- const LayoutStyle& styleForCellFlow = m_layoutTableCell.styleForCellFlow();
+ const ComputedStyle& styleForCellFlow = m_layoutTableCell.styleForCellFlow();
CollapsedBorderValue leftVal = cachedCollapsedLeftBorder(styleForCellFlow);
CollapsedBorderValue rightVal = cachedCollapsedRightBorder(styleForCellFlow);
CollapsedBorderValue topVal = cachedCollapsedTopBorder(styleForCellFlow);
« no previous file with comments | « Source/core/paint/TableCellPainter.h ('k') | Source/core/paint/TextPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698