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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp

Issue 2157963002: Improve grammar in some comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: maxiumum Created 4 years, 5 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/layout/LayoutTableSection.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
index b688d71ae1d43651ec015713a35d0dc3cc0546d7..04a4ea2025c27b7044e5b21262d81ad3484f702c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -562,7 +562,7 @@ void LayoutTableSection::updateRowsHeightHavingOnlySpanningCells(LayoutTableCell
}
// Distribute rowSpan cell height in rows those comes in rowSpan cell based on the ratio of row's height if
-// 1. RowSpan cell height is greater then the total height of rows in rowSpan cell
+// 1. RowSpan cell height is greater than the total height of rows in rowSpan cell
void LayoutTableSection::distributeRowSpanHeightToRows(SpanningLayoutTableCells& rowSpanCells)
{
ASSERT(rowSpanCells.size());
@@ -595,8 +595,8 @@ void LayoutTableSection::distributeRowSpanHeightToRows(SpanningLayoutTableCells&
unsigned spanningCellEndIndex = rowIndex + rowSpan;
unsigned lastSpanningCellEndIndex = lastRowIndex + lastRowSpan;
- // Only heightest spanning cell will distribute it's extra height in row if more then one spanning cells
- // present at same level.
+ // Only the highest spanning cell will distribute its extra height in a row if more than one spanning cell
+ // is present at the same level.
if (rowIndex == lastRowIndex && rowSpan == lastRowSpan)
continue;
@@ -688,8 +688,8 @@ void LayoutTableSection::distributeRowSpanHeightToRows(SpanningLayoutTableCells&
}
// Find out the baseline of the cell
-// If the cell's baseline is more then the row's baseline then the cell's baseline become the row's baseline
-// and if the row's baseline goes out of the row's boundries then adjust row height accordingly.
+// If the cell's baseline is more than the row's baseline then the cell's baseline become the row's baseline
+// and if the row's baseline goes out of the row's boundaries then adjust row height accordingly.
void LayoutTableSection::updateBaselineForCell(LayoutTableCell* cell, unsigned row, int& baselineDescent)
{
if (!cell->isBaselineAligned())

Powered by Google App Engine
This is Rietveld 408576698