зеркало из https://github.com/mozilla/pjs.git
nsTableCellMap::InsertRows shouldn't make damage area smaller, b=244135 p=malcolm.parsons r+sr=bz a=roc
This commit is contained in:
Родитель
e7de812e2e
Коммит
96c736f6b2
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>http://bugzilla.mozilla.org/show_bug.cgi?id=244135</title>
|
||||
<style type="text/css">
|
||||
table { border-collapse: collapse; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="4">td rowspan=4</td>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
|
||||
<td>text</td>
|
||||
<td>text
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>http://bugzilla.mozilla.org/show_bug.cgi?id=244135</title>
|
||||
<style type="text/css">
|
||||
table { border-collapse: collapse; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="4">td rowspan=4</td>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text
|
||||
<script type="text/javascript">var v = document.body.offsetHeight;</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
|
||||
<td>text</td>
|
||||
<td>text
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text</td>
|
||||
<td>text</td>
|
||||
<td>text
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
|
@ -101,6 +101,7 @@ fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 28811-2a.html 28811-2-ref.html # bug 38
|
|||
== 243266-1.html 243266-1-ref.html
|
||||
== 243302-1.html 243302-1-ref.html
|
||||
== 244135-1.html 244135-1-ref.html
|
||||
== 244135-2.html 244135-2-ref.html
|
||||
== 244932-1.html 244932-1-ref.html
|
||||
== 249982-1.html 249982-1-ref.html
|
||||
== 253701-1.html 253701-1-ref.html
|
||||
|
|
|
@ -565,8 +565,8 @@ nsTableCellMap::InsertRows(nsTableRowGroupFrame& aParent,
|
|||
nsTableRowGroupFrame* rg = cellMap->GetRowGroup();
|
||||
if (rg == &aParent) {
|
||||
cellMap->InsertRows(*this, aRows, rowIndex, aConsiderSpans, aDamageArea);
|
||||
aDamageArea.y = aFirstRowIndex;
|
||||
aDamageArea.height = PR_MAX(0, GetRowCount() - aFirstRowIndex);
|
||||
aDamageArea.y = PR_MIN(aFirstRowIndex, aDamageArea.y);
|
||||
aDamageArea.height = PR_MAX(0, GetRowCount() - aDamageArea.y);
|
||||
#ifdef DEBUG_TABLE_CELLMAP
|
||||
Dump("after InsertRows");
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче