forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve LayoutTable outer collapsed border calculation
Remove code in LayoutTable and LayoutTableSection for computing outer borders. Use cells' cached collapsed borders instead. This is mostly a pure refactoring, except it affects some corner cases: - Previously collapsed borders for colgroup were not included in table's border. See changes to results of paint/invalidation/table/cached-change-border-color.html. - Previously when the row and the table were in different inline direction and the the width of some collapsed border was in odd number, the distribution of the 1 pixel into half outer and inner borders was inconsistent. Now we always give the 1 pixel in the same way defined in LayoutTableCell::CollapsedBOrderHalfXXX(). See changes to results of fast/table/border-collapsing/002.html. Change-Id: I74e6d9173e5d46933fa7456cb713c370e9e7d464 Reviewed-on: https://chromium-review.googlesource.com/515606 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: David Grogan <dgrogan@chromium.org> Reviewed-by: Walter Korman <wkorman@chromium.org> Cr-Commit-Position: refs/heads/master@{#476219}
- Loading branch information
1 parent
3ac5e57
commit ed67249
Showing
41 changed files
with
424 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+18 Bytes
(100%)
...linux/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3 Bytes
(100%)
...youtTests/platform/linux/fast/table/border-collapsing/002-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-22 Bytes
(100%)
.../fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.9 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.5 KB
...nux/virtual/mojo-loading/fast/table/border-collapsing/002-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.7 KB
.../fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
...ebKit/LayoutTests/platform/mac-mac10.10/fast/forms/file/file-input-direction-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+76 Bytes
(100%)
...10.10/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.5 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+72 Bytes
(100%)
...10.11/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.3 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
...WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/file/file-input-direction-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+73 Bytes
(100%)
...c10.9/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.6 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+72 Bytes
(100%)
...etina/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.3 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
...d_party/WebKit/LayoutTests/platform/mac/fast/forms/file/file-input-direction-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+69 Bytes
(100%)
...m/mac/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...LayoutTests/platform/mac/fast/table/border-collapsing/002-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-22 Bytes
(100%)
.../fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.3 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.74 KB
...mac/virtual/mojo-loading/fast/table/border-collapsing/002-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.52 KB
.../fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+63 Bytes
(100%)
...m/win/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2 Bytes
(100%)
...LayoutTests/platform/win/fast/table/border-collapsing/002-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-17 Bytes
(100%)
.../fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.2 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.7 KB
...win/virtual/mojo-loading/fast/table/border-collapsing/002-vertical-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.41 KB
.../fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png
Oops, something went wrong.
Binary file modified
BIN
+21 Bytes
(100%)
.../win7/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Oops, something went wrong.
Binary file added
BIN
+25.1 KB
...ading/fast/table/backgr_border-table-column-group-collapsed-border-expected.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.