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

Unified Diff: Source/core/layout/LayoutTableCell.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/layout/LayoutTableCell.h ('k') | Source/core/layout/LayoutTableCol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTableCell.cpp
diff --git a/Source/core/layout/LayoutTableCell.cpp b/Source/core/layout/LayoutTableCell.cpp
index 48839b52ebca9bd7912f927a9f45b79ad1765b7e..0b7d50ce1f7b446c289d1c13237b0337b84e4253 100644
--- a/Source/core/layout/LayoutTableCell.cpp
+++ b/Source/core/layout/LayoutTableCell.cpp
@@ -381,7 +381,7 @@ LayoutUnit LayoutTableCell::cellBaselinePosition() const
return paddingBefore() + borderBefore() + contentLogicalHeight();
}
-void LayoutTableCell::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyle)
+void LayoutTableCell::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle)
{
ASSERT(style()->display() == TABLE_CELL);
@@ -898,7 +898,7 @@ int LayoutTableCell::borderAfter() const
int LayoutTableCell::borderHalfLeft(bool outer) const
{
- const LayoutStyle& styleForCellFlow = this->styleForCellFlow();
+ const ComputedStyle& styleForCellFlow = this->styleForCellFlow();
if (styleForCellFlow.isHorizontalWritingMode())
return styleForCellFlow.isLeftToRightDirection() ? borderHalfStart(outer) : borderHalfEnd(outer);
return styleForCellFlow.isFlippedBlocksWritingMode() ? borderHalfAfter(outer) : borderHalfBefore(outer);
@@ -906,7 +906,7 @@ int LayoutTableCell::borderHalfLeft(bool outer) const
int LayoutTableCell::borderHalfRight(bool outer) const
{
- const LayoutStyle& styleForCellFlow = this->styleForCellFlow();
+ const ComputedStyle& styleForCellFlow = this->styleForCellFlow();
if (styleForCellFlow.isHorizontalWritingMode())
return styleForCellFlow.isLeftToRightDirection() ? borderHalfEnd(outer) : borderHalfStart(outer);
return styleForCellFlow.isFlippedBlocksWritingMode() ? borderHalfBefore(outer) : borderHalfAfter(outer);
@@ -914,7 +914,7 @@ int LayoutTableCell::borderHalfRight(bool outer) const
int LayoutTableCell::borderHalfTop(bool outer) const
{
- const LayoutStyle& styleForCellFlow = this->styleForCellFlow();
+ const ComputedStyle& styleForCellFlow = this->styleForCellFlow();
if (styleForCellFlow.isHorizontalWritingMode())
return styleForCellFlow.isFlippedBlocksWritingMode() ? borderHalfAfter(outer) : borderHalfBefore(outer);
return styleForCellFlow.isLeftToRightDirection() ? borderHalfStart(outer) : borderHalfEnd(outer);
@@ -922,7 +922,7 @@ int LayoutTableCell::borderHalfTop(bool outer) const
int LayoutTableCell::borderHalfBottom(bool outer) const
{
- const LayoutStyle& styleForCellFlow = this->styleForCellFlow();
+ const ComputedStyle& styleForCellFlow = this->styleForCellFlow();
if (styleForCellFlow.isHorizontalWritingMode())
return styleForCellFlow.isFlippedBlocksWritingMode() ? borderHalfBefore(outer) : borderHalfAfter(outer);
return styleForCellFlow.isLeftToRightDirection() ? borderHalfEnd(outer) : borderHalfStart(outer);
@@ -1051,7 +1051,7 @@ LayoutTableCell* LayoutTableCell::createAnonymous(Document* document)
LayoutTableCell* LayoutTableCell::createAnonymousWithParentRenderer(const LayoutObject* parent)
{
LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->document());
- RefPtr<LayoutStyle> newStyle = LayoutStyle::createAnonymousStyleWithDisplay(parent->styleRef(), TABLE_CELL);
+ RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), TABLE_CELL);
newCell->setStyle(newStyle.release());
return newCell;
}
« no previous file with comments | « Source/core/layout/LayoutTableCell.h ('k') | Source/core/layout/LayoutTableCol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698